<?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 Eric Lewis on Medium]]></title>
        <description><![CDATA[Stories by Eric Lewis on Medium]]></description>
        <link>https://medium.com/@ericandrewlewis?source=rss-4c01723330f4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*sOSp4qBpqv54MBMt.jpeg</url>
            <title>Stories by Eric Lewis on Medium</title>
            <link>https://medium.com/@ericandrewlewis?source=rss-4c01723330f4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 05:12:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ericandrewlewis/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 I fixed Gmail’s email width problem]]></title>
            <link>https://medium.com/@ericandrewlewis/how-i-fixed-gmails-email-width-problem-da4e3ffd97ea?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/da4e3ffd97ea</guid>
            <category><![CDATA[reading]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Tue, 02 Mar 2021 14:56:28 GMT</pubDate>
            <atom:updated>2021-04-19T13:54:31.078Z</atom:updated>
            <content:encoded><![CDATA[<p>Try reading this line of text:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3D6RG7i9pY-pZ6puCNf2QA.png" /></figure><p>Woof. What a wide boy! That single line is 178 characters of text. I had to hold my breath for a moment to get through reading it.</p><p>There’s <a href="https://baymard.com/blog/line-length-readability">some soft science</a> I buy that says a readable line of text is around 60 characters per line. If it’s much more than that you’re not gonna have a good time.</p><p>Unfortunately, Gmail doesn’t constrain the display width of email contents. I’d guess there’s some history in that design decision that dates back to email client design in the 90s. But That’s not doing me any favors here in 2021! I’d rather all my emails default to narrow.</p><p>Now I hear you thinking “just shrink down your window jabroni,” and you know I could do that. I did do that for a while. I’m bored of that. Getting my mouse into that seven pixel wide target to resize is kinda exhausting to do all day.</p><p>I installed <a href="https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en-US">Stylebot</a>, a Chrome extension that lets you create a custom stylesheet for websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*zsGqtNYUY5AhFJtFWKZKKQ.png" /></figure><p>I created this style for pages on <a href="https://mail.google.com/">https://mail.google.com</a>:</p><blockquote>.ii.gt {<br> max-width: 430px;<br>}</blockquote><p>I’m not sure how static classnames are in GMail, but this rule has worked for over a month at this point.</p><p>Now isn’t that better?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgAf7XVkaAkUn1YYP8uluA.png" /></figure><p>Now sometimes I get one of these cute emails with HTML formatting in them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAubSMQnVVJA9DcHOQjkMA.png" /></figure><p>If I want to read it I’ll have to switch off the style temporarily, which Stylebot provides a toggle for in the extension menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*DrVWr57US_XWHVm1WyYIyw.png" /></figure><p>Thank you for visiting my blog! Follow me for more posts every year or two.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da4e3ffd97ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflecting on a mentorship of sorts with Lin]]></title>
            <link>https://medium.com/@ericandrewlewis/reflecting-on-a-mentorship-of-sorts-with-lin-1ff887e05678?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ff887e05678</guid>
            <category><![CDATA[mentorship]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 14:00:07 GMT</pubDate>
            <atom:updated>2020-06-25T14:00:07.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Last summer I decided to <a href="https://medium.com/@ericandrewlewis/a-month-long-tech-mentoring-opportunity-of-sorts-39dada8a950a">offer</a> a mentoring experience. I want to build a culture of support and care in the tech community, and had years of experience as a software engineer and months as a teacher at a bootcamp. I looked for folks with goals I could reasonably help with, and placed a preference on folks who are underrepresented in our industry.</p><p>The offer ended up in the hands of Lin, a good friend’s co-worker’s boyfriend. He graduated from a computer science program the prior year, and wanted support navigating the transition from college into a career in software engineering.</p><p>We met for coffee at Swallow Cafe in Bushwick once every week or so. It’s a big enough cafe that talking for hours didn’t feel imposing on anyone — especially after tipping the already kind baristas. The everything bagel with scallion cream cheese and a latte is 😙👌</p><p>To start, we looked at his public-facing presentation and application materials. I supported him to redesign his personal website, edit his resumé, and sift through job postings. For a recent college graduate even reading these listings can be challenging. They’re densely written, and it may take them ten minutes of Googling “agile development practices” for them to decide they shouldn’t apply when they actually should. I could see how finding and applying for ten jobs a day could be exhausting.</p><p>We then practiced the “hard” skills in software engineering job interview prep: mock interviews and algorithm design study from the green book.</p><p>This may seem silly to call out, but we would catch up with what was going on in our lives and got to know each other during our sessions. What would be silly is if we had transactional skill-sharing sessions and never spoke about how great vegan food is, or how Lin rips on guitar in his old band Chariots. Catch them if they ever have a reunion show on Long Island.</p><p>It was good to make space for projects that Lin had personal motivation for which complemented the hard skills training. He wanted to build a blog, so I offered guidance on the lower levels of execution: “Here’s this Java application framework you could use for it. Cool? Okay let’s walk through the tutorial together. Want to see the content in the database? Yeah there’s this database visualizer we can use…”</p><p>Setting up the student to dictate the parameters of their learning requires prep work on the part of the educator. There isn’t a straight-forward curriculum for the wandering student, but it is worth it. With this drive, the student has agency which makes learning more engaging. They appreciate the immediate utility of their work and a sense of self-accomplishment.</p><p>Oh and at one point we made this experiment to see how the popularity of a few artists’ songs change over time. It turns out Sufjan Season <a href="https://docs.google.com/spreadsheets/d/1vrvpdDrvtaA-YNZ9u3aT0qK_n43BOB_m1BRBmu9YSMc/edit?usp=sharing">isn’t real</a> y’all. Sov <a href="https://twitter.com/AliceLfc4/status/1046202298450497537">was</a> right!!</p><p>Over the course of a few months Lin landed an engineering role in testing automation at a company in the financial district. I’m glad that he didn’t get discouraged in the complicated navigation into an engineering job.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ff887e05678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An interview with a white Googler who went through Sojourn]]></title>
            <link>https://medium.com/@ericandrewlewis/an-interview-with-a-white-googler-who-went-through-sojourn-f0dc3e19a0c8?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0dc3e19a0c8</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[race]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Wed, 10 Jun 2020 14:44:57 GMT</pubDate>
            <atom:updated>2020-06-10T14:53:20.749Z</atom:updated>
            <content:encoded><![CDATA[<p>Google offered the Sojourn diversity training program from 2015–2018. The program was cut for various reasons, as <a href="https://www.nbcnews.com/news/us-news/current-ex-employees-allege-google-drastically-rolled-back-diversity-inclusion-n1206181">reported</a> last month: for fear of lawsuits from perceived discrimination against white folks, or the curriculum not being a one-size-fits-all training for Googlers globally.</p><p>After hearing this news, I decided to interview a friend of mine at Google (of five+ years) who is white that took the training. I call it an interview, but most of what I did was listen to their experience and share it here.</p><p>I look forward to Google offering racial awareness education programs in the future that are as beneficial as Sojourn was. Race cannot be “fixed” with a change to corporate policy or other simplistic measures. We should be engaged with our coworkers in processing the experience of race, identifying our own privilege, and considering behavior thoughtfully in and out of the workplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1hY8mBh1pLdFK47YHdMkw.png" /><figcaption>Reading about whiteness on a break from work.</figcaption></figure><p><strong>When did you hear about the Sojourn program?</strong></p><p>It was sometime around 2016. I think it was spoken about in one of the DEI mailing lists that I was on.</p><p>The first module was a few hours. It was a basic, dip-your-toe-in kind of thing and covered stuff like how color-blind policies don’t help people of color, and how racism causes cognitive load for people of color. It set the stage for later sessions and gave a good heads up that we’re going to be talking about really hard stuff that’s structured to be stressful to talk about.</p><p>White Fragility, the essay that became the book, was recommended reading for the first module, which is how I got exposed to that idea. And there was a lot of recognition of white fragility in the program, well it’s kind of getting into the second and third modules.</p><p><strong>Yeah, what was the second module like?</strong></p><p>It was a while between the first and the second module. It was hard to get a space in the class, which made it seem like there were either a ton of people trying to schedule them or not enough of the classes scheduled. The second one was over two days.</p><p>We explored the reasons why race is so hard to talk about. We spoke about white fragility, and how our brain psychology is wired to avoid talking about hard things like race. We talked about ways power operates in society, and who has the ability to dictate norms. I feel like a lot of this was hard for white people to hear, but the whole point is to get white people to hear this and change how they act.</p><p>There was an interesting metaphor they used of a “pier over water,” which represented structural forces in our society that hold up the current situation, but we don’t think about them because they’re so obscured from where we stand.</p><p>And then there’s another metaphor of “the water in which we swim.” Racism is so embedded in our society it is like the water we grow up in. It just seems like air. There’s a joke where one fish asks another fish “How’s the water today?” and the other fish says “What’s water?” which was pretty apt.</p><p>We were asked to think back on our experiences like “When was the first time you had a teacher who was the same race as you?” For white people it’s usually a predictable answer. But for some people of color, all of their teachers were white. Having a non-white teacher was a big thing for some people, like “Wow, look at this person who is given the authority of the teacher, who is also black.”</p><p><strong>How were you affected by this sort of shift in perspective when you returned to work?</strong></p><p>Before I went through Sojourn, I had an uncomfortableness that I couldn’t articulate, but now I can. The fact that the majority of the people doing jobs at Google we would label as service: people cleaning bathrooms, the building, cafes, people working in the cafes, people doing reception, security guards — almost all these workers are people of color.</p><p>But those jobs are also considered not as elite as software engineering and generally devalued, but also expected to be done for much less pay.</p><p>Every now and then I’d talk to people who weren’t full-time employees and the separation made me super uncomfortable and I didn’t understand why. But this training helped me understand it was breaking down along these historical lines of power and perception of value and generally just segregation. And this comes back to the thing of why this is. There’s this unexamined aspect to it like why are these separations here.</p><p><strong>Why do you think Sojourn was cancelled?</strong></p><p>A lot of white people were so uncomfortable with what the training brought up for them, and sitting with the uncomfortableness of problems that are not going to be immediately fixed. And no matter how much you want to fix them, you may not be able to fix it immediately. Or ever, right? And having to acknowledge there is a problem and doing what you can, but also knowing you’re not gonna fix it. And so much of what we’re taught and indoctrinated into is that we fix problems, and problems that can’t be fixed are set aside as universal constants and that is how it is, and we will mitigate best we can, but if we can’t fix it right now it’s never gonna go away.</p><p>I think a lot of people were unable to sit with that, or unable to sit with their complicity in the system.</p><p>Understanding how what you are doing is doing harm. It’s caused a lot of anxiety in me and something I’m still working through in understanding what impacts I have.</p><p><strong>In the workplace or…?</strong></p><p>Everywhere but very much in the workplace. I think about an action like asking a person of color to take notes, or telling a person of color that they’re articulate. It seems like a compliment but there’s so much history behind it, as if they are more articulate than a regular black person. Which is in itself its own problem because you are saying something about an immutable fact in who they are.</p><p>A lot of times this sort of compliment and smile which is part of whiteness is its own problem because it’s the implication of “I’m giving you this because you’re special” or only because I see you as something more than just this generic. Or, even trying to humanize is dehumanizing in itself because it reminds this other person of this mindset. Who counts as valuable.</p><p><strong>Were there any behaviors the training suggested for more awareness in your work or in general?</strong></p><p>We talked about and practiced addressing harm that has been done. Part of that was this acknowledgement that white people are going to do harm by what they say or do. Not intentionally but just because they are going to perpetuate these patterns that exist in our society. And it’s not a comment on who they are in a good-bad binary. We are complicit in these systems and our job is to understand and address the harm that is done.</p><p>Basically it was apologizing when you have said something that offends someone, something that is racist, something that makes someone feel dehumanized. Imagining that you are reaching out to someone in this context, you could say “Hi, it’s been brought to my attention something I said offended you or caused you harm. I was wondering if we could talk about that and apologize.”</p><p>It’s key that you’re acknowledging harm has been done, that you want to address it, but most importantly you leave the permission to the person who was harmed. They have the power and decide if they want an apology from you. Giving back the agency being a very key part of this. If they say “I’d rather not talk about it” it’s important you respect that and not be weird to them because of it.</p><p>But if they want to talk about it, ask how they experienced it and how they felt about it. This helps you understand how it affected the person, and helps it not to happen again. All this is very difficult, it’s very vulnerable, and we are taught to just ignore things about race because that’s what is easiest for white society.</p><p>That was a very good practice to learn. I did that a few times with coworkers and I found it to be very helpful. I hope it addressed the harm that had been done and allowed all of us to move on. I feel that’s missing from our current approach talking about race and harm.</p><p><strong>Did you have any other reflections on how Sojourn impacted how you think about race?</strong></p><p>These are the most important trainings that I’ve ever taken at Google. I have thought about them ever since. It has changed the way that I see the world and understand whiteness — my whiteness. What whiteness has done for me, and how that affects the way in which I walk through the world. And understanding privilege on a very personal level but also on a much wider level.</p><p>But then also humanizing it and bringing it back to people in the same room I am in, who are going through these things that are kind of stories that show up in articles about diversity and inclusion, and having very real world impacts that are not just isolated incidents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0dc3e19a0c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing demographic data for Computer Science graduates (sex, race, and ethnicity)]]></title>
            <link>https://medium.com/@ericandrewlewis/accessing-demographic-data-for-computer-science-graduates-sex-race-and-ethnicity-ed619eecf792?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed619eecf792</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Mon, 25 Nov 2019 13:37:59 GMT</pubDate>
            <atom:updated>2019-11-25T13:37:59.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TTgMPyhiK548I21WpGFrA.png" /><figcaption>A graphic I made with information from the IPEDS and related databases</figcaption></figure><p>It’s well-known that the software engineering industry has diversity issues along gender and racial lines. White men are an over-represented group. We should bring folks of underrepresented demographics into our industry and ensure their success.</p><p>One path towards becoming a software engineer is obtaining a degree in Computer Science. Even if I did not take this path in my career, majoring in CS is a well-worn pipeline into the tech industry. It continues to be a factor in long-term changes to diversity of our workplaces.</p><p>I was curious to learn how to track the demographic make-up of Bachelor’s CS degree graduates over time. In this post, I’ll show you where to go for this data, depending on your use case:</p><ol><li>High-level statistics if you’re interested in general trends.</li><li>Raw data if you’d like to query a SQL database down to the institution level.</li></ol><p>The U.S. Department of Education conducts a set of annual surveys called <a href="https://en.wikipedia.org/wiki/Integrated_Postsecondary_Education_Data_System">IPEDS</a>. One of those is a <a href="https://nces.ed.gov/ipeds/use-the-data/survey-components/7/completions">Completions survey</a> that includes some demographic data about graduates for all institutions that participate in federal financial aid programs. Reporting this data to the public is required by the <a href="https://www.healthypeople.gov/2020/data-source/integrated-postsecondary-education-data-system">Higher Education Act of 1965</a>, so we can depend on it as a data source for years to come.</p><h4>High-level statistics</h4><p>The National Center for Science and Engineering Statistics (NCSES) aggregates data from the IPEDS surveys into multiple data sheets that answer questions like “For all computer science grads, how many were male vs. female? How many were black?”</p><p>You’ll want to look at the <a href="https://ncses.nsf.gov/pubs/nsf19304/data">Degrees Awarded data tables</a>: one looks at field of study and sex (see <a href="https://ncses.nsf.gov/pubs/nsf19304/data">table 5–1</a>), and another at field of study, sex, race, and ethnicity (see <a href="https://ncses.nsf.gov/pubs/nsf19304/data">tables 5–3 through 5–5</a>). These tables are offered in CSV format which you can import into a spreadsheet application for further analysis, or a PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*cBLLeOd8Qnqcs3APK4kzWA.png" /><figcaption>For example, looking at table 5–1 we can see in the last ten years the % of CS graduates that are female has wavered between 17 and 20%</figcaption></figure><h4>Analysis from raw data</h4><p>If you’re interested in working with raw data, I’ll walk you through how to set up a PostgreSQL table, import the data as a CSV file, and use SQL to answer our questions about graduate demographics and area of academic study.</p><p>Data for each year of the Completions survey is available on <a href="https://nces.ed.gov/ipeds/use-the-data">this IPEDS page</a> under the <strong>Survey Data</strong> section. In <strong>Select download option</strong>, I chose the <strong>Complete data files</strong> option, which gives us access to CSV files. On the next page, the data is separated into multiple files for each year. I downloaded the “Awards/degrees conferred by program (6-digit CIP code), award level, race/ethnicity, and gender” data file.</p><p>You should download the <strong>Dictionary</strong> file for the survey too. It describes what each column header in the CSV means, like <strong>CHISPT</strong> which represents “Hispanic or Latino total”.</p><p>I created a PostgreSQL table for the data file, and imported the CSV into it. Follow <a href="https://github.com/ericandrewlewis/ipeds-completions-to-postgres/blob/master/README.md">these instructions</a> to walk you through step-by-step.</p><p>The table includes demographic data that you can query on different dimensions:</p><ul><li><strong>unitid</strong>, an identifier for the educational institution. For example, 193900 represents New York University. See also a <a href="https://www.ohiohighered.org/sites/ohiohighered.org/files/uploads/hei/datasub/verificationtables/ipedsinst.pdf">full list of IPEDS UNITID codes</a>, and the section below “<em>UNITID data</em>”.</li><li><strong>cipcode</strong>, an identifier for the type of program. For example, 11.0101 represents “Computer and Information Sciences, General.” See also <a href="https://nces.ed.gov/ipeds/cipcode/browse.aspx?y=55">a full list of CIP Codes</a>.</li><li><strong>majornum</strong>, whether the graduate has this CIP Code for their first major or second major. Either a value of 1 or 2.</li><li><strong>awlevel</strong>, the award level, or level of the degree. For example, a value of 5 represents a Bachelor’s degree. See also <a href="https://surveys.nces.ed.gov/ipeds/VisInstructions.aspx?survey=10&amp;id=30080&amp;show=all#chunk_1637">IPEDS Award Levels</a>.</li></ul><p>Here’s an <a href="https://github.com/ericandrewlewis/ipeds-completions-to-postgres/blob/master/example.sql">example query</a> to see the number of CS Bachelor’s degrees granted by New York University, and how many of those graduates are male or female.</p><h4>UNITID data</h4><p><strong>UNITIDs</strong> are integers that represent an educational institution. When working with this data, I wanted metadata on the institution, like its address so I could place the school on a map. Thankfully, the DOE publishes a <a href="https://ope.ed.gov/dapip/#/download-data-files">Database of Accredited Postsecondary Institutions and Programs</a> (DAPIP), which you can download in CSV format.</p><p>I imported this CSV file into a Postgres table as well, so I could join it to the completions table to get the institution’s name and address.</p><p>See more detail in <a href="https://github.com/ericandrewlewis/ipeds-completions-to-postgres/#importing-unitid-data">Importing UNITID data</a>.</p><h4>CIP Codes</h4><p>A CIP Code identifies a type of program an educational institution offers. For example, the CIP code 11.0101 stands for “Computer and Information Sciences, General.” which many schools may offer. A <a href="https://nces.ed.gov/ipeds/cipcode/resources.aspx?y=56">list of all CIP Codes based on the 2010 definition is available</a> in CSV format.</p><p>I imported this CSV file into a Postgres table as well, so I could join it to the completions table to get the actual title of a CIP Code.</p><p>See more detail in <a href="https://github.com/ericandrewlewis/ipeds-completions-to-postgres/#importing-cip-codes">Importing CIP Codes</a>.</p><h4>Conclusion</h4><p>I hope this helps you in analyzing demographic data for our industry. This general approach should be useful for not just Computer Science, but demographic analysis on any majors.</p><p>Don’t hesitate to write with your questions, or what you find analyzing this data at eric.andrew.lewis@gmail.com.</p><h4>Further reading</h4><p>The National Center for Science and Engineering Statistics also publishes a report on Women, Minorities, and Persons with Disabilities in Science and Engineering which presents data from the Completions survey as well as others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed619eecf792" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A month-long tech mentoring opportunity of sorts]]></title>
            <link>https://medium.com/@ericandrewlewis/a-month-long-tech-mentoring-opportunity-of-sorts-39dada8a950a?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/39dada8a950a</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Wed, 22 May 2019 13:20:50 GMT</pubDate>
            <atom:updated>2019-05-24T13:13:31.149Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apply for a month-long tech mentoring opportunity of sorts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CIWqLqOeVVXWTqeRpRiziQ.jpeg" /><figcaption>Me, waving to you, although it looks like I’m just holding my hand up</figcaption></figure><p>Hey there! <a href="https://twitter.com/ericandrewlewis">I</a>’m offering a free month-long tech mentoring opportunity for someone living in the New York City metropolitan area.</p><p>I can meet for an hour or two every week to help however is useful: pair program, share my experience, provide feedback, or just catch up on what you’re doing.</p><p>Two requirements I ask, if you can:</p><ul><li>Write about your work regularly in public. Reflecting on what you do is one of the best ways to learn, and sharing your knowledge with the world is what the internet was built for!</li><li>Release your work under an <a href="https://choosealicense.com/">open source license</a>.</li></ul><p>Here are some scenarios that I could definitely help with:</p><ul><li>You haven’t programmed before and want to (I was a software engineering “bootcamp” instructor)</li><li>You have a programming project and want consistent feedback or someone to pair with (pair programming is great!)</li><li>You’re working on something and want accountability by checking in with someone every week</li></ul><p>Please don’t let this list be restrictive if I can help support you doing something cool that I didn’t describe!</p><p>I also speak nearly conversant Spanish, but we will have to talk slowly 🙂</p><p>To apply please write me at eric.andrew.lewis@gmail.com no fewer than 30 words and no more than 300 words by Sunday, May 26th, 2019 11:59pm EST.</p><p>Looking forward to hearing from you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39dada8a950a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journal: Attempting to recreate sounds with the Web Audio API]]></title>
            <link>https://medium.com/@ericandrewlewis/journal-attempting-to-recreate-sounds-with-the-web-audio-api-646155ee314f?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/646155ee314f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[music-technology]]></category>
            <category><![CDATA[sound]]></category>
            <category><![CDATA[web-audio-api]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Mon, 31 Dec 2018 22:10:32 GMT</pubDate>
            <atom:updated>2018-12-31T22:17:09.715Z</atom:updated>
            <content:encoded><![CDATA[<p>The question that has driven me recently has been: what makes an instrument’s timbre unique? I’ve watched a lot of Youtube videos on related topics, and understand that timbre is in part defined by the overtones embedded in an instrument’s frequency spectrum.</p><p>So today I charted different instruments frequency spectrum data and attempted to recreate their sound with the Web Audio API using additive synthesis.</p><p>I’m sure a unique timbre includes more than the overtone series. By looking at <a href="https://twitter.com/ericandrewlewis/status/1078864856432996353">a spectrogram</a> of a rich sound, you can see multiple frequencies ebbing in and out at their own pace, as well as envelope features - attack, decay, sustain, release. I ignored all those aspects today.</p><p>Frequency spectrum data is dense. I was hoping that an online chart-making program would let me put in 1000 data points and zoom in-and-out to inspect the peaks along the spectrum. Unfortunately that wasn’t the case, but <a href="https://www.amcharts.com/">amcharts</a> comes with this feature.</p><p>I made <a href="https://frequency-spectrum-graph.glitch.me/">a tool that listens to your microphone and plots frequency spectrum data on a graph</a>.</p><p>But I don’t want to sing into the mic and see my voice’s frequency spectrum — I’m trying to recreate other instrument sounds. I can sing on demand just fine! So, I got acquainted with the wild world of virtual audio devices.</p><p>I installed <a href="https://github.com/mattingalls/Soundflower">soundflower</a>, a macOS application which lets you create a virtual audio device I called “Built-in and SF output” as described in the <a href="https://github.com/mattingalls/Soundflower/releases/tag/2.0b2">“Say i want to” section</a>. I configure Soundflower (2ch) as the microphone on Chrome. So then, I can play any sound on my computer, and it is routed as input into the webpage’s microphone, as well as playing on my internal speakers. 💫 🤯</p><p>This is what a flute looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6HbUXnm8QtZhiiVzYsZOTA.png" /></figure><p>I created a flute sound out of sine wave oscillators that matched the first few peaks / overtones. It sounds a bit computer-y, and perhaps recognizable as a flute missing its breathy organic charm:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-flute-sound%3FpreviewSize%3D100&amp;dntp=1&amp;url=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-flute-sound&amp;image=https%3A%2F%2Fglitch.com%2Fedit%2Fimages%2Flogos%2Fglitch%2Fsocial-card%402x.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=glitch" width="600" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d75b0f5a5d50e454397afeae4ca9fe1/href">https://medium.com/media/9d75b0f5a5d50e454397afeae4ca9fe1/href</a></iframe><p>I learned a bit about decibels today, and thankfully I found <a href="https://stackoverflow.com/questions/22604500/web-audio-api-working-with-decibels">a conversion from decibels to gain values</a> and had a “lol I have no idea why this works but it does!” moment.</p><p>Instead of hand-picking overtones like some connect-the-dots synthesizer experiment, I put Chrome to the test and just created 1024 oscillators with all the frequency data I had. It seems there is a finite limit to how many oscillators you can make with the Web Audio API, but I could make about 500 which makes this weird sound:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-flute-sound-2%3FpreviewSize%3D100&amp;dntp=1&amp;url=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-flute-sound-2&amp;image=https%3A%2F%2Fglitch.com%2Fedit%2Fimages%2Flogos%2Fglitch%2Fsocial-card%402x.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=glitch" width="600" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/2997dc71fffbc4da1db346e901dde340/href">https://medium.com/media/2997dc71fffbc4da1db346e901dde340/href</a></iframe><p>This sound is a bit computery…even networky. Again, I can see where it’s “coming from”…but it doesn’t sound like a flute. There’s a fair amount of <a href="http://teropa.info/blog/2016/09/20/additive-synthesis.html#beating">beating</a> I can hear too.</p><p>I tried the same thing with a trumpet sound instead for comparison:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-trumpet-sound%3FpreviewSize%3D100&amp;dntp=1&amp;url=https%3A%2F%2Fglitch.com%2Fembed%2F%23%21%2Fembed%2Fdigital-trumpet-sound&amp;image=https%3A%2F%2Fglitch.com%2Fedit%2Fimages%2Flogos%2Fglitch%2Fsocial-card%402x.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=glitch" width="600" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/a657e83da840e3e74c4556019bea89d5/href">https://medium.com/media/a657e83da840e3e74c4556019bea89d5/href</a></iframe><h3>Random notes</h3><p><a href="https://hoch.io/">Hongchan Choi</a> is an editor of the WebAudio API spec. I came across his work today and was really impressed! He made:</p><ul><li><a href="https://hoch.github.io/canopy/">Canopy</a>, an app that takes a WebAudio API script and displays the audio node layout and the waveform</li><li><a href="http://hoch.github.io/WAAX/">WAAX</a>, a JS / Polymer framework for building synthesizer UIs</li><li><a href="http://hoch.github.io/WAAX/wac/gridflux/">Gridflux</a>, a sampler</li><li>A <a href="http://hoch.github.io/motw-2015/#typewriter">textbox that sounds like a typewriter</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=646155ee314f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One time I renovated my parents’ basement]]></title>
            <link>https://medium.com/@ericandrewlewis/one-time-i-renovated-my-parents-basement-6dd3155ee81?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dd3155ee81</guid>
            <category><![CDATA[home-renovation]]></category>
            <category><![CDATA[2008]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Thu, 13 Sep 2018 20:33:19 GMT</pubDate>
            <atom:updated>2018-09-29T02:30:26.493Z</atom:updated>
            <content:encoded><![CDATA[<p>In 2008 I graduated from the Gallatin School at NYU with a degree in Individualized Study. I didn’t do a great job defining a “concentration” of mine, I took a hodgepodge of curious classes: Video Art Studio, a class on the history of childhood in western culture, and of course a Marx reading class.</p><p>Armed with this bachelor’s degree, the obvious next step for me professionally was to renovate my parent’s basement.</p><p>Here, you can see the basement I grew up with: cinder block walls, concrete floors, and florescent lighting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*aRkoXd7ZqPWkCh-_0WNFqQ.jpeg" /><figcaption>Full disclosure: I did not participate in the Pepsi Challenge</figcaption></figure><p>I’m not sure exactly how I planned this large renovation project, but I did take a good amount of inspiration from <a href="https://www.amazon.com/Housebuilding-Do-Yourself-Revised-Expanded/dp/1402743165">this Housebuilding book</a>.</p><p>We submitted all our plans to our local township’s building regulatory body. The person in charge was surprised we even submitted plans since I guess folks just tear up their houses and do a bunch of renovation work without oversight. Something something the American DIY spirit.</p><p>One of the township regulations required a secondary fire escape path, so we cut one out. After digging the biggest hole of my life, I tore through ten inches of cinder block with an intensely large wet saw.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwMNwvND0VtotKvd4QU7vQ.jpeg" /></figure><p>The walls were coated with a waterproofing paint, and then I framed out the room with 2x4s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDvaHMF0m4jdTXmApls4_Q.jpeg" /><figcaption>My dad hidden behind a pole, and the Pinball game from the 1950s</figcaption></figure><p>I wired up the room with electrical outlets, as well as cable to new recessed lighting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPqJoBR58AUkTb27QBPlfw.jpeg" /><figcaption>I’m not sure I would feel comfortable doing this sort of work on my own now</figcaption></figure><p>The whole room was insulated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urHH2qiqL7dxCriRud3D9A.jpeg" /></figure><p>And then sheetrock installed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdGHj9Ju2wJlMLRXzBh46Q.jpeg" /><figcaption>Installing sheetrock on the ceiling requires risers (the yellow piece of equipment pictured here) to elevate the piece while you’re drilling it into the ceiling joists</figcaption></figure><p>Applying spackle to smooth over the cracks between slabs of sheetrock is a very important step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*_W4NtduxspYfBICnNhr3xw.jpeg" /></figure><p>When I look back at this, I can’t believe I did it. Not “wow I can’t believe I did such a great job.” More like “wow I can’t believe I was so headstrong to take on this intense task.” I made a lot of wild choices. The sheetrock slabs had to fit into awkward spaces, and I would be measuring and making rhombus shape cuts, and praying that things would fit together. I guess they did?</p><p>Nowadays I would never take on such an ambitious project. I rarely come up with wild ideas for websites (I’m a software engineer now) and try to execute them. I have before, and will often get upset with myself that I can’t create exactly what I wanted.</p><p>If I want to create, I take a formal course before taking even <a href="https://www.instagram.com/p/BeopYkqF1T2/?taken-by=ericandrewlewis">a medium-sized project</a>. I’ll experiment with tools and build little projects that teach me about how the tools work for my own education. If an interesting, accomplishable project becomes visible I might make it, but if I can’t see the way there I probably won’t.</p><p>But anyway here’s the basement today. My mom uses it as a sewing studio. Sometimes she puts on episodes of Lost in the background while she works on a new quilt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJmJkvIcwijMlL9gMtOOTg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dd3155ee81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Writing]]></title>
            <link>https://medium.com/@ericandrewlewis/my-writing-4be965d38194?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4be965d38194</guid>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Sat, 31 Mar 2018 14:33:20 GMT</pubDate>
            <atom:updated>2018-09-29T02:30:45.234Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@ericandrewlewis/one-time-i-renovated-my-parents-basement-6dd3155ee81">One time I renovated my parents’ basement</a>, September 2018</p><p><a href="https://all-about-bcrypt.glitch.me/">All About bcrypt</a>, June 2018</p><p><a href="https://wakeful-baritone.glitch.me/">Let’s build simple collision detection in Javascript</a>, March 2018</p><p><a href="https://joyous-gorilla.glitch.me/">Let’s move a circle along a line in JavaScript</a>, February 2018</p><p><a href="https://ericandrewlewis.com/2016/08/choosing-keyboard-shortcuts-for-websites/">Choosing Keyboard Shortcuts for websites</a>, January 2016</p><p><a href="https://ericandrewlewis.com/2016/08/how-to-install-linux-mint-on-a-pc/">How to install Linux Mint on a PC</a>, August 2015</p><p><a href="https://gist.github.com/ericandrewlewis/4983670c508b2f6b181703df43438c37">top (Unix process inspector) cheat sheet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4be965d38194" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A List of My Talks and Workshops]]></title>
            <link>https://medium.com/@ericandrewlewis/a-list-of-my-talks-and-workshops-9c4b4b89cb08?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c4b4b89cb08</guid>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 18:35:24 GMT</pubDate>
            <atom:updated>2018-03-21T18:35:24.291Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction to React, LibertyJS Philadelphia, PA. October 2017.</p><p><a href="http://wordpress.tv/2016/07/01/eric-lewis-editing-text-at-the-new-york-times/">Editing Text at The New York Times</a>, WordCamp Europe. June 24 2016.</p><p><a href="http://www.meetup.com/WordPressNYC/events/230465889/">Intro to WordPress workshop</a>. April 29 2016.</p><p>WordPress New Contributor Workshop. January 30 2016.</p><p><a href="http://www.meetup.com/Big-Media-WordPress-Meetup/events/226032994/">Customize Anything with the Customizer</a>, WP Big Media Meetup. December 1, 2015.</p><p><a href="http://wordpress.tv/2014/09/25/eric-andrew-lewis-an-introduction-to-wp-media/">HTTPS and You (video)</a>, WordCamp NYC. October 31, 2015.</p><p><a href="http://www.meetup.com/WordPressNYC/events/225499577/">HTTPS Workshop</a>, WPNYC user group. October 24, 2015.</p><p><a href="https://www.youtube.com/watch?v=ZaV-mU1Ki2M">Tools for tracing patterns in software (video)</a>, Loopconf. May 2015.</p><p>How tree structures work in Emoji Mosaic. BrooklynJS, September 2015</p><p><a href="http://www.meetup.com/Internet-Club-NYC/events/182185172/">Underscore.js visual cheat sheet</a>, Internet Club NYC. May 27, 2014.</p><p>Developer Tools. WordCamp Philadelphia 2012.</p><p>The WordPress Rewrite API, WordCamp NYC 2012.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c4b4b89cb08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Open Source Contributions]]></title>
            <link>https://medium.com/@ericandrewlewis/my-open-source-contributions-6d9753b2d10?source=rss-4c01723330f4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d9753b2d10</guid>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Eric Lewis]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 18:34:01 GMT</pubDate>
            <atom:updated>2018-03-21T18:34:01.928Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://ericandrewlewis.github.io/emoji-mosaic/">Emoji Mosaic</a> turn images into emoji. <a href="https://github.com/ericandrewlewis/emoji-mosaic">source</a></p><p><a href="https://github.com/ericandrewlewis/underscore-visual-cheat-sheet">Underscore.js Visual Cheat Sheet</a></p><p><a href="https://hub.docker.com/r/ericandrewlewis/b2/">b2 Docker image</a></p><p><a href="http://ericandrewlewis.github.io/how-a-quadtree-works/">How a quadtree works</a>, <a href="https://github.com/ericandrewlewis/how-a-quadtree-works">source</a></p><p><a href="https://github.com/ericandrewlewis/react-reverse-order-with-lazy-load">React reverse order of items with lazy load</a></p><p><a href="https://gist.github.com/ericandrewlewis/720c374c29bbafadedc9">C++ pointer tutorial</a></p><p><a href="https://github.com/ericandrewlewis/b2">b2 git mirror</a></p><p><a href="https://sayyestohttps.org/">Say Yes to HTTPS</a>, a learning resource for web developers on what is HTTPS and how to implement it.</p><p><a href="http://bl.ocks.org/ericandrewlewis/dc79d22c74b8046a5512">Circles on an axis in a static force layout</a> using D3.</p><p><a href="http://ericandrewlewis.github.io/flying-objects-screensaver/">Flying objects screensaver</a></p><p>Homebrew package search results were confusing if you didn’t know their jargon. We improved this experience, see<a href="https://github.com/Homebrew/homebrew/issues/42222">#42222</a></p><h3>WordPress</h3><p>Committed on WordPress core since version 4.5, see <a href="https://github.com/WordPress/WordPress/commits?author=ericandrewlewis">all of my commits</a>.</p><p>Led the Media Grid feature plugin which was a flagship feature of <a href="https://wordpress.org/news/2014/09/benny/">WordPress 4.0</a>.</p><p>Helped with the Shiny Updates feature, which updates plugins without page reloads. <a href="https://wordpress.org/news/2015/04/powell/">Merged into WordPress 4.2</a>.</p><p>Wrote <a href="https://gist.github.com/ericandrewlewis/2310fd6d7dabf0696965">Customizer API documentation</a>.</p><p>Created <a href="https://github.com/ericandrewlewis/wp-custom-css-per-post">an example of using the Customizer on the Edit Post screen</a>.</p><p>Created an interactive <a href="https://github.com/ericandrewlewis/wp-media-javascript-guide">Media JavaScript documentation</a>.</p><p>Wrote a tutorial on <a href="https://gist.github.com/ericandrewlewis/95239573dc97c0e86714">Setting up a WordPress site on AWS</a>.</p><p><a href="https://gist.github.com/ericandrewlewis/4ef4963be7b21b3b520c">How should we decide what features to bring into WordPress core?</a></p><p>Co-organized the local WordPress conference WordCamp NYC in 2014.</p><p>Batcache was serving stale pages after updates, which we fixed. See <a href="https://github.com/Automattic/batcache/issues/27">#27</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d9753b2d10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>