<?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 Carlos Velazquez on Medium]]></title>
        <description><![CDATA[Stories by Carlos Velazquez on Medium]]></description>
        <link>https://medium.com/@skamateria?source=rss-d895bcd1cbfd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*1zQDIm7jv17PYHn6B_AXHQ.jpeg</url>
            <title>Stories by Carlos Velazquez on Medium</title>
            <link>https://medium.com/@skamateria?source=rss-d895bcd1cbfd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 08:05:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@skamateria/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[VS Code Shortcuts]]></title>
            <link>https://medium.com/@skamateria/vs-code-shortcuts-f95cc9e546c4?source=rss-d895bcd1cbfd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f95cc9e546c4</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[key-binding]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Carlos Velazquez]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 17:12:55 GMT</pubDate>
            <atom:updated>2019-10-30T17:12:55.558Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For the first draft of this, I’ll be using Mac terminology, but it should be easy to translate. In the future, I hope to add Windows.</em></p><p>I have a strong obsession with attempting to use shortcuts and keybindings as much as possible. The occasional act of wrenching my hands from my keyboard, grabbing the mouse, exhaustively dragging it the infinite distance to some arbitrary destination, where I have to click… <strong>CLICK </strong>as an animal would, only to then, in the defiance of God, navigate a menu like some… like some inbred heathen fumbling around in the darkness of ignorance! Have we not evolved? Have we not planted our position atop the food chain, building a grand spectacle of a civilization right on Mother Nature’s face? Damn it, we’ve been to the moon. <strong>THE MOON!</strong> Only to plant a flag as some ominous declaration to the rest of the universe,” You’re next!”. My brothers! My sisters! My others! We are GODS, and as gods we have the right… nay… the authority… double-nay… the obligation to wield said power… <em>in the form of saving 1–2 seconds while coding</em>. ARE YOU WITH ME?! Good. Let’s begin.</p><p>Visual Studio Code, out of the box, comes with a great bounty of shortcuts to make your life easier. Take a look below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*HhOPdoqMv163caKQ.png" /><figcaption><a href="https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf">Higher res for Windows</a> | <a href="https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf">Higher res for MacOS</a></figcaption></figure><p>But, like every girlfriend I’ve ever had after I attempted to do something nice, <strong>IT’S NOT GOOD ENOUGH!</strong> You want this whole experience to fit you like a glove, and I’ve done just that. Be warned, from here on out, I’ll be talking about my personal shortcuts that I’ve created myself. I’ll show you how to do it yourself, but, lucky for you, I’ll be leaving a link to download my settings, keybindings, and the list of extensions I have installed. Hope it helps!</p><blockquote>Key Syntax: <strong>cmd</strong> = command | <strong>alt</strong> = alt/option | <strong>ctrl</strong> = control | <strong>shft</strong> = shift</blockquote><h3>How to Change Your Settings</h3><p>Go to the top menu and click <strong>CODE </strong>and proceed to <strong>PREFERENCES</strong> then <strong>KEYBOARD SHORTCUTS </strong>and you’re there. But, if you don’t see yourself as a monkey banging rocks together, simply press <strong>cmd + K + S</strong> (<em>while holding command press K then S</em>).</p><p>This may look daunting, but this where you’ll find all your keybindings and shortcuts. You can use the search function at the top in two ways. By typing in the command you wish you see, or by hitting the keyboard icon on the right to record your keypresses where you can see what commands are tied to that keybinding. Keep in mind, though you may have multiple commands tide to the same keybindings, they may not necessarily conflict with one another. This is something that will become very handy. Another note is that some of the commands have unintuitive naming structures, so if you’re having trouble finding it, Google is your best option. If you download my settings/keybindings it may give you more context on what you can customize, which is <strong>EVERYTHING</strong>.</p><h3>My Most Used Shortcuts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xS3aWqIUZAE5uqSJZO6CPQ.png" /><figcaption>I like to touch my mouse and arrow keys as little as possible!</figcaption></figure><p>This is my personal setup. I’m still tweaking here and there. The end goal is being able to do everything I need comfortably without ever having to shift my hands even to the extent of reaching for the arrow keys. Yeah, that’s right. I’ve become so accustomed to my current setup, that the arrow keys on a Macbook have become an absolute crisis. Gotta love some first world problems.</p><h3>Extension Recommendation</h3><p>The best extension that you <strong>NEED</strong> to get, relating this topic, is <a href="https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync">Settings Sync</a>, which is a godsend among godsends. It will keep track of all your settings online, so you can maintain your customized environment between machines. Isn’t that amazing?!?!</p><p>Below is a link to my Google Drive where you can download my settings and keybindings, and, if so inclined, I also listed all the extensions I have installed. It doesn’t necessarily mean they are all enabled though. Hope this helps.</p><p><a href="https://drive.google.com/drive/folders/1CA4z2E7qRxE3kEyT42a1AD_itUFCFdTj?usp=sharing">Settings &amp; Keybindings Download</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f95cc9e546c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails 6.0 Features]]></title>
            <link>https://medium.com/@skamateria/regular-expressions-ac547e950ff2?source=rss-d895bcd1cbfd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac547e950ff2</guid>
            <category><![CDATA[ruby-on-rails-6]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[features]]></category>
            <dc:creator><![CDATA[Carlos Velazquez]]></dc:creator>
            <pubDate>Thu, 05 Sep 2019 18:48:06 GMT</pubDate>
            <atom:updated>2019-11-27T19:05:04.141Z</atom:updated>
            <content:encoded><![CDATA[<h3>Rails 6.0 Features (that I could understand)</h3><h3>rails db:prepare</h3><blockquote>Combines <strong>rails db:create</strong>, <strong>rails db:seed</strong>, <strong>rails db:migrate</strong> into one. Precious, precious seconds saved freeing up your time for more important tasks like googling</blockquote><h3>rails db:seed:replant</h3><blockquote>Wipes the tables, and reseeds all the data once again in an entirely clean state. Apparently, in SQL you’d use the term “truncate” rather than “burn it to the ground and start again”.</blockquote><h3>.pick method</h3><blockquote>A shorthand version of the .<strong>pluck</strong> method that automatically includes <strong>.limit(1)</strong> and <strong>.first</strong> methods during queries returning an array. Did I mention it maintains ActiveRecord relationships? I didn’t? Because it does. For example: <br>User.pluck(:id) =&gt; [1, 2, 3, 4, 5]<br>User.limit(1).pluck(:id).first =&gt; [1]<br>User.pick(:id) =&gt; [1]<br><strong>.pick</strong> can also take in multiple parameters.<br>User.pick(:id, :name, :age) =&gt; [1, “Carlos”, 32]</blockquote><h3>.extract! method</h3><blockquote>This is a fun one! It’s similar to <strong>.reject!, </strong>but rather than returning an array with the non-rejected values, <strong>.extract!</strong> returns all the values that equate to true in the block. <br>array = [1, 2, 3, 4, 5, 6, 7]<br>array.extract! {|x| x &gt;5} =&gt; [6, 7]<br>array =&gt; [1, 2, 3, 4, 5]</blockquote><h3>Webpack is made DEFAULT!!!</h3><blockquote>This may not seem like a big deal to some of you, but, if you’re anything like me, ya know, and idiot, this will make your transition into 6.0 a bit annoying. You’ll be using the webpacker gem, which will provide integration between Javascript packet managers like <strong>yarn</strong>. The previous default was Rails Asset Pipeline. If you’re coming from 5.2, you’ll probably run into some problems when doing strange tasks like <strong>rails new</strong>, <strong>rails server</strong>, or, if you’re on the forefront of the rails functionality, <strong>rails console</strong>. You’ll end up uninstalling yarn, installing yarn, googling yarn, installing yarn again but <em>different</em>, uninstalling yarn, uninstalling yarn <em>more</em>, installing yarn, going to your grandma’s house grabbing her knitting needles from her wrinkled hands and snapping them in front of her never explaining why because she knows! She knows what she did!…. installing yarn… Burning it to the ground, and starting all over again. Don’t know why it was difficult, but it was…. it was. For some reason, this change has affected me most.</blockquote><h3>ActionText</h3><blockquote>Incorporating the <a href="https://trix-editor.org/">Trix Editor</a>, it automates and simplifies the act of using <strong>rich text</strong> within your Rails app. What’s the <strong>rich text format (RTF if you like constantly explaining your acronyms), </strong>you say? It’s actually pretty simple to explain… CHRIST! Nevermind. Uh… uh… I mean, how you’ll be using it, it’s best described as just a nice way to display your text. You know, the features that you take for granted like <strong>bold,</strong> <em>italics, </em>or <a href="https://medium.com/p/ac547e950ff2/edit">links_to_your_stupid_blog</a>. Rather than writing the HTML yourself, ActionText simplifies all of it, including storing images to your database while maintaining relationships between models. The tutorial below will help far more than what jumbled words I can manage to type. Who reads the docs anyway?</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5V7wcDdK9sM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5V7wcDdK9sM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5V7wcDdK9sM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/296734ab9b03bcc8a510641cb5211f4e/href">https://medium.com/media/296734ab9b03bcc8a510641cb5211f4e/href</a></iframe><h3>Action Mailbox</h3><blockquote>Jesus… this thing. This is not a feature that can be explained well in a paragraph, but, to put it simply, it routes incoming e-mails to mailboxes that act similar to controllers in Rails. It’s a major upgrade from its predecessor, Action Mailer, which, I’ve heard through the grapevine, was “not good”. This is a lot to unbox… as a male… male… box… kill me.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcQtmwrm93XA%3Fstart%3D129%26feature%3Doembed%26start%3D129&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcQtmwrm93XA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcQtmwrm93XA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef12107fbf89378dc82cf0dfdf452345/href">https://medium.com/media/ef12107fbf89378dc82cf0dfdf452345/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac547e950ff2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computer Term Etymology]]></title>
            <link>https://medium.com/@skamateria/computer-term-etymology-b9444618d45a?source=rss-d895bcd1cbfd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9444618d45a</guid>
            <category><![CDATA[etymology]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Carlos Velazquez]]></dc:creator>
            <pubDate>Thu, 01 Aug 2019 14:16:59 GMT</pubDate>
            <atom:updated>2019-11-27T19:02:00.489Z</atom:updated>
            <content:encoded><![CDATA[<p>Generally, I’ve never been too interested in history, but I’ve always had a fondness for etymology, strangely enough. Like the history of words have more importance than the history of people or something. I mean, I can name you a hundred people that, through their existence alone, have had a net negative effect on the world. Now, you give me one word, any word, I’m just asking for one here, that has ever, EVER lead to any form of animosity between the peoples of this great world. See! I bet you can’t find — hold on a minute, my assistant has some words for me… yeah… huh… uh huh… oooooh….. really?…. to shreds, you say?…. huh… uh huh….. for years…. HUNDREDS of years?… ok…. Well, that’s not very nice….. and I shouldn’t use it….. not even in lyrics…. but…. oh, I see…. You’re asking for a raise now?… WELP! I stand corrected! Turns out words have power! Lots of power. In that case, let’s get straight to talking about common words we use in the world of computers, and how we ended up using them today. (What a weird intro)</p><h3>BUG (1878)</h3><p>Dealing with computer bugs takes up most of my time. Far more than bathing in my successes. But the worst thing about computer bugs is their hydra-like abilities to spawn even more bugs. Like an ex-girlfriend spreading rumors (most of them true) to other potential mates after your break-up, bugs will just… will just… You forget your girlfriend’s birthday once… ONCE… and now everyone thinks you’re a monster. Oh, god… where was I… oh, yes! Computer bugs.</p><p>You look around the internet for the creation of the “bug”, and you will inevitably wind up hearing the story of Grace Hopper in 1945, and her time in the Navy. Back in the day when we were still using mechanical relays, they, for a reason I just could NOT find out, attracted insects which jammed the relays causing them to malfunction. In an infamous moment of epicness, YES IT’S A WORD, Grace Hopper found a moth jamming up her equipment, dragged it’s corpse all the way to the ships logbook, and taped it within the pages as a warning to all other moths in the area. Below, she left the note “First actual case of bug being found”. This is the origin of the use bug… IF YOU WANTED TO BE WRONG!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*I-o4_6fdDysb4jMm6OEm9A.jpeg" /><figcaption>Grace Hopper “Bug” Log</figcaption></figure><p>I bet you you just went on wikipedia, like a dum-dum. How ignorant!… Sorry, I rarely get the opportunity to be more knowledgeable than others, and, when I do, I lack the restraint to be humble about it. I SMART! YOU UN-SMART!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DwGUMjCdHfhvLfa-CoCXQ.jpeg" /></figure><p>The truth about “bug” being used as a term to describe mechanical/computational errors dates back long before Grace Hopper. In fact, the first recorded instance of it being used in this way dates back to 1878 from a letter written by Thomas Edison. In all likelihood, he wasn’t the person to coin the term, this is just the earliest recorded use of it. Thomas Edison doesn’t need anymore help receiving credit for something he didn’t do. Am I right? Right? You know, because of his reputation of taking the hard work of others and slapping his name on it like Walt Disney and EVERYTHING! That’s right, Disney. Shots fired. I’ve exposed you. I’m the voice of my generation. I am become death!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbxD6Uc03wIJIKFU4plXqw.jpeg" /><figcaption>Thomas Edison Letter</figcaption></figure><h3>BIT (1948)</h3><p>It’s short for binary digit. This one is not so hard to understand, but I thought it would be interesting to discuss WHY we chose binary over ternary/trinary, quarternary/quinary, etc. One is pretty simple to explain, the other is a bit more technical. The first reason is due to the fact that binary was already a well established field of mathematics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*4ezEQwndcM_SNUt5Bb8U-g.jpeg" /></figure><p>Developed by an absolute unit named Gottfried Leibniz in 1689, it was greatly inspired by a similar system developed by the Chinese. Weird fact, some form of binary has been used by various cultures around the world for thousands of years. While the Chinese used it for divination, revolved around the duality of yin and yang, our boy Gottfried had one goal in mind. To simplify the entirety of life into true or false statements, which we all know really means that conversations in the late 1800’s sucked to navigate normally. While everyone around him was all like “how much lead foundation should I apply to my rotting face” or “should we eat cucumber sandwiches or colonize an already occupied thriving land”, Gottfried was not having it. Thus, binary was born!</p><p>The other reason binary was a good choice was due to the imperfections of analog signals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*Z0dDz-MYFcb2ODo6.jpg" /></figure><p>This is a <strong>very </strong>complex subject that I can’t do justice, so I will try anyway! But, to put it simply, due to the nature of an analog signal being a continuous stream that varies depending on the voltage it receives, it has a tendency to… how do I put this? Oh, yeah, <strong>do whatever the hell it wants</strong>. Like a honeybadger…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*5PHISI9AlkJpvudllw-l2w.png" /><figcaption>Digital Distortion</figcaption></figure><p>Then there’s digital distortion that blah blah blah blah. Look it up you sloths. I’m in the business of writing half-assed blogs, not hand holding!</p><h3>COMPUTER(1613)</h3><p>I bet you went about your insignificant, utterly depressing life thinking that the term computer was invented in the 1980’s along with novelty sized cell phones and Wall Street cocaine. Well, you’d be wrong. How embarrassing! The first known use of the term <em>computer</em> goes all the way back to 1613. The same year the famed Globe Theater burned down. Take that my liberal arts degree!!! I bet you even thought that a computer was made up of switches, electrical circuits, and a series of tubes, and you’d be wrong again. For shame! Back when your ancestors were committing whatever atrocities we all know they were committing, a computer referred to a meat bag we call human! That’s right, a computer referred to a person.</p><figure><img alt="Computer Meat Bags" src="https://cdn-images-1.medium.com/max/1024/0*wnyW0l_Xu2WbjnCy" /><figcaption>Human Computers (in case you forgot what humans looked like)</figcaption></figure><p>Specifically, it was a person who performed mathematical calculations. For example, when Newton needed help calculating difficult problems, he didn’t reach for his TI-83. He rang a bell and yelled,” JASON! HEY, JASON! What’s 23 times 3?!” and Jason would respond with the correct answer. Newton would then yell back,” Nice…”, and they would share a coy grin to one another. So when you start complaining about how technology is starting to take away jobs from humans, know that you are literally <strong>HUNDREDS</strong> of years too late. You’re embarrassing yourself.</p><h3>FLOATING POINT</h3><p>When I first learned about integers, I thought,” Yeah, that sounds about right.”. Soon after, when I learned about floating point numbers, I thought, “But… but why though?”. And I hear you saying,” But Carlos, floating point numbers are just numbers with a decimal. How can you be so dumb?” And I would respond by clutching my chest because of your hurtful words and, after building my confidence back up by cat-fishing some people on Tinder, I would say, “Just like an iceberg dealing with depression, it’s a bit more complicated below the surface.”</p><p>Floating point numbers are basically scientific notation, and, like many parts of floating point numbers, I’ll have to explain before we even get to floating point numbers. Scientific notation, essentially, is a simplified representation of large numbers. The term “floating point” simply refers to the ability of the decimal (or point if you’re nasty) to float to any position depending on the exponent given to the base.</p><p>Big-Number: 300000000 (8 zeroes)</p><p>Same Number in Scientific Notation: 3 x 1⁰⁸</p><p>3 is called the <em>significand</em> 1 is called the <em>base</em> and 08 is the <em>exponent</em></p><p>Small-Number: 0.00000015</p><p>Same Number in Scientific Notation: 1.5 x 10-⁷ (doesn’t format well…)</p><p>It’s a bit simpler right? Well, it helps further. Let’s say we wanted to multiply these two numbers.</p><p>300000000 x 0.00000015 = ?</p><p>Can you do this in your head? If you can… then you’re better than me. Good job. The bar was super low to begin with but congrats. But if you’re a NORMAL HUMAN BEING like me, scientific notation makes this task much simpler. Just add the first numbers, then add the second. Like this:</p><p>3 +1.5 = 4.5</p><p>1⁰⁸ + 10-⁷ = 1⁰¹</p><p>Leaving us with: 4.5 x 1⁰¹</p><p>or…..</p><p>45!</p><p>Easy, right? Please, say yes. I need to continue on with this blog, or I’ll get in trouble.</p><p>Now, the important part is to try and understand how the large variant of these numbers takes up more space than the scientific notation version when it comes to how a computer uses them. And this is the part where you go, “But Carlos, where’s the weird stuff when it comes to floating point?”, and I go, “I’M NOT DONE TALKING!!!”, and you reply with a, “I’m sorry…”, and I apologetically respond, “No. It’s not your fault. I’m just trying to pad this blog with words…”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*K0NhEy6Nyt6p-ErW5P_kWQ.png" /><figcaption>How binary displays numbers</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9444618d45a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>