<?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 Mickey Partlow on Medium]]></title>
        <description><![CDATA[Stories by Mickey Partlow on Medium]]></description>
        <link>https://medium.com/@mickeypartlow?source=rss-69136c15c436------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2dINDRt0zMMeHkRo</url>
            <title>Stories by Mickey Partlow on Medium</title>
            <link>https://medium.com/@mickeypartlow?source=rss-69136c15c436------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 08:55:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mickeypartlow/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[CSS COLORS]]></title>
            <link>https://medium.com/@mickeypartlow/css-colors-1a65685d18cb?source=rss-69136c15c436------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a65685d18cb</guid>
            <category><![CDATA[colors]]></category>
            <dc:creator><![CDATA[Mickey Partlow]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 15:20:54 GMT</pubDate>
            <atom:updated>2019-12-19T15:20:54.622Z</atom:updated>
            <content:encoded><![CDATA[<p>We often over look our CSS skills. So I am here to expand on the simple topic of colors.</p><p><strong>What are the basic color options?</strong></p><p><em>Hexadecimal</em></p><p><em>RGB</em></p><p><em>Named Colors</em></p><p><strong>What is a Named color?</strong></p><p>A named color is a preset list of colors that are associated with a name</p><p><strong>How many named colors are there?</strong></p><p>147</p><p>Here is a chart with all the named colors -<a href="https://www.quackit.com/css/color/charts/css_color_names_chart.cfm">https://www.quackit.com/css/color/charts/css_color_names_chart.cfm</a></p><p><strong>What is a RGB color?</strong></p><p>RGB consists of 3 digits each representing RED GREEN or BLUE.</p><p>example- rgb(0,0,0) BLACK</p><p><strong>How many RGB colors are there?</strong></p><p>6,777,216 possible combinations.</p><p><strong>What is Hexadecimal?</strong></p><p><strong>Hexadecimal</strong> is a number system that uses base 16 . Base 16 — or <strong>hexadecimal</strong> — uses characters 0–9 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen. These are the characters we use when specifying a color in <strong>CSS</strong>.</p><p>Like RGB hexadecimal uses the red, green, blue properties to construct color mixtures.</p><p>A <strong>hex</strong> triplet is a six-digit, three-byte <strong>hexadecimal</strong> number used in HTML, CSS, SVG, and other computing applications to represent <strong>colors</strong>. The bytes represent the red, green and blue components of the <strong>color</strong>. One byte represents a number in the range 00 to FF (in <strong>hexadecimal</strong> notation), or 0 to 255 in decimal notation.</p><p>example is #ff00bb</p><p><strong>There is a 8 digit hex code that includes transparency</strong></p><p>rgba()</p><p>#RRGGBBAA</p><p>R — Red</p><p>G- Green</p><p>B-Blue</p><p>A-Transparency</p><h3>Transparent Keyword</h3><p>The transparent keyword was first introduced in CSS1. However, CSS1 allowed it to be used for the <a href="https://www.quackit.com/css/properties/css_background-color.cfm">background-color</a> property only.</p><p>CSS2 allowed it to also be used on the <a href="https://www.quackit.com/css/properties/css_border-color.cfm">border-color</a> property.</p><p>CSS3 extended it further to allow the transparent keyword to be used with all properties that accept a color value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a65685d18cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Number Probability]]></title>
            <link>https://medium.com/@mickeypartlow/random-number-probability-eea0064f25a9?source=rss-69136c15c436------2</link>
            <guid isPermaLink="false">https://medium.com/p/eea0064f25a9</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mickey Partlow]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 15:18:00 GMT</pubDate>
            <atom:updated>2019-12-04T15:18:00.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bfKPN3Bpfs0nHt30c2J_aQ.jpeg" /></figure><p><strong>What is a random number?</strong></p><p>“Random numbers are numbers that occur in a sequence such that two conditions are met: (1) the values are uniformly distributed over a defined interval or set, and (2) it is impossible to predict future values based on past or present ones.” -<a href="https://whatis.techtarget.com/definition/random-numbers">https://whatis.techtarget.com/definition/random-numbers</a> by Margaret Rouse</p><p><strong>Are Random Number generators real?</strong></p><p>Not really, eventually they start to repeat themselves. The makings of a good random number generator is based on the interval of repetition.</p><p><strong>My experiment</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*y_dyYDglv_pbx2B7mNHElg.png" /></figure><p>In my experiment I created an app that generates a random number ether 1 or 2.</p><p>now you would think that there is a 50 50 chance of getting 1 or 2 .</p><p>but over time I began to see a disproportionate outcomes. ever hundred runs i would see something close to 50 50. 54 46 or 52 48. even 70 30 sometimes. so out of a hundred runs the outcome wasn’t always 50 50.</p><p><strong>How does Javascript give us random numbers?</strong></p><p>Javascript provides a method called Math.random(). It provides a random number from 0 to &gt;1 (not including).</p><p>According to HackNoons Daniel Simmons Javascript isn’t really the one responsible for creating the random number, your browser is.</p><p>Back in the day different browsers had different algorithms. With varying results.</p><p>Today most browsers use xorshift128+ a binary shifting algorithm.</p><h3>Disclamer</h3><p>&quot;Math.random() <em>does not</em> provide cryptographically secure random numbers. Do not use them for anything related to security.”-<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eea0064f25a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[STUDY ZINE]]></title>
            <link>https://medium.com/@mickeypartlow/study-zine-3598f4bf3436?source=rss-69136c15c436------2</link>
            <guid isPermaLink="false">https://medium.com/p/3598f4bf3436</guid>
            <category><![CDATA[zine]]></category>
            <dc:creator><![CDATA[Mickey Partlow]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 16:18:01 GMT</pubDate>
            <atom:updated>2019-11-15T16:18:01.133Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is a zine?</strong></p><p>A zine is a mini magazine or any DIY book.</p><p><strong>Why make a zine</strong></p><p>1 different way to study</p><p>2 line by line</p><p>3 hands on</p><p><strong>How do you make a zine?</strong></p><p>There are several ways to make a zine. All you have to do is staple a few sheets of paper together and you have a zine. You could also fold sheets of paper in half to give yourself a spine. There is the 8 fold path that uses a single sheet of paper to make a mini-zine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XImG9SK6KRTMbhNu6FJKyA.png" /></figure><p>Once you have your book stapled or folded its time to start putting something in it. For my zine I printed out code I want to study. I going to cut up the code and place it in the zine so i can comment on it and better understand whats going on</p><p><strong>How does this help with coding?</strong></p><p>Making a zine is easy and the outcome can help you understand your code.</p><p>The process of cutting your code and placing it on the paper can help you tear down the clutter of you code, going through it line by line abstracting it from the bigger picture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3598f4bf3436" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unknown Iterators]]></title>
            <link>https://medium.com/@mickeypartlow/unknown-iterators-49b18be1db4d?source=rss-69136c15c436------2</link>
            <guid isPermaLink="false">https://medium.com/p/49b18be1db4d</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mickey Partlow]]></dc:creator>
            <pubDate>Thu, 24 Oct 2019 12:59:20 GMT</pubDate>
            <atom:updated>2019-10-24T12:59:20.561Z</atom:updated>
            <content:encoded><![CDATA[<p>So we all know the basic iterators</p><p>.each which returns the original array/hash</p><p>.map returns a new array/hash after results from block</p><p>.selects returns a new array/hash from conditional from block</p><p>.find returns the first object in array/hash based on conditional block</p><p>I myself have stuck with these for conventional logic, but as my logic changed so did my needs to render it. Enter the boolean iterator.</p><p>.any? returns true if any truthy item is found. false if all are false/nil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*_BKVuq1qH75BlAd_EtwCAA.png" /></figure><p>say you have collected data and you are not sure if its worth searching through. how do you know if some of the data meets your conditional.</p><p>Thats where .any? comes in handy.</p><h4>.all? returns true if all items pass conditional block false if any fail.</h4><p>this is a good method for proof reading your information to make sure nothing has slipped the mold.</p><p>one thing i also learned about .all? is it returns true on an empty array so if you were iterating through the array and were gradually emptying it you would have to time it by the array length not the difference in truthiness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*VNQZ62ffqOFFzjd4LwIBJA.png" /></figure><h3>as to the opposite of .all? there is .none?</h3><p>.none? returns true if no items pass conditional. and false if one or more pass.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49b18be1db4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[THE SCOPE OF PRY]]></title>
            <link>https://medium.com/@mickeypartlow/the-scope-of-pry-ceb419462956?source=rss-69136c15c436------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceb419462956</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[pry]]></category>
            <dc:creator><![CDATA[Mickey Partlow]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 13:01:31 GMT</pubDate>
            <atom:updated>2019-10-10T13:01:31.576Z</atom:updated>
            <content:encoded><![CDATA[<h3>THE SCOPE OF PRY a short intro</h3><p>What is the scope of pry. Where do you put it? What can you see with it?</p><p>The scope refers to the ability to find methods and variables that are accessible for examination.</p><p>So where do you put it?</p><p>Underneath the variable you are trying to examine. The scope excludes everything below the “binding.pry”.</p><p>The scope of pry depends on the equation it’s in, usually if theres iteration and you wanted to find the iteration variable you would have to be with in the scope or the do end block of the variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*P65CZPq7vilVGy5haHaigQ.png" /><figcaption>inside a iteration</figcaption></figure><p>The scope of a method doesn’t effect the scope of pry, it can examine from one method to another method. But if its in a do block the scope is limited to the block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*rmDaEnQI2HM4Ejbkl228lQ.png" /><figcaption>from one method to another</figcaption></figure><p>A helpful tool to overcoming the scope of pry is the pry command -ls. It list all available methods and variables.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceb419462956" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>