<?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 Alex Smith on Medium]]></title>
        <description><![CDATA[Stories by Alex Smith on Medium]]></description>
        <link>https://medium.com/@A_Smith223?source=rss-95f544b39c01------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*-JwmlWYcZtu6Zw13uHgDmA.jpeg</url>
            <title>Stories by Alex Smith on Medium</title>
            <link>https://medium.com/@A_Smith223?source=rss-95f544b39c01------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:47:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@A_Smith223/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[How to build an SMS/text birthday reminder bot using Ruby, Twilio, and Google Sheets]]></title>
            <link>https://medium.com/swlh/how-to-build-an-sms-text-birthday-reminder-bot-using-ruby-twilio-and-google-sheets-28363fa29bac?source=rss-95f544b39c01------2</link>
            <guid isPermaLink="false">https://medium.com/p/28363fa29bac</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[twilio]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Alex Smith]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 23:00:51 GMT</pubDate>
            <atom:updated>2020-05-21T01:50:12.781Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always wanted a better way to keep up with friends and family by wishing them a happy birthday. Most people post something short and sweet when they see the notification on Facebook while they’re surfing the feed for a fresh dopamine hit. Yes, I’m one of <em>those</em> people who doesn’t use their Facebook anymore.</p><p>So for those of you who are like me (don’t use Facebook and want to wish others a happy birthday via text) keep reading to see how I built a little platform to help me accomplish this.</p><figure><img alt="A screenshot from an iPhone with sample birthday bot text messages" src="https://cdn-images-1.medium.com/max/287/1*aG-Dcn7CLwaLuenMaIHycA.png" /></figure><h3>The Goal — Create a Birthday Bot 🤖</h3><p>The goal is to receive a text message every day with the list of names of people whose birthday is on that day or a message that reads <em>“No birthdays today!”</em>. To start, I want it to be sent at 11 am PST. Let’s build a little “bot” (that will be hosted on Heroku) to help us out 🤖.</p><p>The bot will work as follows in 3 simple steps:</p><ol><li>Every day, the bot will run and read birthdays from a Google Sheet.</li><li>If the bot finds birthdays that are on the current date, it will text me with a list of names of each person whose birthday it is. Otherwise, it will text me <em>“No birthdays today!”</em>.</li><li>The bot will then update the birthdate of each of these people to one year in the future.</li></ol><h3>The Process</h3><h4>Getting the data/list of birthdays</h4><p>The first step is to somehow get the data we need to supply our bot. As I mentioned above, Facebook used to be how I managed birthdays. But they somewhat recently <a href="https://www.digitaltrends.com/news/facebook-removes-friends-birthday-export/">removed the ability to export birthdays from Facebook</a>. To be fair, it was in the name of privacy so I can’t <em>really</em> complain about that.</p><p>So we need another way to get the data. As referenced in the <a href="https://www.digitaltrends.com/news/facebook-removes-friends-birthday-export/">article</a>, someone built a nice <a href="https://github.com/mobeigi/fb2cal">workaround</a>. By following the steps in the <a href="https://github.com/mobeigi/fb2cal/blob/master/README.md">README</a>, I was able to get all of the data I need.</p><p>Here’s what I did:</p><ol><li>Clone the repogit clone git@github.com:mobeigi/fb2cal.git.</li><li>Rename config/config-template.ini to config/config.ini.</li><li>In config/config.ini add your Facebook email and password. Set upload_to_drive to False. Set save_to_file to True.</li><li>Run pip3 install -r requirements.txt.</li><li>Run python3 ./src/fb2cal.py.</li></ol><p>Once you do this, you’ll see a .ics file was created in your /src directory (or whatever directory you set in your config.ini file).</p><p>I did it quick and dirty this way to just get the data locally. If you wanted to take this project to the next level, you could set up this Python script to run routinely, store the data on Google Drive, and then have our bot routinely read from that. For the sake of this post, I’m not going to do that since I don’t plan on continuing to use Facebook and therefore won’t have new birthdays to add.</p><p>Later on in this post, I’m going to move the data to Google Sheets where our Bot will read from. That way, I can quickly add birthdays to the sheet from my phone and the Bot will take the new data into account.</p><p><em>Disclaimer: the </em><a href="https://github.com/mobeigi/fb2cal"><em>workaround</em></a><em> does require a little bit of development background. The project is active, so if you have any questions or issues, try posting on the project first. I’m also happy to try and help as well — leave a comment below!</em></p><h4>Importing the data into the 🤖</h4><p>Now we’ll want to format this data in a way that our bot can easily import. I initially tried to use the <a href="https://github.com/icalendar/icalendar">icalendar gem</a> to import the data from our birthdays.ics file. I wasn’t able to get this to work. Another option is to convert the .ics file to a .csv file using one of <a href="https://www.google.com/search?q=ics+to+csv&amp;oq=ics+to+csv">many free online converters</a>. Depending on how you feel about security, this may be a suitable option for you.</p><p>With the gem not working and me not wanting to use a converter, I decided to write a quick little Ruby script to parse the .ics file. I don’t plan on doing this repeatedly and the .ics file is essentially a .txt file in a specific format, so we can grab the data we need by parsing out the file as one big string.</p><p>Create a folder to house all of our work and navigate into it:</p><pre>mkdir birthday_bot<br>cd birthday_bot</pre><p><em>Again, I know this code is cringy, at best. I just wanted a quick and dirty way to do this initial upload one time.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a657e709b3c586d2a1e6651fff0b8362/href">https://medium.com/media/a657e709b3c586d2a1e6651fff0b8362/href</a></iframe><p>So now we have all of our birthdays in an Array of Hashes with keys of name and date.</p><p>The next thing we’re going to do is export this parsed data to Google Sheets. You could also just export the data to .csv at the end of the above script and copy it to a Google Sheet, but since we’ll be interacting with Google Sheets with our bot to read birthdays anyways, it’s not that much more work to export it programmatically here.</p><p>Twilio has a great <a href="https://www.twilio.com/blog/2017/03/google-spreadsheets-ruby.html">guide</a> on how to do this, including a nifty gif of a screen share walking through the steps. I’ll include the same steps below.</p><ol><li>Go to the <a href="https://console.developers.google.com/">Google APIs Console</a>.</li><li>Create a new project.</li><li>Click Enable API. Search for and enable the Google Drive API.</li><li>Create credentials for a Web Server to access Application Data.</li><li>Name the service account and grant it a Project Role of Editor.</li><li>Download the JSON file.</li><li>Copy the JSON file to your birthday_bot directory and rename it to client_secret.json.</li></ol><p>Those are the credentials your application will need. They represent a user that can update spreadsheets on your behalf. We still need to give this user access to the spreadsheet we want to use though. Create a spreadsheet on your Google Drive named birthday_bot.</p><p>Open client_secret.json and find and copy the client_email. In your spreadsheet click the “Share” button in the top right and paste the email, giving your service account edit rights.</p><p>Once you have done this, we can get started on putting our birthdays into a Google Sheet.</p><p>Start by creating a Gemfile in your root birthday_bot/ directory and paste in the following:</p><pre>source &quot;https://rubygems.org&quot;</pre><pre>gem &quot;google_drive&quot;</pre><p>Then run bundle install.</p><p>Now we can use the Array of Hashes stored in a variable named birthdays from above and upload them to our Google Sheet:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83953167938b8e25be60a742bdcae900/href">https://medium.com/media/83953167938b8e25be60a742bdcae900/href</a></iframe><p>So now we have all of our exported birthdays from Facebook in Google Sheets. Log into your Google Drive and check out your birthday_bot spreadsheet, you should see all the birthdays uploaded.</p><h4>Building the Birthday Bot 🥳🤖</h4><p>Now let’s get to feeding our bot! If you look back at the 3 steps mentioned above as to how the bot will work, the first is:</p><blockquote>Every day, the bot will run and read birthdays from a Google Sheet.</blockquote><p>We’ll worry about the daily interval later — for now let’s get the bot reading from our Google Sheet.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/418548ebb834fed6bfbc7329b7b30640/href">https://medium.com/media/418548ebb834fed6bfbc7329b7b30640/href</a></iframe><p>The next step is:</p><blockquote>If the bot finds birthdays that are on the current date, it will text me with a list of names of each person whose birthday it is. Otherwise, it will text me “No birthdays today!”.</blockquote><p>To send the text message, we’ll need the help of <a href="https://www.twilio.com/sms">Twilio</a> to send text messages. <a href="https://www.twilio.com/try-twilio">Sign up for Twilio</a> and create a project. You can find a <a href="https://www.twilio.com/docs/sms/quickstart/ruby">guide</a> on how to do this or watch a <a href="https://www.youtube.com/watch?v=8SLdV8dn7_I">video</a> to get you started. It’s very quick.</p><p>Once you’ve done that, make sure to take note of 3 things:</p><ol><li>Your Twilio phone number</li><li>Account SID</li><li>Auth Token</li></ol><p>Once you have these 3, you can easily send a text of the current day’s birthdays by doing:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d0f00d86db44b760d6bc3c9d8763d89/href">https://medium.com/media/9d0f00d86db44b760d6bc3c9d8763d89/href</a></iframe><p>And, finally, the last step is:</p><blockquote>The bot will then update the birthdate of each of these people to one year in the future.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c85efb439d3914049241756d341bf0b5/href">https://medium.com/media/c85efb439d3914049241756d341bf0b5/href</a></iframe><h4>Setting the bot to run daily</h4><p>You can deploy this script to a free dyno on Heroku and schedule this to run daily. For more on this, check out <a href="https://github.com/atsmith813/birthday-bot">this repo</a> where I packaged up this bot into a more organized Ruby project with some extra “nice to haves” like logging and error handling.</p><h3>Summary</h3><p>There you have it — now your bot is up and running. You can run the cronjob locally on your machine or deploy it to something like Heroku so that it runs in the cloud. What do you think? Will you use this to help wish your friends and family a more personalized happy birthday?</p><p><a href="https://github.com/atsmith813/birthday-bot"><strong>Here</strong></a> is all the code. Feel free to submit a pull request, issue, or fork it and add your own needs!</p><p><em>Why should you listen to me? You shouldn’t — do your research </em>😉</p><p><em>If you want to learn more about me you can check out my </em><a href="https://twitter.com/A_Smith223"><em>Twitter</em></a><em> and my </em><a href="https://hirealexsmith.com/about-me"><em>website</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28363fa29bac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-build-an-sms-text-birthday-reminder-bot-using-ruby-twilio-and-google-sheets-28363fa29bac">How to build an SMS/text birthday reminder bot using Ruby, Twilio, and Google Sheets</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Perform Technical Analysis on Cryptocurrencies Using Ruby]]></title>
            <link>https://medium.com/@A_Smith223/how-to-perform-technical-analysis-on-cryptocurrencies-using-ruby-6eebb0bfbcd?source=rss-95f544b39c01------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eebb0bfbcd</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[technical-analysis]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Alex Smith]]></dc:creator>
            <pubDate>Fri, 17 May 2019 16:12:26 GMT</pubDate>
            <atom:updated>2019-11-09T20:43:16.197Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mivh5Le16QHaYHGV" /><figcaption>Photo by <a href="https://unsplash.com/@m_b_m?utm_source=medium&amp;utm_medium=referral">M. B. M.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>Technical analysis is a form of analysis that uses patterns in market data to identify trends and make predictions. While it’s common to perform technical analysis on forex or security prices, let’s see what technical analysis looks like on cryptocurrencies.</p><p>I have some 1-minute interval prices for Bitcoin/USD in a CSV file and I’ll use some Ruby to perform some quick technical analysis by calculating the <a href="https://www.investopedia.com/terms/s/sma.asp">Simple Moving Average (SMA)</a>.</p><h3>Getting started</h3><p>First things first, go ahead and create a new folder to save your work. Change directory into this folder on your command line by doing:</p><pre>cd YourNewFolderPath</pre><pre>cd Documents/Projects/crypto/technical_analysis</pre><p>You’ll need to install 2 gems, csv and technical-analysis. You can do this by running:</p><pre>gem install csv<br>gem install technical-analysis</pre><p>The csv gem is to help us parse CSV files in Ruby. The technical-analysis gem is a nice open source project to perform technical analysis on various datasets in Ruby.</p><p>Okay, now we’re ready to get started. Create a file (bitcoin_technical_analysis.rb) in the folder you made earlier.</p><p>Let’s require the gems we just installed by adding the following 2 lines to the top of the file:</p><pre>require &#39;csv&#39;<br>require &#39;technical-analysis&#39;</pre><h3>Parsing the data from the CSV</h3><p>The next step is to get the data we need from our CSV file.</p><p>If you need cryptocurrency price data in a CSV, check out <a href="https://product.intrinio.com/bulk-financial-data-downloads">Intrinio</a>, they offer bulk downloads for all kinds of data.</p><p>There are many ways to grab data from a CSV file using Ruby. For the sake of this exercise, I have the data in a file named btcusd_1m.csv in the same folder we created earlier (Documents/Projects/crypto/technical_analysis).</p><p>The headers of my columns in this CSV from <a href="https://intrinio.com/">Intrinio</a> are:</p><ul><li>EXCHANGE_CODE</li><li>PAIR_CODE</li><li>TIMEFRAME</li><li>TIME</li><li>OPEN</li><li>HIGH</li><li>LOW</li><li>CLOSE</li><li>VOLUME</li></ul><p>We only need some of these columns and some will need to be renamed. You can see <a href="https://github.com/intrinio/technical-analysis/tree/master/lib/technical_analysis/indicators">here</a> that the technical-analysis gem is looking for data formatted certain ways, depending on which indicator you’re trying to use.</p><p>We’re going to be calculating <a href="https://github.com/intrinio/technical-analysis/blob/master/lib/technical_analysis/indicators/sma.rb">SMA</a>, so let’s parse the CSV to get the data that we need for this indicator. For SMA, we need 2 values for each observation — the date_time of the observation and the value of the observation. In this case, we are going to calculate the SMA based on the closing price of BTC/USD from our CSV file, in 1-minute intervals.</p><p>Let’s create a method to grab the data from the CSV file, parse it, and format it.</p><p>This method, get_data, accepts a parameter which is a string of the CSV file btcusd_1m.csv. Here is an example:</p><pre>get_data(&#39;./btcusd_1m.csv&#39;)</pre><p>Then, we use the csv gem to parse the CSV. With each row, we’re changing the time key to be date_time and turning the value of close to a Float to format it for use in the technical-analysis gem. You’ll want to adjust your code to fit how your CSV data is formatted.</p><p>For example, if your CSV data had a header of CLOSE_PRICE instead of CLOSE, you would want to do something like this:</p><pre>formatted_row[:close] = row[:close_price]&amp;.to_f</pre><p>Once we run get_data our result will be an Array of Hashes that looks something like this*:</p><pre>[<br>  { date_time: &quot;2019-04-22 18:43:00 UTC&quot;, close: 5001.00},<br>  { date_time: &quot;2019-04-22 18:42:00 UTC&quot;, close: 5002.00},<br>  { date_time: &quot;2019-04-22 18:41:00 UTC&quot;, close: 5003.00}<br>]</pre><p><em>*The closing prices in the above example are made up</em></p><p>Now that we have the data formatted the way we need it, let’s get to doing some technical analysis.</p><h3>Technical Analysis</h3><p>It’s time to use the technical-analysis gem to calculate the SMA.</p><p>Continuing with our same code from before:</p><p>First, we get the data from our CSV as we mentioned before by executing:</p><pre>data = get_data(&#39;./btcusd_1m.csv&#39;)</pre><p>Then we set the options for the indicator. Options vary by indicator. For SMA, you can see <a href="https://github.com/intrinio/technical-analysis/blob/ffd9b120d8c4a749df4b77c9e6c74cc86723b3f5/lib/technical_analysis/indicators/sma.rb#L23">here</a> that options for SMA includeperiod and price_key.</p><p>I’ll leave period to its default value of 30. Since we are using 1-minute interval prices it means we’re calculating the 30-minute SMA. price_key is the column name that the data is in. It defaults to :value in the gem, but we have the data in a column named :close. We need to tell the gem to look for our data in the close column instead of value. So we set price_key to be :close:</p><pre>options = { price_key: :close }</pre><p>Finally, we use the technical-analysis gem to perform the analysis, passing in the data and options we just defined by doing:</p><pre>TechnicalAnalysis::Indicator.calculate(<br>  &#39;sma&#39;,<br>  data,<br>  :technicals,<br>  options<br>)</pre><p>This returns an Array of <a href="https://github.com/intrinio/technical-analysis/blob/ffd9b120d8c4a749df4b77c9e6c74cc86723b3f5/lib/technical_analysis/indicators/sma.rb#L79">SmaValue</a> objects. Each indicator returns its own object with its own attributes. SmaValue has date_time and sma.</p><p>Now that we have the SMA calculated, let’s analyze the results.</p><h3>Analyzing the results</h3><p>The final step is to analyze the SMA calculations by graphing them. Most technical indicators are graphed. I quickly dropped the results into a new CSV and graphed the results in Excel for demonstration purposes. In doing so, I took a look at the last month or so of data and found April 23rd, 2019 to be interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1btx3L3tlC4IP-o0s0T7wg.png" /><figcaption>30-minute SMA for BTC/USD on 04/23/2019</figcaption></figure><p>Here you can see that starting early on April 23rd, the 30-minute SMA begin to act as a support line for BTC/USD as it rose from 5,375 to 5,550. In a perfect world, that would’ve been roughly a 3.26% gain in just a few hours.</p><h3>Summary</h3><p>And that’s it! It’s quick and easy to do some technical analysis with Ruby using the <a href="https://github.com/intrinio/technical-analysis">technical-analysis</a> gem. A couple of resources that are helpful or referenced above:</p><ul><li><a href="https://github.com/ruby/csv">csv gem</a></li><li><a href="https://github.com/intrinio/technical-analysis">technical-analysis gem</a></li><li><a href="https://product.intrinio.com/bulk-financial-data-downloads">Intrinio CSV bulk downloads</a></li><li><a href="https://docs.intrinio.com/documentation/api_v2/get_crypto_prices_v2">Intrinio API endpoints (another way to get data besides CSV)</a></li><li><a href="https://docs.intrinio.com/documentation/api_v2/get_crypto_price_technicals_sma_v2">Intrinio Technical Indicator API endpoints</a></li></ul><p>Give it a try by adding another SMA and changing the period to 200. Or try calculating a different indicator like Bollinger Bands.</p><p><em>This post is for informational purposes only and is not investment advice. Please seek a licensed professional for advice.</em></p><p><em>Also, I work for </em><a href="https://about.intrinio.com/team"><em>Intrinio</em></a><em> and I’m a primary contributor to the </em><a href="https://github.com/intrinio/technical-analysis"><em>technical-analysis</em></a><em> gem!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eebb0bfbcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 3 Biggest Misconceptions About Diversity]]></title>
            <link>https://medium.datadriveninvestor.com/the-3-biggest-misconceptions-about-diversity-c3ecf0710729?source=rss-95f544b39c01------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3ecf0710729</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[inclusion]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[diversity]]></category>
            <dc:creator><![CDATA[Alex Smith]]></dc:creator>
            <pubDate>Thu, 06 Dec 2018 00:01:01 GMT</pubDate>
            <atom:updated>2019-11-13T07:41:34.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7bc0zlJZv7_dciD9_ze1A.jpeg" /><figcaption>Photo credit: <a href="https://www.facebook.com/dylan.kim1">Dylan Kim</a></figcaption></figure><p>Diversity. The biggest topic in recruiting at the moment, companies all over the globe are scrambling to become thought leaders (<em>ugh</em>) on the subject by trying out new ways to make the traditional recruitment process more diverse. Strategies that first come to mind are things like a more meritocratic approach using an anonymous work sample submission and partnering with a 3rd party that recruits and trains diverse individuals. Here are the 3 biggest misconceptions about diversity.</p><h3>1. The definition of diversity</h3><blockquote>“Diversity is being invited to the party; Inclusion is being asked to dance.”</blockquote><p>Diversity in corporate terms and in headlines is often defined by gender and/or race. But diversity is much wider than that. It can also be characterized by age, disabilities, diversity in thought, and much more. Diversity is looking into a crowd and not being able to describe a dominant “type” by the people in it. Similarly misunderstood, inclusion would be how integrated the crowd appears to be. Are people grouped up? Are these groups of the same type? Granted, this is a simplified example since not all definitions of diversity are easily visible. I’ll go into more detail on inclusion in a separate post.</p><h3>2. AI</h3><p>Quotas are also the poster child for AI (artificial inclusion) and can be a touchy subject. They’re like guilty pleasures — everyone has them but no one likes to talk about them. They serve as a great <em>starting point</em> in changing the default behaviors of common recruitment processes. It basically forces those involved to consciously acknowledge diversity. But at the same time, it can kill inclusion. Because the diversity feels more forced and surface level, there are many social dynamics that arise which cause some difficult situations.</p><h4>Quotas can undermine credibility</h4><p>“Quotas” can help get people from underrepresented communities to get their foot in the door and they can also lead others to think less of them. Using my own experience as an example I can think of several times where I’ve been discredited of my own success because of my race. I’ve been told it’s only because of my race that I won a scholarship, or got the promotion, or landed the deal. Maybe you’ve heard noise from both sides of the affirmative action that has made <a href="https://www.cnn.com/2018/10/14/politics/harvard-affirmative-action-asian-americans/index.html">recent headlines</a>. I’ve been told being a minority is <em>easier</em>. It actually doesn’t make any sense to think of it that way, but I’ll reserve that rant for another time.</p><p>The point here is that the success of people from more diverse backgrounds is often undermined by others simply because they’re diverse. This is a lose-lose situation and doesn’t do much to help solve the original issue of diversity, or lack thereof it. It more boldly draws a line in the sand between two sides.</p><h3>3. “We only hire the best talent, regardless of background”</h3><p>Let me be the first to stop you right there because you’re already down the wrong path if you’re trying to promote a culture of diversity and inclusion. You may as well dim the lights, turn up the music, and throw a giant party for all the biases that are about to walk through the front door.</p><p>What defines “best” is up to the stakeholder(s) and that’s where a lot of bias creeps in no matter how unintentional it might be. Let’s use a Software Engineer as an example. When a Software Engineer is applying for jobs, it’s (<em>unfortunately</em>) common for them to have to complete some sort of coding challenge. A common coding challenge like, “write a simple class in the language of your choice to represent a deck of cards with operations to shuffle the deck and to deal one card” introduces a lot of bias.</p><p>Some might argue that you don’t need a computer science degree or a more traditional background to answer this question so the bias is mostly removed because anyone can answer it. If that’s the case, why are so many people who seem to do the “best” at this white males? That’s because this question and many like it are created by people from more traditional backgrounds and those from traditional backgrounds are better equipped to answer something like this.</p><p>Is it a true test of skill? Maybe…if you’re building a borderline fraudulent card game app for more pre-teens to get mindlessly addicted to while you pump ads through it as if your income depends on it — because it does.</p><p>Someone who doesn’t have any degree at all or has never even coded before could easily be a better learner and a smarter person, but the question isn’t set up to test for that. The question is a lay-up for those who have walked the path laid by the many fortunate people them. <em>It wouldn’t be a post without an obligatory sports reference, right?</em></p><h4>Machine learning and artificial intelligence: quantifying bias</h4><p><em>I’m really on a roll with buzzwords. If someone created buzzword bingo, this post alone would lead someone to stand up and shout in victory.</em></p><p>Talking about actual AI (artificial intelligence) now, let’s look at another case of bias. Amazon, you may have heard of them, has a reputation for <a href="https://www.fastcompany.com/90246028/how-ai-is-helping-amazon-become-a-trillion-dollar-company">ruthless automation</a> and <a href="https://twitter.com/dhh/status/1062381298084384768">looting cities across the country with its HQ2 lottery</a>. Well, recently it’s been <a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G">reported</a> that Amazon applied machine learning to its hiring process to observe patterns in applicant’s resumes and output the best candidates for review.</p><p>So far it sounds great, right? Let’s take a moment to acknowledge that hiring and recruiting is hard, <em>hard</em>, <strong>hard </strong>work. Trying to help that process with today’s technology sounds like a real value-add and a business opportunity.</p><p>And as for the result?</p><blockquote><a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G">“In effect, Amazon’s system taught itself that male candidates were preferable.”</a></blockquote><p>Similar to the hiring pattern that included little diversity in the past, the system taught itself to use the same biases that humans have been making. This really goes to show just how prominent these biases are. It’s eye-opening.</p><h4>“We don’t only hire white males, they just apply the most”</h4><p>Right — I get it. If 93% of applications are white males then simple probability would suggest that the majority of the team would naturally look like that. The supply problem.</p><p>The issue here is recruiting tactics. When you recruit through traditional channels, you’re going to get traditional applicants. Different channels will yield different candidates. Far too to often do people recruit for diversity in traditional channels. An IVY league degree is a simplified example. Ah, but wait, <a href="https://www.bbc.com/news/world-us-canada-40812196">Harvard had it’s first “majority non-white” intake last year</a>. So some traditional channels have diversified ethnically, but remember that diversity isn’t only race and gender. There are many more examples of diversity, including socioeconomic status and disability.</p><p>Just to touch on the far too common white male example here one last time, when you recruit out of universities or channels that are predominantly white males you’re not going to get as many diverse applicants. Quality diverse candidates most often don’t take the same paths.</p><h3>The solution</h3><p>Some real effort with a dash of self-awareness will go a long way. I know, I know — just ending with “do better” isn’t very helpful. But even just by making it this far, I hope diversity is even a half step closer to the top of your mind.</p><p>Another solution is to partner with organizations that specialize in diversity recruiting. Just to name a few that I’m very familiar with from my network:</p><ul><li><a href="https://www.seo-usa.org/">Seize Every Opportunity</a></li><li><a href="https://ventureforamerica.org/">Venture for America</a></li><li><a href="http://www.code2040.org/">Code2040</a></li></ul><p>Let me know what you think. I’d love to hear your thoughts as well!</p><h4>Why should you listen to me?</h4><p>You shouldn’t. Educate yourself and make your <em>own</em> decisions 💯. I just like to try to improve on my writing by putting my thoughts down from time to time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3ecf0710729" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/the-3-biggest-misconceptions-about-diversity-c3ecf0710729">The 3 Biggest Misconceptions About Diversity</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How meal prepping can lead to passive income]]></title>
            <link>https://medium.com/@A_Smith223/how-meal-prepping-can-lead-to-passive-income-7a2598f5cc2a?source=rss-95f544b39c01------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a2598f5cc2a</guid>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[intelligence]]></category>
            <category><![CDATA[passive-income]]></category>
            <category><![CDATA[meal-prep]]></category>
            <category><![CDATA[routine]]></category>
            <dc:creator><![CDATA[Alex Smith]]></dc:creator>
            <pubDate>Thu, 10 May 2018 16:58:19 GMT</pubDate>
            <atom:updated>2018-05-10T16:58:19.880Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*anQFH35f-5wFPUQ8." /><figcaption>Photo by <a href="https://unsplash.com/@we_are_rising?utm_source=medium&amp;utm_medium=referral">lucas Favre</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You’ve heard of the concept of “passive income”. You’ve seen it on LinkedIn influencer posts. You’ve seen it on Instagram about how you can make money online. It’s everywhere. The idea of maximizing returns while minimizing effort is what passive income is really all about.</p><p>Let’s break this concept down further. What is at the core of passive income? Making a lot of money? The income piece sticks out, but what I find most interesting is the passive piece. What happens when you apply the idea of being passive to other areas besides income? Before we can explore that, let’s think about how to define passive.</p><h3>Passive vs active</h3><p>How do you define the threshold at which something is passive? Sticking with the concept of income for now, let’s take an exaggerated example of a real estate mogul who is worth billions that is retired to their own private island. Is their income passive? Or did they just squeeze a surplus of active effort up front? I bet if we consider how much active effort went into building up their portfolio and spread it out over the course of their career the effort would look similar to a more traditional 9–5 job. What’s nice though is that they have a period of life that appears to be more passive on a day-to-day when they’re not putting as much active effort or thought into their well-established income stream.</p><p>This is where being passive becomes even more intriguing, when we take it a step above just income and apply it to thoughts where it then becomes active and passive mental capacity.</p><h3><strong>Defining mental capacity</strong></h3><p>There are 24 hours in a day, 7 days in a week, 52 weeks in a year, and 79 years in the average human life. You’ve seen the motivational content that constantly reminds you to get into gear and make the most of every minute. The point here is not to remind you of that cliché, but to concretely spell out that time, like our mental capacity, is limited. We only have so much mental capacity to take on new challenges, stressors, etc. at any given time. Think of a time where you sighed in exhaustion and thought to yourself, “I need a vacation”. Your mental capacity was nearing it’s limits.</p><p>We currently live in a world with more distractions, obligations, and general calls for our attention than ever before. Whether it’s finding a way to make it to your kid’s dance recital on time or getting those last few right-swipes in on your favorite dating app before the weekend, there isn’t much room left for other considerations. It quickly becomes a game of compromise as you try to fit everything in.</p><h3><strong>Maximizing mental capacity</strong></h3><p><em>So how can we maximize our mental capacities? By creating more permanent passive solutions for ourselves.</em></p><p>And this doesn’t apply to just income, it applies to everything. Finding ways to remove the need to apply active thought throughout the day will free your mind to focus on other things. Imagine a world where you have your own personal chef that has your favorite meals ready in a flash whenever and wherever you’d like. You’d never have to worry about what’s for dinner again.</p><h3><strong>Meal prepping</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g5n7qBKCLg9tv65j." /><figcaption>Photo by <a href="https://unsplash.com/@mvdheuvel?utm_source=medium&amp;utm_medium=referral">Maarten van den Heuvel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let me give you an example. One permanent passive solution I use in my day-to-day life is meal prepping. On Sunday’s I go to the grocery store to pick up all the food I’ll need for the week. A typical trip usually costs me around $50, which is enough for 10 meals: Monday-Friday, lunch and dinner. For breakfast I typically stick to a special oatmeal concoction that doesn’t require any preparation ahead of time.</p><p>Then on Sunday evenings I get to work. I throw on some music, a podcast, or call a friend to catch up while I cook for 1–2 hours. 2 hours!? I’m not sure if there’s a kitchen in existence that would make me excited enough to want to spend 2 hours in it. Is this <em>actually</em> worth it?</p><h3>The benefits</h3><p>There are 3 major benefits to this approach, time saved, cost, and nutritional value.</p><ol><li>Time saved — taking 2 hours on a Sunday saves me anywhere from 5–10 hours a week. How? If I didn’t meal prep, my eating routine would consist of going out to get food or cooking food every day. When you factor in travel time, cooking time, and most of all time spent deciding what you want to eat to begin with, it all begins to add up rather quickly. Before you know it you sit on the couch and hop on your smart phone to look up some inspiration on what to cook, only to end up scrolling all your social media feeds. 45 minutes later your stomach growls loudly as it announces to your body that it needs food…NOW. So then you decide to just get Chipotle down the street where you come face to face with the infamous line out the door. When it’s all said and done, you’ve spent 2 hours from your very first urge to eat to actually eating. Rinse and repeat variations of this process Monday-Friday and that’s an entire night’s worth of sleep spent on <em>just</em> eating dinner each week. But, since I meal prep, I go to the fridge to grab a Tupperware at random from the stack and toss it in the microwave. Total time? 3 minutes and 30 seconds.</li><li>Cost — I’ll be the first to admit that the cost benefits of meal prepping are highly dependent upon where you shop and your dietary restrictions. Do you like Taco Bell? Yeah, me too and I get it, those 69 cent tacos are hard to beat. Using my average grocery bill of $50 that yields 10 meals, that’s obviously $5/meal, a full meal at that, which isn’t bad at all. If you consider the cost of time saved, gas to go out to eat, tips when you go out to eat, the savings start to get even larger.</li><li>Nutritional value — Meal prepping can be a lot healthier or help you begin to eat a lot healthier. I never ate the best growing up and I was a weekly regular at McDonalds. But once I started meal prepping, my habits quickly changed. Healthier foods are very easy to prep and prepping helps establish a habit. Imagine one of those moments where you felt inspired to sign up for the gym and thought to yourself, “I’ll just do that tomorrow”. Now imagine you have that same thought just before you head to the grocery store on Sunday. Impulsively, you start grabbing all the green vegetables you can get your hands on, toss them into your cart, and march back to your car beaming ear to ear of your nutritional success. Now, once those meals are prepped, you’re all but locked into a healthy week of eating from just a brief moment of impulsive positivity. The thought of wanting to do (or in this case eat) better only has to last 20 minutes to 1 hour while you’re at the grocery store to then further expand into an entire week of progress. The same can’t as easily be said for taking that impulsion to sign up for the gym…and then actually go…all the time. Plus, once you have those meals stacked in your fridge you’ll be much less tempted to still eat out and throw that food away.</li></ol><h3>This just sounds like a strict routine</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7RIk1pbINEewMy-n." /><figcaption>“A person reading a book over a cup of coffee and a bowl of granola” by <a href="https://unsplash.com/@the5th?utm_source=medium&amp;utm_medium=referral">THE 5TH</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I hear you, that’s a fair assessment. I like to think of it more as organized chaos than I do a routine. With most things, consistency is key. Of course there are some days where I end up skipping my prepped meal to eat out with an old friend that’s in town visiting. Other days I’m just not feeling it and I want pizza instead. I have a list of recipes that I rotate through when I meal prep so that I’m not eating the same exact thing every day and every week. Every few weeks I take a little extra time to try out a new recipe to add to my rotation. At this point I have it nailed down and it only takes me about an hour on Sundays to cook for the week. I have an exact process and order that I do things to maximize efficiency. I pre-heat the oven and start the brown rice in the rice cooker, then season the chicken, then cook some stove top items, etc. so there’s no down time waiting around.</p><h3>How do you get started?</h3><p>The hardest part is getting started. When I first started I was fresh out of college and cooking in general was a foreign concept to me. So I started small. I found a couple of recipes online that I could cook in 20 minutes, picked one, and made a few meals to eat as lunch for the week. Then next week I did it again with a different recipe. Then I used both recipes, one for lunch, another for dinner. Then I kept growing. It would be fun to pop open the Tupperware at the office, grab a fork, and prepare for the mystery of how badly I messed up cooking that week. Oddly enough, another thing that kept me going were the several comments of admiration from those around me. People were shocked with how great the food looked.</p><h3>And your point is?</h3><p>Throughout the week I spend no time thinking about what I’m going to eat. At lunch time I pop a meal in the microwave and keep moving about the day. At dinner I come home, pop a meal in the microwave, and focus my mind on other things. By making the task of eating as passive as I possibly can at this point, I’ve maximized my mental capacity and my spare time. I apply this concept to other areas of life as well to operate at my best. Studies have shown that we as human beings aren’t the best at making decisions (not a study, but <a href="https://www.youtube.com/watch?v=1pq5jnM1C-A">a Ted talk by Sheena Lyengar on how to make choosing easier</a> is one of my favorites on this topic), so turn 10 decisions throughout the week into 1 by prepping your meals!</p><p>Stay tuned if you want to learn more about how I shop for groceries, what recipes I prep with, or how I apply a passive solution to my wardrobe!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fe5837f%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fe5837f%2F&amp;image=https%3A%2F%2Fe.enpose.co%2F%3Fkey%3DdRXnS9Gplk%26w%3D700%26h%3D425%26url%3Dhttps%253A%252F%252Fupscri.be%252Fe5837f%252F%253Fenpose&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e2b1b132b1c195dfee13c5799e5bd8f/href">https://medium.com/media/7e2b1b132b1c195dfee13c5799e5bd8f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a2598f5cc2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>