<?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 Keefer Rourke on Medium]]></title>
        <description><![CDATA[Stories by Keefer Rourke on Medium]]></description>
        <link>https://medium.com/@keeferrourke?source=rss-cff5094f626f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L3NuoVrKbW6Eu9DFDEEqJA.png</url>
            <title>Stories by Keefer Rourke on Medium</title>
            <link>https://medium.com/@keeferrourke?source=rss-cff5094f626f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:41:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keeferrourke/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[What I learned: A month ago (July 2019)]]></title>
            <link>https://medium.com/@keeferrourke/what-i-learned-a-month-ago-july-2019-d399ccf6a8e2?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d399ccf6a8e2</guid>
            <category><![CDATA[random]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[today-i-learned]]></category>
            <category><![CDATA[lifestyle]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Sun, 18 Aug 2019 15:56:44 GMT</pubDate>
            <atom:updated>2019-08-18T15:56:44.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s some stuff I learned last month. I’m publishing this super super late because as it turns out, this summer has been super super busy for me, and I can’t keep up with this blog-post format.</p><p>I think I’ve run some of these entries out of scope, and they really should have been standalone posts — but you live and learn.</p><p>This will be the last post in this format. I will continue recording what I’ve learned each day, and write up longer format posts for things that I find really interesting. Til then, here’s the first two weeks of July.</p><p><strong>2019/07/01: 🏕️</strong></p><p>Camping today! Giving my brain a break for the long weekend 😃</p><p>Today I did not learn!</p><p><strong>2019/07/02: 🔗 Closure Tables 🔗</strong></p><p>Today I found myself needing to serialize a tree structure to disk. The naive way to do this is to have each row in a table act as a node in the tree, with a nullable parent column that points to each child to its parent. This makes re-building the entire tree easy if you want to load it back into memory and query it, but it makes querying in the database difficult. That’s not really ideal.</p><p>If you want to query the children of a particular node, up to a certain depth (useful if, for example, you’ve written a comment-system for a blogging software), this is really hard to do. You need a ton of JOIN operations on the same table, and it gets cumbersome to query a deep tree.</p><p>An alternative strategy is to store the closure of the tree — that is every single relationship between nodes — in another table referenced by foreign keys.</p><blockquote><strong><em>TIL</em></strong><em>: You can use a closure table which stores full node-relationship data to make easy and useful queries against the structure without having to de-serialize the whole tree.</em></blockquote><p><strong>2019/07/03: 🤧Dynamo DB use cases 🤧</strong></p><p>There aren’t really that many.</p><blockquote><strong><em>TIL</em></strong><em>: DynamoDB is a </em>proprietary<em> database offering from Amazon. It’s NoSQL, and works best as a key-value store. Complex queries are hard to do.</em></blockquote><p><strong>2019/07/04: 🧘‍♂️ Mindfulness meditation really does have payoffs 🧘‍♂️</strong></p><p>Midterm reviews are always a little scary. There are nerves from being evaluated, worries that you’ve come short in some aspect, etc. Historically, I enter these situations as a tangled ball of nervous spaghetti.</p><p>Since starting semi-regular mindfulness meditation last year though, I’ve become more aware of when nervous and distracting thoughts encroach on my productivity and happiness. Today I found myself thinking, “Despite everything I’ve done, my work output has been too low, and I’m not contributing or advancing enough, this review is going to go terribly!” and I felt my palms start to sweat. A few focused breaths later, I tricked myself into a more positive and open mindset — whatever criticism there was to be had is feedback to make me a better person, and hey! I have accomplishments to brag about!</p><p>The review went really well!</p><blockquote><strong><em>TIL</em></strong><em>: Situational reframing is a really powerful tool in stressful moments to turn negative experiences on their heads. Meditative training has paid off 😃</em></blockquote><p><strong>2019/07/05: 💻 Kotlin’s scoping functions 💻</strong></p><p>Configuration of an object during a call-chain.</p><p>Semantic meanings:</p><ul><li><strong>also:</strong> additional processing on an object in a call chain</li><li><strong>apply:</strong> post-construction configuration</li><li><strong>let:</strong> conversion of value</li><li><strong>run:</strong> execute lambdas with side-effects and no result</li><li><strong>with</strong>: configure objects created somewhere else</li></ul><blockquote><strong><em>TIL</em></strong><em>: Scoping functions let you express configuration logic in call chains elegantly!</em></blockquote><p>Here’s an example with a builder:</p><pre>val vehicle = Vehicle.Builder()<br>    .addSeats(5)<br>    .apply {<br>      if (goesToSpace) wuseRocketEngine()<br>      else useBoxerEngine()<br>    }.build()</pre><p>And the corresponding java which has to break up the chain, losing readability:</p><pre>Vehicle.Builder builder = Vehicle.Builder().addSeats(5)<br>if (goesToSpace) builder.useRocketEngine()<br>else builder.useBoxerEnginer()<br>Vehicle vehicle = builder.build()</pre><p>There’s also this handy flow chart to help you pick the right one when you need it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/0*9I3WtGLMZ8qiZD1e.png" /><figcaption>How to choose a Kotlin scoping function.</figcaption></figure><p><strong>2019/07/06: 🦷 Root canals 🦷</strong></p><p>I’ve never thought of what a root canal procedure is beyond a terrifying image of a dentist with a drill in your mouth. My boyfriend needs to get one soon, so I actually looked into what it is. I kind of wish I hadn’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*MOwz4Rz2k1K_X9Ws.png" /></figure><blockquote><strong><em>TIL</em></strong><em>: Teeth contain a pocket of soft tissues at their core. A root canal operation </em>removes<em> this tissue, and fills the tooth with cement. Spooky af.</em></blockquote><p><strong>2019/07/07: 👨‍💻CPU / Motherboard compatibility 👨‍💻</strong></p><p>I’ve never built a computer before. A long time ago I refurbished them weekly, volunteering for the Computer Recycling hub at the Working Centre in Kitchener, but those machines tended to be pretty old.</p><p>While I’ve swapped out countless parts, I’ve never done much with motherboards, so I was surprised today when I found that you need a BIOS update to support newer CPUs like the AMD Ryzen 3600.</p><blockquote><strong><em>TIL</em></strong><em>: (and it probably goes without saying) Not all CPUs and motherboards are compatible, and that compatibility happens at a software layer rather than a hardware layer.</em></blockquote><p><strong>2019/07/08: 🐬 MySQL text storage 🐬</strong></p><p>MySQL has a few different text storage types (and sizes):</p><ul><li>VARCHAR (variable number of <em>characters</em>)</li><li>TINYTEXT (<em>2⁸-1</em> bytes)</li><li>TEXT (<em>2¹⁶-1</em> bytes)</li><li>MEDIUMTEXT (<em>2²⁴-1</em> bytes)</li><li>LONGTEXT (<em>2³²-1</em> bytes)</li></ul><p>The *TEXT storage types are actually stored as references to objects stored outside of each row, so lookups for these types actually requires additional memory I/O overhead. VARCHAR types are stored in the row itself, and are sized by number of characters (so multi-byte characters only take up one “space” in the possible storage slot).</p><blockquote><strong><em>TIL</em></strong><em>: MySQL rows have a max size of 2¹⁶-1 bytes. Considering there is storage overhead with row/type metadata, and VARCHARs aren’t easy to measure, large VARCHAR values should be avoided in table schemas!</em></blockquote><p><strong>2019/07/09: 🌳 Tree insurance 🌳</strong></p><p>It might seem obvious, but if your whole liveliness is dependent on the health of fruit producing trees, well then… of course you can insure them against fires and disease. Tree farmers insure forests.</p><blockquote><strong><em>TIL</em></strong><em>: Tree insurance exists, and apparently I need to learn more about the agricultural processes that support our populations and livelihoods.</em></blockquote><p>(I’d like to thank to people who come from all walk of life to chat to strangers at <a href="https://www.hackernest.com/">HackerNest</a> for teaching me this and keeping my perspective broad.)</p><p><strong>2019/07/10: 🏃 SHA512 vs SHA256 speed 🏃</strong></p><blockquote><strong><em>TIL</em></strong><em>: The SHA512 algorithm performs much faster on 64-bit hardware than SHA256 does. This surprised me!</em></blockquote><p><strong>2019/07/11: 🖥 Inglorious demos are still demos 🖥</strong></p><p>Code with a front-end is easy to demo. Flashy stuff happens, people see something tangable. I’ve had mixed success with demos in the past. This is something I need to work on.</p><blockquote><strong><em>TIL</em></strong><em>: You can still pretty up a test case to make a decent demo of functionality.</em></blockquote><p><strong>2019/07/12: 👨‍💻 Static interface methods in Kotlin 👨‍💻</strong></p><p>Sometimes I find myself wishing that there was a way to express something like a static interface for Objects on the JVM. That is, I want to name-space different implementations of a method without necessarily requiring an instance object. Python programmers might be familiar with @staticmethods which can called from an object or the class, and can be conveniently overridden in subclasses.</p><p>In Kotlin, I want this syntactically as something like:</p><pre>interface Encoder&lt;T, R&gt; {<br>  static fun encode(data: T): R<br>}</pre><p>but it doesn’t exist.</p><p>I sort of found a work-around today, which goes like this:</p><pre>interface Encoder&lt;T, R&gt; {<br>   fun encode(data: T): R<br>}</pre><pre>data class MyData(<br>  val bytes: ByteString<br>): Encoder&lt;MyData, Result&gt; by Companion {<br>  companion object: Encoder&lt;MyData, Result&gt; {<br>    fun encode(data: MyData): Result = TODO()<br>  }<br>}</pre><p>I would rarely want to call this method from the instance, but having implemented the interface is helpful to let me know the method is available. I’m not sure if this a <em>great</em> pattern, but it works well for a problem I had recently.</p><blockquote><strong><em>TIL</em></strong><em>: Kotlin still lets me do things I miss from Python, and that is pretty damn cool!</em></blockquote><p><strong>2019/07/13: 🍰 Birthday celebration with family 🍰</strong></p><blockquote><strong><em>TIL</em></strong><em>: No matter how much you resist, you still must eat the cake.</em></blockquote><p><strong>2019/07/14: This format of blog post is hard to maintain</strong></p><p>Life has gotten really busy lately with moving houses, and a bunch of other stuff, and I simply don’t have the time to write up a good explanation of a thing I learn each day. I think I may have been overly ambitious when I started this series, so it’s time to stop.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d399ccf6a8e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Week I Learned (June 2019 — w4)]]></title>
            <link>https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w4-c92a93f38c7c?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c92a93f38c7c</guid>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 22:32:01 GMT</pubDate>
            <atom:updated>2019-07-12T04:31:24.413Z</atom:updated>
            <content:encoded><![CDATA[<h3>This Week I Learned (June 2019 — w4)</h3><p>This week: physics, security, open source, and biology. Here’s some takeaways.</p><p>(Published this late! Whoops!)</p><p><strong>2019/06/22: </strong>🔇 <strong>How sound proofing works </strong>🔇</p><p>Putting the world on mute is a dream sometimes. I always thought that sound-proofing a room was just a matter of padding it with enough absorbing material that sound waves are stopping in their tracks. Turns out there’s way more to it, and some elegant structures that can be installed to reduce the need for super thick layers of absorbing material.</p><blockquote><strong><em>TIL</em></strong><em>: Resiliant channels are beams that can be installed to </em>disperse<em> sound waves and reduce their amplitude using physics instead of brute force — because of course!</em></blockquote><p><strong>2019/06/23: 🔏 </strong>How to choose an SSH key cipher <strong>🔏</strong></p><p>If you’ve ever managed a web server before, you’ll understand the importance of SSH keys and their security. Today I needed to create a new SSH key, and instead of picking what I <em>thought</em> was the best (what I was most familiar with!), I did a bit of research first to better understand the history of these algorithms.</p><p>At least on Ubuntu 16.04 ssh-keygen supports 4 algorithms out of the box:</p><ol><li>RSA (oldest; asymmetric; long key length*)</li><li>DSA (asymmetric; concerns from Snowden leaks)</li><li>ECDSA (elliptic curve; concerns from Snowden leaks)</li><li>ed25519 (elliptic curve; uses independently researched primitives)</li></ol><p>RSA is a fine algorithm. It’s one that I’ve been familiar with since high school, and many people should understand the algorithm if they’ve taken a cryptography or network security course. Over time though, it’s proven to require longer and longer keys, which I find inconvenient to copy. The recommended key-length has increased from 1024 bits to 2048 bits to 4096 bits over the last decade due to advances in computing making shorter keys easier to crack. These longer and longer keys are annoying to copy and result in higher computation demand to sign, encrypt, or verify with.</p><p>DSA and ECDSA are two algorithms which are produced from the <a href="https://nist.gov/">NIST</a>. The security of these algorithms has been called into question by Snowden’s <a href="https://en.wikipedia.org/wiki/Global_surveillance_disclosures_(2013%E2%80%93present)">global surveillance disclosures</a>, and the revelation that the NSA willingly inserts backdoors into software, which have the potential to compromise the crypto-ecosystem for <em>everyone </em>if they are discovered and used by abusive agents.</p><p>Unfortunately I don’t like the NSA’s hacks as much as the NSA like my hacks :(</p><h3>Keefer 🌻 on Twitter</h3><p>tfw @NSAGov gives you a card because they liked your hack</p><p>Lastly, EdDSA (ed25519) is an elliptic curve algorithm invented by independent cryptography researchers <a href="https://en.wikipedia.org/wiki/Daniel_J._Bernstein">Daniel J. Bernstein</a>, Niels Duif, <a href="https://en.wikipedia.org/wiki/Tanja_Lange">Tanja Lange</a>, Peter Schwabe, Bo-Yin Yang, et. al. which is comparable to the NIST ECDSA.</p><p>Running a benchmark with openssl (LibreSSL 2.6.5) the performance of RSA4096, DSA2048, and the elliptic curve algorithms — the numbers were all roughly the same. I opt for the shorter key length, and the least political algorithm.</p><blockquote><strong><em>TIL</em></strong><em>: It doesn’t really matter, but since you copy SSH pubkeys around a fair bit, shorter is better. Pick </em><em>ed25519.</em></blockquote><p><strong>2019/06/24: </strong>🧐 AuthZ vs AuthN 🧐</p><p>I sort of already knew this, but I came across this terminology in the wild and thought it would be good to have recorded. Here’s the run-down for RBAC:</p><blockquote><strong>AuthZ</strong> = Authorization: Are you allowed to do this?</blockquote><blockquote>AuthN = Authentication: Are you who you say you are?</blockquote><p>I tend to think of this as users and permissions, kind of like the Unix model of file access controls. You’re authenticated if you can log in to the system, and you’re authorized if you can perform actions. Easy.</p><p><strong>2019/06/25: </strong>💀 You’re dead unless you’re cutting regular releases ⁉️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BXG5YRKzSoWo4zQJ.png" /><figcaption>Is this project dead? Someone thinks so… 🙄</figcaption></figure><p>So a really long time ago I didn’t have a job. Or much of a personal life. I had way too much free time, and I was <em>enamoured</em> with a project I was working on. I would work on this thing in massive, energetic bursts — frequently!</p><p>I still love this project, and I work on it semi-regularly, though at a much slower rate.</p><p>Today I got a notification of an issue asking if the project was <strong>dead</strong>. <em>Oof.</em></p><blockquote><strong><em>TIL</em></strong><em>: I should cut a new release soon.</em></blockquote><p><strong>2019/06/26: </strong>👨‍🔬 Body chemistry 👨‍🔬</p><p>Today I did it. I pushed my body to a limit it was not willing to return from. No matter how much I <em>really </em>wanted to climb that V4 boulder, I was <strong>not</strong> ready.</p><p>I got halfway up with some good speed and my arms gave out — burning. I figure I tore a muscle or two.</p><p>I really want to get back to the climbing walls, so I did some painful research and I purchased some <em>beta-alanine</em> on recommendation of a friend who has an admittedly more active life-style than me.</p><blockquote><strong><em>TIL</em></strong><em>: </em>Carnosine<em> is a buffer that is highly concentrated in muscle tissues and aids in recovery from intense workouts. </em>Beta-alanine<em> is a consumable amino acid that gets converted to c</em>arnosine <em>when it’s metabolized.</em></blockquote><p>Things I need to be more conscious of to stay fit and healthy:</p><ol><li>Limits and recovery time.</li><li>Metabolic processes that make me tick as a human.</li></ol><p>I’ll consider this a decent starting point.</p><p><strong>2019/06/27: 📃 </strong>Never the right amount of documentation 📄</p><p>Software documentation is important. You don’t want to be redundant, or over-explain, or under-explain. That makes it difficult to write. I’ve over-documented to a fault in the past, and I often am not happy with my docs.</p><p>Self-realization: I need to get better at copy-editing. Maybe I should revisit some of my OSS.</p><blockquote><strong><em>TIL</em></strong><em>: I feel like I spend too much time editing copy. I need to figure out when the best time to do this is.</em></blockquote><p><strong>2019/06/28: </strong>👾 Mozilla Android Components 👾</p><p>If you know me at all, then it should not come as a surprise that I’m not exactly happy that each day Google appears to controll an ever-increasing amount of web content, and the mechanisms by which we consume it.</p><p>That said, today I discovered that Mozilla released Firefox Preview on Android and boy is it ever flashy! It uses Quantum/Servo and offers a non-chromium-based alternative for consuming content on Android huzzah! What’s more? It’s built on a Kotlin(!!) <a href="https://mozac.org/">library of reusable components</a> that make it easy to build web and browser-like content on mobile devices!</p><p>I don’t have an idea for an Android app at the moment, but I’m sure that I’ll be playing with these components soon 😃</p><blockquote><strong><em>TIL</em></strong><em>: </em><a href="https://mozac.org/"><em>https://mozac.org</em></a><em> exists and I am ever-increasingly impressed with the quality of engineering that comes from the teams at Mozilla!</em></blockquote><p><strong>2019/06/29: </strong>🏕️ Consequences of waiting too long to book a campsite 🏕</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3SqkV60g8qigeBUkmgdEw.png" /><figcaption>Yeah… Ok Google.</figcaption></figure><blockquote><strong><em>TIL</em></strong><em>: 5.5hrs is a bad estimate for long-weekend camping traffic. Should’ve booked a site in like January. 😂</em></blockquote><p><strong>2019/06/30: 🏕️</strong></p><p>Camping today! Giving my brain a break for the long weekend 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c92a93f38c7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Week I Learned (June 2019 — w3)]]></title>
            <link>https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w3-2725965525eb?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2725965525eb</guid>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Sat, 22 Jun 2019 15:21:34 GMT</pubDate>
            <atom:updated>2019-06-22T15:27:54.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>This Week I Learned (June 2019 — w3)</h3><p>Here’s some stuff I learned this week 😄</p><p><strong>2019/06/15: 📦 </strong>Python packaging hack 📦</p><p>With the summer coming into full swing, I’m getting excited for the projected Q3 launch of the <a href="https://shop.puri.sm/shop/librem-5/">Librem 5</a>, so this weekend I started some hobby work on a small GTK3 application using <a href="https://source.puri.sm/Librem5/libhandy">LibHandy</a>. Bootstrapping projects is annoying, but what I found in a project template surprised me.</p><blockquote><strong><em>TIL</em></strong><em>: A dirty formula that makes packaging Python application code a breeze.</em></blockquote><p>I wrote a <a href="https://medium.com/@keeferrourke/mostly-painless-packaging-for-python-applications-b97b618d0352?source=friends_link&amp;sk=def64840120d8c217f87d9e3e7d1a1af">blog post </a>about it!</p><p><strong>2019/06/16: ⬆️ </strong>Prosto! ⬆️</p><p>It’s Polish for “straight.” Useful for giving directions to your future parents on long stretches of highway.</p><blockquote><strong><em>Today I remembered</em></strong><em>: I gotta get back to Duolingo if I have any hope of following conversation at my boyfriend’s house.</em></blockquote><p><strong>2019/06/17: 🤥 </strong>Fakes can be liars <strong>🤥</strong></p><p>Building <em>fake</em> objects into your software is a <strong>great</strong> idea. If you keep them in mind when you’re building an application, you’re more than likely going to program to an interface, and testing will be easier because you can provide fake implementations (that you control!) to your system under test.</p><p>There’s a caveat though:</p><blockquote><em>⚠️ Keep your Fakes in sync with your Real implementations.</em></blockquote><p>Today I discovered that a suite of tests was passing for about 3 weeks when it <em>should have</em> been failing — because I forgot to update the Fake implementation.</p><blockquote><strong><em>TIL</em></strong><em>: Be mindful of your fakes!</em></blockquote><p><strong>2019/06/18: 🦖 </strong>Moshi moshi 🦖</p><p>Working with Java/Kotlin/Android? Have a polymorphic data model? Need to represent it as JSON? <a href="https://github.com/square/moshi">Moshi</a> has the thing for you.</p><p>Say you have a data model like this:</p><pre>sealed class Dino<br>data class TRex(<br>  val name: String, val eats: &quot;String&quot;<br>) : Dino()<br>data class Pterodactyl(<br>  val name: String, val size: Int, val wingspan: Int<br>) : Dino()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EftIwaor2KioBtKS" /><figcaption>Source: <a href="https://www.pexels.com/photo/assorted-dinosaur-figures-1468311/">pexels.com</a> (free license)</figcaption></figure><p>Rather than having to reason about some clever way to convey type info and write your own marshalling routine, Moshi lets you do something like this:</p><pre>val moshi = Moshi.Builder()<br>    .add(PolymorphicJsonAdapterFactory.of(Dino::class.java, &quot;type&quot;)<br>    .withSubtype(TRex::class.java, &quot;T-Rex&quot;)<br>    .withSubtype(Pterodactyl::class.java, &quot;Pterodactyl&quot;))<br>    .add(KotlinJsonAdapterFactory())<br>    .build()<br>val adapter = moshi.adapter(Dinosaur::class)<br>val json = adapter.toJson(TRex(name = &quot;Sue&quot;, eats = &quot;meat&quot;))</pre><p>to get something like this:</p><pre>{ &quot;type&quot;: &quot;T-Rex&quot;, &quot;name&quot;: &quot;Sue&quot;, &quot;eats&quot;: &quot;meat&quot; }</pre><blockquote><strong><em>TIL</em></strong><em>: Leaning too heavily on a standard library can slow down or stop progress. There’s probably an extension that does what you need — if you know where to look for it.</em></blockquote><p>You can expect a more detailed write-up on the <a href="https://cashapp.github.io/">Cash App Code Blog</a> soon!</p><p><strong>2019/06/19: 🦜</strong>Organize by feature, not technology 🦜</p><p>Whenever I start a new project, I’m always snagged by the question:</p><blockquote>How do I organize this to cause the least amount of future pain?</blockquote><p>Project structuring is hard, especially if you have long term growth in mind!</p><p>Last semester I was taught to do MVC very explicitly:</p><pre>project/<br>\_models/<br>\_views/<br>\_controllers/</pre><p>Not only did this lead to some nasty redundant imports like</p><pre>from project.controllers.window import WindowController</pre><p>but it also lead to some pain points refactoring because features were scattered through the project structure. I just thought that was kind of how it is 🤷‍♂</p><p><a href="https://publicobject.com/">Jesse Wilson</a> has some great advice though: <em>Don’t do that!</em></p><p>Organizing by feature:</p><ul><li>Simplifies modularization of features</li><li>Reduces maintenance cost by making it easy to find what to copy &amp; rewrite, and/or what to delete.</li></ul><blockquote><em>TIL: How to write code that lasts forever.</em></blockquote><p>There’s some more great advice in <a href="https://speakerdeck.com/swankjesse/writing-code-that-lasts-forever-droidcon-nyc-2018">this slide deck</a>.</p><p><strong>2019/06/20: 📝 </strong>Tracing is a fantastic testing strategy 📝</p><p>If you’re testing an asynchronous system, or something in which order of operations really matters, you might be tempted to mock objects and put them into a queue of sorts and assert an ordering. I assert that this makes tests hard to maintain.</p><blockquote><strong><em>TIL</em></strong><em>: It is a very powerful strategy to make custom subclasses that let you trace through behaviour. It keeps coming up!</em></blockquote><p>If there’s a hard to understand or asynchronous thing in your software, then put something like this in your test case and assert against the log contents.</p><pre>val log = mutableListOf&lt;String&gt;()<br>object Foo : AsyncThing {<br>  override fun businessLogic() {<br>    log += &quot;Touched Foo.&quot;<br>  }<br>}</pre><p><strong>2019/06/21:</strong> 🔑 Indirection is key 🔑</p><p>Some really good things to do if you want to write quality, testable code:</p><ul><li>Program to an interface</li><li>Use dependency injection</li><li>Ship fake objects</li></ul><p>In an ideal world, every dependency of every class and module in your program is easy to fake so that when it comes down to it, you’re able to test your algorithms against specific inputs rather than test the integration of your object dependencies and their side effects against specific inputs.</p><p>What if you can’t fake something though? Your scope probably isn’t narrow enough.</p><p>For example, if you’re writing a class that needs an HttpClient in order to download something, you won’t be able to fake the requests in tests. Instead, you probably need to create a Downloader interface, which can hide the details of the request from the consuming object. A RealDownloader can use an HttpClient as an implementation detail and you can provide this in production. AFakeDownloader can be provided in tests which returns hard coded outputs and doesn’t depend on anything with side effects.</p><blockquote><strong><em>TIL</em></strong><em>: Additional levels of indirection are super powerful. Don’t be afraid to create simple interfaces that help to achieve that.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2725965525eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mostly painless packaging for Python applications]]></title>
            <link>https://medium.com/@keeferrourke/mostly-painless-packaging-for-python-applications-b97b618d0352?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b97b618d0352</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[system-administration]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[packaging]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Fri, 21 Jun 2019 03:25:27 GMT</pubDate>
            <atom:updated>2020-07-25T22:44:11.989Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a post about putting snakes into little boxes on Linux.</p><p>I think Python is a weird language. It is dynamic. It is interpreted. It is wildly popular. It is… multi-multi-paradigm. You can write Python a thousand and one different ways.</p><p>Supporting anything and everything from straight-line scripting to functional programming to object-orientation, with a loose module system, dynamic imports, and arbitrary entry points. Python projects do not have a universally defined structure!</p><p>With no definitive<em> One Way</em>, this wild-west can make it a pain to reason about structuring Python applications, and then eventually packaging them for distribution and clean installation/uninstallation.</p><p>For anyone not at all familiar with Python development, there are a couple things about it that I find surprizing and mildly uncomfortable. Namely:</p><ol><li>The weird ceremony of if __name__ == &quot;__main__&quot;: that says, <em>&quot;Hey interpreter! Please don’t execute this code block unless I am the main program!&quot;</em>. <br>If you see this often, it’s because Python makes no distinction between library code and application scripts. You are free to import any module that contains application code as a library. This condition just guards application entry points from running if someone decides to use your code as a library. As someone who’s used to writing one form of int main() or another, this is cool, but weird.</li><li>The presence of this platform call: sys.path.insert(idx, directory)<br>This function mutates the PYTHONPATH, affecting the resolution order for all modules/files/classes in the current application. This feels gross and dangerous, and at first glance it feels like shouldn’t be touched by anyone, ever.</li></ol><p>Using the latter platform call has some major consequences. The entries of the PYTHONPATHare special — they define where your Python installation is — yet you can override it, change its ordering and subsequently break stuff.</p><p>A Python 3.5 installation on Ubuntu might have the following default path.</p><pre>&gt;&gt;&gt; import sys<br>&gt;&gt;&gt; print(sys.path)<br>[&#39;&#39;, &#39;/usr/lib/python35.zip&#39;, &#39;/usr/lib/python3.5&#39;, &#39;/usr/lib/python3.5/plat-x86_64-linux-gnu&#39;, &#39;/usr/lib/python3.5/lib-dynload&#39;, &#39;/usr/local/lib/python3.5/dist-packages&#39;, &#39;/usr/lib/python3/dist-packages&#39;]</pre><p>Programmer carelessness aside, the fact that such an important path is so easily mutable also makes me feel nasty because I can imagine how easy this could make it insert a malicious version of a class into the path before a nice version of a same class. I basically think that things like sys.path should be avoided like the plague because for any legitimate work, we have nice, safe tools like virtualenv for path management.</p><p>So it surprised me when I initialized a new project with <a href="https://wiki.gnome.org/Apps/Builder">GNOME Builder</a> and I saw something like this in a Meson template file!</p><pre># Meson replaces this with a value from its configuration data.<br>pgkdatadir = &#39;@pkgdatadir@&#39;<br>sys.path.insert(1, pkgdatadir)<br>if __name__ == &#39;__main__&#39;:<br>    from app import Application<br>    sys.exit(Application.main())</pre><p>I was confused and appalled! … Until I understood what the generated meson.build script was doing. It’s actually a neat hack that hides away arbitrary project structures and makes packaging a dream.</p><h3>The pkgdatadir</h3><p>When you’re building and installing a Meson project, you often do something like this:</p><pre>meson _build --prefix=/usr/share<br>ninja -C _build install</pre><p>In my case, my meson.build file sets the configuration variable pkgdatadir to the prefix specified above. So, the above incantation goes ahead and installs all the application code there (no surprise!) — but it also does something a bit clever that I didn’t expect!</p><p>On Unix-like systems, the /usr/bin/ family of directories ideally just contain a bunch of binaries. It&#39;s the first entry in your system&#39;s PATH, which defines where system commands are resolved from, and in what order. Python projects don&#39;t typically compile down to a single binary file though, and you really don’t want to clutter your bin directories up with a bunch of gunk because it makes it harder to maintain your system.</p><p>For applications that need other resources (like configuration or data files), on Linux systems it’s not uncommon to claim a namespace under /usr/share as the installation path (or as the Meson template refers to it: the pkgdatadir). For a python project shipped independently from Pypy, we might want to group all our application code into that directory namespace for easy filesystem management. So that’s what we do. My build script <em>should</em> move all my application code into a directory called myapp/ rooted under the /usr/share prefix. This ensures that package managers and sysadmins know exactly where all my app code and resources are. No surprises. No polluted directories. Tidy system!</p><p>So how do we easily run the code from the installation path? We certainly don’t want to be typing /usr/share/myapp/Application.py to run it — that’s practically medieval. Instead we put a shim for the application in the /usr/bin directory which correctly starts up your app.</p><p>So that sketchy templated code that I came across ends up looking like this:</p><pre>#!/usr/bin/env python3<br>import sys<br>pgkdatadir = &#39;/usr/share/myapp&#39;<br>sys.path.insert(1, pkgdatadir)<br>if __name__ == &#39;__main__&#39;:<br>    from myapp import Application<br>    sys.exit(Application.main())</pre><p>Essentially what it&#39;s done is just move the main function. To make sure we&#39;re importing the <em>correct</em> Application, we change the PYTHONPATH to first resolve the system python installation, <em>then immediately after</em> resolve our application code from the place its been installed to. If we invoke the install command from ninja, this shim gets copied to /usr/share/bin/myapp so that one can easily run myapp from the command line.</p><h3>The takeaway</h3><p>If you’re trying to package a random Python app for a Linux distro, here’s a strategy: find its main entry point, write a shim like this, and have your packaging script just copy the whole project to an application directory and install the shim to /usr/bin/$appname.</p><p>And of course, GNOME Builder will do this all for you if start a new GTK3 Python project 🏗</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b97b618d0352" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Week I Learned (June 2019 — w2)]]></title>
            <link>https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w2-2d6eee9dcff6?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d6eee9dcff6</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[gradle]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 23:04:24 GMT</pubDate>
            <atom:updated>2019-06-18T21:17:10.580Z</atom:updated>
            <content:encoded><![CDATA[<h3>This Week I Learned (June 2019 — w2)</h3><p>Alright! In a similar vein to <a href="https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w1-7687dab837ca">last week</a>: more Kotlin, more trees. See also: file formats, and build systems!</p><p>Here’s what I learned this week.</p><p><strong>2019/06/08: ⚔️ </strong>Defy physics! ⚔️</p><p>Recently I’ve been facing some serious competition from friends in <em>Super Smash Bros. Ultimate</em>, and I figured that today was the day that I sat down and learned how to play for real.</p><p>In the past, I’ve mostly played <em>Smash Bros.</em> by just — well — smashing buttons, and while I’m generally <em>okay</em> at landing hits, I fall off the stage a lot.</p><p><em>TIL</em>: If your fighter is headed on a path off screen, tap your left or right bumper while you’re in the air to defy physics and change your trajectory left or right. I’ve done this by accident before, but now I know! 😯</p><p><strong>2019/06/09: 🍁</strong> Japanese maples make for good bonsai trees 🍁</p><p>I’ve been more than slightly interested in bonsai trees since I was first exposed to them by a friend last week. There is something zen and beautiful about sculpting nature over a <em>really really long time</em> (like 12 years!) to have a tiny piece of the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*cqx3ZgIyGnhjuhaK.jpg" /><figcaption>Japanese maple bonsai, by Walter Paul. More <a href="https://www.bonsaiempire.com/tree-species/maple">here</a>.</figcaption></figure><p>As it turns out, Japanese maple trees make for good bonsai trees! I happen to have a red Japanese maple growing in my front yard which is dropping seeds like crazy right now, so we’ll see how growing one of these things goes!</p><p>Most people buy bonsais when they are already established, but I’m cheap and growing one feels kind of like a science project.</p><p><strong>2019/06/10: 🤢 </strong>There exists a toxic <strong><em>af</em></strong> social network — for employes of major tech companies — called Blind. 🤢</p><p>Here’s all I have to say: if the posts on this network are at all indicative of the state of affairs in our industry, our tech communities needs to do much better. The “techbro” image is old and crappy and it sucks.</p><p>I fell in love with technology at an early age because I felt it was a powerful tool to make positive differences in people’s lives, improve access to information, and abstract away complex processes to increase productivity at a global scale.</p><p>Noble mission lead by people complaining (or boasting!) about their $400k USD total compensation? 🤮</p><p><strong>2019/06/11:</strong> 🗜📁Zip files are not good at random access! 🗜📁</p><p>If you’re going to process a zip file in memory and (e.g.) care about categorizing the entries by file type, better to do it in one pass than several.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B9DnKo89txXkN7py.png" /><figcaption>ZIP file structure, courtesy of <a href="https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/ZIP-64_Internal_Layout.svg/2880px-ZIP-64_Internal_Layout.svg.png">Wikipedia</a>.</figcaption></figure><p>You don’t want to be iterating over all the entries to get the set of files you’re looking for randomly: ZIP doesn’t support this kind of access. Instead, it’s better to just process the whole ZIP (e.g. with a Visitor) picking out the bits you care about as you visit the File Entries.</p><blockquote><strong><em>TIL</em></strong><em>: Look at how a file is formatted before you start using a platform API to parse it. Performance might surprise you.</em></blockquote><p><strong>2019/06/12</strong>: 🤯 okiomakes Java I/O ok. 🤯</p><p>I used to be <strong>afraid</strong> of InputStreams because (compared to Files) they are so clunky to work with.</p><p>Using plainjava.io :</p><pre><strong>fun</strong> readStream(stream: InputStream) : ByteArray {<br>  <strong>val </strong>buffer = <em>ByteArray</em>(2048)<br>  <strong>val </strong>output = <em>ByteArrayOutputStream</em>()<br>  <strong>while</strong>(true) {<br>    <strong>val </strong>bytesRead = stream.read(buffer, 0, buf.size)<br>    <strong>if </strong>(bytesRead == -1) <strong>break<br>    </strong>output.write(buf, 0, bytesRead)<br>  }<br>  <strong>return</strong> output.toByteArray()<br>}</pre><p>Not really ok with me.</p><p>Using okio:</p><pre><strong>fun</strong> readStream(stream: InputStream) : ByteArray = <br>    Buffer().readFrom(stream).readByteArray()</pre><p><em>Major kudos</em> to the folks at <a href="https://github.com/square">Square</a> that made this nice API!</p><blockquote><strong><em>TIL</em></strong><em>: There is so much more than the standard library. You don’t have to be stuck with a language designer’s sometimes less than favourable decisions.</em></blockquote><p><strong>2019/06/13: 🐘 </strong>Gradle (kind of?) supports external projects. 🐘</p><p>In the Gradle 4+ (at least?) world, everything is about subprojects and modules. You’re probably familair with file structures like:</p><pre><strong>project/</strong><br>\_<strong>subproject1/</strong><br>| \_<strong>src/</strong><br>| \_build.gradle<br>\_<strong>subproject2/</strong><br>\_build.gradle</pre><p>where you typically coordinate the builds of the subprojects from the top-level project build.gradle file.</p><p>You can also do something like this:</p><pre><strong>task</strong> buildExternal(<strong>type</strong>: GradleBuild) {<br><em>  // This will pick up the build.gradle file for you.<br></em>  dir = &quot;path/to/external/project&quot;<br><em>  // List of task names to run in the project.<br></em>  tasks = [&quot;clean&quot;, &quot;jar&quot;]<br>}</pre><blockquote><em>⚠️ This is super lame because the task </em><strong><em>outputs</em></strong><em> are lost.</em></blockquote><p>For additional suckiness: if you use an IDE like IntelliJ Idea, the tasks = line is going to complain at you with a useless warning. Gradle doesn’t actually care, and it doesn’t trigger any deprecated features or warnings with Gradle 5.1. Maybe it goes away if you use the Kotlin Gradle DSL?</p><blockquote><strong><em>TIL</em></strong><em>: If you have parts of a project (e.g. test resources) that can be built from sources, you don’t have to commit them as proper projects. Only interesting stuff deserves that distinction.</em></blockquote><p><strong>2019/06/14: </strong>📄 A little copying doesn’t hurt. 📄</p><p>Software is supposed to be <em>DRY</em>. (That is, don’t repeat yourself!)</p><p>I’d argue that software tests are supposed to be similarly DRY.</p><p>Today I found myself needing to write a test that reproduced a failure for a feature that I had <strong><em>zero</em> </strong>familiarity with, but my instinct was to build the test from first principles.</p><p>I struggled for hours trying to figure out how to set it up correctly, staring at different examples of similar (yet very different) code across projects, trying to pick pieces from them to inform how to use this feature.</p><p><em>A test was staring me in the face that set up 95% of what I needed.</em></p><blockquote><strong><em>TIL</em></strong><em>: Look at tests close to the feature that you’re dealing with, and if you don’t </em>100%<em> understand them, copy the most useful looking set of tests and distill them to the essence you’re trying to deal with… Then make the test fail in the way you expect it to… Then write the fix.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d6eee9dcff6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Week I Learned (June 2019 — w1)]]></title>
            <link>https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w1-7687dab837ca?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7687dab837ca</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 01:39:54 GMT</pubDate>
            <atom:updated>2019-06-14T02:31:44.546Z</atom:updated>
            <content:encoded><![CDATA[<h3>This Week I Learned (June 2019 — w1)</h3><p>Following up from <a href="https://link.medium.com/neczkfITrX">this post</a>, I think that posting weekly is going to be a good frequency for this exercise. Months aren’t divided evenly into weeks though (sigh), and I don’t want to be posting June/July updates, so “weekly” will be <em>approximate</em>.</p><p>Without further ado:<br>This is mostly stuff that I learned at <a href="https://cash.app/">work</a>. Specifically stuff about Kotlin and the JVM. That said, I designate weekends as relaxation stations, so this blog post starts with absolutely nothing technical.</p><p><strong>2019/06/01: 🌳 </strong>Growing bonsai trees is an <em>artform. </em>🌳</p><p>Also. A <em>bonsai</em> is not a <em>kind</em> of tree as I had previously thought. You can miniaturize any tree and call it a bonsai!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Uxdw5sA1gfP3Fe_P.jpg" /><figcaption>Juniper bonsai tree, by Bjorn Bjorholm. See more <a href="https://www.bonsaiempire.com/inspiration/gallery">here</a>.</figcaption></figure><p>The white parts of the tree above were deliberated killed for artistic impact, while still keeping the tree healthy and alive. Miniature arborists, you have inspired me with art I have never known before!</p><p><strong>2019/06/02: 🎲 </strong>Tabletop RPGs &gt; online RPGs. 🎲</p><p>I played a tabletop RPG for the first time in a long time, and had more fun than I have had playing videogames in like forever.</p><blockquote><em>⚠️ Complexity on a tabletop does not compare to complexity on a computer.</em></blockquote><p>The mental overhead of managing choices and cards and physical board pieces seems to be way higher. Why I wonder! Maybe I need to spend less time in front of screens and sharpen my real-life processing abilities 🤷‍♂</p><p><strong>2019/06/03: ⏰ </strong>You cannot lateinit primitives in Kotlin. ⏰</p><pre><strong>class</strong> Foo {<br>  <em>lateinit</em> <strong>var</strong> value : Int // Not allowed!<br>}</pre><p>I found this to be really annoying and weird, especially since Kotlin appears to be conflating Java primitives with their object-boxed sisters. Kotlin’s Int is a “primitive” but it maps to Java’s Integer object!</p><p>This forces me to make a choice between these ugly options:</p><pre>var value: Int? = null // Make it nullable?<br>var value: Int = 0     // Choose a sentinal value?</pre><p><strong>2019/06/04:</strong> ☕️ Nested Annotations are a thing in Java. ☕️</p><pre>@<em>NestingAnnotation</em>({<br>  @<em>Nested</em>(foo=”bar”),<br>  @<em>Nested</em>(foo=”baz”)<br>})</pre><p><strong>2019/06/05:</strong> ❌ Kotlin does not have checked exceptions. ❌</p><p>After a month of working in the language, I’m surprised I didn’t learn this sooner.</p><p>This can cause some weirdness if you find yourself calling Kotlin code from Java because you won’t be able to catch what you expect.</p><p>This is a workaround as suggested by Kotlin docs:</p><pre>@<em>Throws</em>(IOException::<strong>class</strong>)<br><strong>fun</strong> write() {<br>  …<br>  <strong>if</strong> (error) <strong>throw</strong> IOException(…)<br>  …<br>}</pre><p>This makes me unhappy because of the redundancy!<br>But I also hate checked exceptions!</p><p><strong>2019/06/06: 🧘‍♂️ </strong>I am happier when I meditate regularly. ️🧘‍♂️</p><p>I’d fallen out of the habit over my last school term, probably because I was stressed over midterms and exams. Was I really too stressed to do a calming activity? That’s totally backwards!! I’m getting back into the habit with <a href="https://headspace.com/">Headspace</a>. I’d also totally recommend mindfulness to my friends.</p><p>(This isn’t an endorsement of Headspace in particular!! I just find guided/recorded sessions to be most helpful, since meditating in silence is really really really really really really difficult.)</p><p><strong>2019/06/07: 👨‍💻 </strong>Java inner classes are… weird. 👨‍💻</p><p>Java originally did not support inner classes, so they were sort of hacked into the compiler so as not to need to make any changes to the JVM.</p><p>E.g. If you compile something uninteresting like this:</p><pre><strong>public</strong> <strong>class</strong> Shell { <strong>public</strong> <strong>class</strong> Core { } }</pre><p>You get Shell.class and Shell$Core.class which, when decompiled, look like this:</p><pre><em>// Shell.class<br></em><strong>public</strong> <strong>class</strong> Shell { <strong>public class</strong> Core { } }</pre><pre><em>// Shell$Core.class<br></em><strong>public class</strong> Shell$Core {<br><em>  // This &lt;init&gt; is marked synthetic in the bytecode instructions.<br></em>  <strong>public</strong> Shell$Core(Shell var1) {<br>    <strong>this</strong>.this$0 = var1<br>  }<br>}</pre><p>The compiler generates a constructor for the inner class that takes an instance of the enclosing class. Neat!</p><p>Stay tuned for the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7687dab837ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: A Series of Random Learnings]]></title>
            <link>https://medium.com/@keeferrourke/til-a-series-of-random-learnings-9e610821c784?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e610821c784</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[habits]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 02:15:48 GMT</pubDate>
            <atom:updated>2019-06-14T23:15:48.704Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most important things to me is that, as I go through life — no matter what I am doing — I am constantly learning. I not-quite-so-recently came to the independent realization that I weigh my self-worth very heavily against my ability to contribute in teams, and that the amount of knowledge that I am able to draw from has a direct correspondance to this.</p><p>I know that for each day I pick up a new bit of wisdom, or I learn something about how a tiny piece of the world works. In this pursuit of knowledge however, I found that at times it is easy to get lost, and even dismissive when the noise to information ratio can be so high.</p><p>At the beginning of this month, I decided to start recording one fact that I learn each day. This, I imagine, will give me a concise evidence pile of stuff I can look at when either:</p><ol><li>I am feeling stuck, like I’m not progressing, as a reminder that I most definitely am making progress;</li><li>My memory ineviditably fails to recall some thing that is probably important, but I might be able to search for if I know where to look for my own words.</li></ol><p>I’ll post a follow-up to this soon, and probably on a m̶o̶n̶t̶h̶l̶y̶ weekly basis. I hope that this exercise proves to be beneficial and that I can keep it up!</p><p><strong>Update: </strong>Going for an approximately weekly update frequently for this thing!</p><p>Here are the posts so far:</p><ul><li><a href="https://link.medium.com/OH8VBtH7uX">June 2019 (week 1)</a></li><li><a href="https://medium.com/@keeferrourke/this-week-i-learned-june-2019-w2-2d6eee9dcff6">June 2019 (week 2)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e610821c784" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Warnings are not Errors]]></title>
            <link>https://medium.com/@keeferrourke/warnings-are-not-errors-34d5d1b0a95a?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/34d5d1b0a95a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[computers]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Fri, 31 May 2019 04:26:48 GMT</pubDate>
            <atom:updated>2019-06-14T00:25:21.882Z</atom:updated>
            <content:encoded><![CDATA[<p>It is not uncommon to see software projects which enforce compilation with <strong><em>-Werror</em></strong> (or equivalent compiler flags). The intention behind this practise is to make warnings (which are obviously undesirable) explode in a programmer’s face so that they are dealt with as soon as possible.</p><p>The justification here being that, in a particular piece of software, the tooling will make warnings impossible to ignore, and the software will be written <em>better</em> by product of <em>force</em>. This is a powerful idea. A machine can exercise its power to make sure there is no cruft in the code that powers it. Even something as uninteresting as an unused variable will prevent your code from compiling. <em>Warnings cry for attention</em>, and by promoting them to errors, you give them centre-stage.</p><p>This is fantastic for code that is going to be deployed to production (however that is defined). By forcibly minimizing declarations, you reduce binary size. By forcibly avoiding undefined or dangerous behaviour, you ensure deterministic behaviour. By forcing opinionated usage of particular language features, the compiler will make smarter optimizations.</p><p>This is less fantastic for code that is in development. Treating warnings as errors means that if, halfway through feature development you decide you want to compile your code or run some tests to make sure you haven’t broken anything — well my friend, <em>you are out of luck</em>. Strip out those half-baked features and unused variables, because incremental feature development doesn’t really exist for you.</p><p>Lets say you have a project that uses a class called <strong><em>FancyAPI</em></strong> extensively, and the maintainer of that software decides to deprecate it.</p><blockquote>@Deprecated(“FancyAPI2 does this better!”)<br>class FancyAPI { … }</blockquote><p>Marking a class as deprecated is essential for clients to eventually migrate to better code; developers of client code will note the warnings, and refactor accordingly. Yay!</p><p>If the changes are too big to make immediately though, treating these warnings as errors completely blocks development until it can be fixed. If you’re working in a team, they get blocked too! This is not good!</p><p>No one wants to be blocked, so the quick-fix is usually to <strong>suppress</strong> <strong>the deprecation warning</strong> and keep chugging along happily.</p><blockquote>@Suppress(“DEPRECATION”)<br>class FancyAPIConsumerWidgetFactoryBuilder { … }</blockquote><p>But folks, this is not good! Now you’re working with deprecated code, the very thing you are trying to avoid, <em>and</em> you’re going to forget about it! If you treat warnings as errors, then the goal of software development strays from writing good code to focusing on the erasure of warnings. Yikes.</p><p>Please leave warnings as warnings, your compiler will helpfully nag you about this stuff but it won’t get in your way. You’ll write better software for it too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34d5d1b0a95a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meshing with Maps: Empowering Indigenous Communities]]></title>
            <link>https://medium.com/rightmesh/meshing-with-maps-empowering-indigenous-communities-563a9a2761f3?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/563a9a2761f3</guid>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[mesh-networks]]></category>
            <category><![CDATA[indigenous]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Fri, 31 Aug 2018 21:21:50 GMT</pubDate>
            <atom:updated>2018-12-18T21:26:55.526Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAXryeKFFi6061APrv_8HA.jpeg" /></figure><p>Since time immemorial, people have gathered in common spaces to discuss land treaties, trade agreements, share stories, discuss problems, ideate solutions, and transfer knowledge. Congresses such as these are home to the most uplifting stories, heart-shattering issues, and innovative ideas. This past week, in Montreal on the traditional territories of the <em>Abenaki</em>, <em>Haudenosauneega</em>, <em>Huron-Wendat</em>, <em>Kanien’kehá:ka</em> (Mohawk) First Nations, hundreds gathered to discuss issues like traditional knowledge preservation, data sovereignty, climate change, geo-spatial tooling, networking solutions, and community empowerment through technology at the <a href="https://indigenousmaps.com/">2018 Indigenous Mapping Workshop</a>.</p><p>This article is an attempt to summarize my experience (as someone who admittedly has very little experience with GIS) at the 2018IMW, to draw attention to some issues of which — until approximately a week ago — I was completely unaware, and lastly to provide an overview of a <a href="http://enuk.eco/">multi-year collaborative project</a> powered by <a href="https://medium.com/u/52285e911e04">Right Mesh</a> to empower and connect northern Indigenous communities.</p><h4>The Indigenous Mapping Workshop</h4><p>Self-described as <em>the largest international geospatial conference for Indigenous governing bodies and communities on Indigenous-led geospatial research</em>, the 2018 Indigenous Mapping Workshop was home to more than 300 participants, more than 40 speakers, and more than 35 hours of presentations and concurrent workshop sessions. Perspectives from across the globe were represented, each different but with similar thematic goals and challenges.</p><p><a href="http://danielgillis.ca/">Dr. Daniel Gillis</a> (Associate Professor at the <a href="http://uoguelph.ca/computing">University of Guelph School of Computer Science</a> and Scientific Adviser for the <a href="http://rightmesh.io/">RightMesh Project</a>), <a href="http://twitter.com/durishn">Nic Durish</a> (Research Assistant on the <a href="http://enuk.eco/">eNuk project</a>), and I were invited to facilitate a two (2) day workshop and present an opening <a href="https://krourke.org/projects/pres/2018imw">keynote</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XbX0MF4IvQoxeDcYiry3oA.jpeg" /><figcaption>How can blockchain technologies empower indigenous nations?</figcaption></figure><p>When you think of <em>maps</em>, you probably don’t also think of <em>mesh networks</em>, <em>decentralization</em>, <em>incentivisation</em> or <strong>blockchain</strong> of all things. Why would you? What does cartography have to do with mesh networks or cryptocurrency?</p><p>This was the sort of topic we were tasked with addressing — and despite organizational issues, uninformative sessions descriptions, and being shoved in literally the <em>least</em> <em>discover-able</em> room of the conference centre — it got people pretty darn excited.</p><p><em>(If you haven’t already, it might be helpful to familiarize yourself with the </em><a href="https://medium.com/u/52285e911e04"><em>Right Mesh</em></a><em> project to understand why blockchain is involved here, but it’s not necessary for understanding the rest of this article.)</em></p><h4>Running the Workshop</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aT0lK3UjpM7CLuFW84VjAw.jpeg" /><figcaption>Me, talking about the problems with conventional internet infrastructure in remote areas.</figcaption></figure><p>I’d never run a workshop before, so I didn’t really know what to expect once people started to show up, but the plan was as follows:</p><ul><li>spell out connectivity issues in Canada;</li><li>explain why the infrastructure demands of conventional internet are leaving remote communities unconnected;</li><li>introduce <a href="http://rightmesh.io/">RightMesh</a>, an infrastructureless wireless mobile mesh network;</li><li>get people thinking about problems and ideating solutions in their own communities that could be alleviated (at least in part) by local meshes.</li></ul><p>This served two main purposes:</p><ol><li>to demystify communications technology so that connectivity issues are <em>understood </em>by the people who are most affected by them;</li><li>to inspire and empower individuals with realistic, purpose-built technological solutions.</li></ol><blockquote>So what came out of this?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcI1mfdj0g2mLu7hgNt0oQ.jpeg" /><figcaption>The ideation portion of the workshop. Session attendees identified problems, collaborated on solutions, and started drafting specifications on chart paper.</figcaption></figure><p>A few major issues stuck with me after collaborating with some of the workshop participants — especially things that I take for granted everyday, or would otherwise never think of. Common themes that were explored included health, safety, and response systems that participants identified as critical for the well-being of the communities on their reserve land, and elsewhere. Some of these points were pretty shocking to me, especially considering that Canada is a developed nation and global leader on human rights.</p><ol><li><strong>First Nations in Canada do not have reliable sources of clean water</strong></li><li><strong>Poaching and wasteful hunting practices are rampant in the north</strong></li><li><strong>Communities need alert systems where there is no cellular coverage</strong></li></ol><p>The last point comes up as a generalized need extrapolated from the previous points. To help contextualize the situation, I’ll elaborate on the first point.</p><p>One workshop participant expressed that in their Northern Ontario community of Matachewan, occasionally the water treatment facility in the area just stops working. In the event of a power-outage, if the backup generator isn’t maintained properly or doesn’t have enough gas (and siphoning is problematic), the facility shuts down. When this happens, as it has several times in the past decade, a report is generated at the facility and <strong>hand-delivered </strong>to each home in the area, instructing families to boil water before drinking it. This process is inefficient at best, and I could see how the health of children and elderly could be at risk — not only because the water quality is not reliable, but because the advisory system is archaic. It was also mentioned that when the advisories are over, it takes an equal or longer time to receive the green light that says, “Hey, water is safe to drink now.” It was expressed how this was frustrating, because people would be effectively boiling water for no reason — wasting time, and making people feel awful for the wasted efforts.</p><p>A follow-up call informed me that in the area there <em>is</em> clean, high-ground, natural spring water — but access to it was completely cut-off when this facility was installed approximately 13 years ago, forcing reliance on this <em>unreliable</em> infrastructure.</p><p>As someone who is privileged enough to live in a densely populated city, the situation that was described to me was alarming. A quick web search for <em>‘clean water in Canada’</em> revealed the problems experienced by the Metachewan First Nation are far from unique.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*iMkQTrnmSAMh28UOyxf_JA.png" /><figcaption>Problem 1: Reliable sources of clean water aren’t consistently available across Canada</figcaption></figure><p>The query brings up <a href="https://www.canada.ca/en/health-canada/services/environmental-workplace-health/water-quality/drinking-water.html">a generic sounding government plan</a> for clean water across the nation, and a couple articles about poor water quality in Ontario First Nations, including a particularly well written <a href="https://www.theglobeandmail.com/opinion/why-is-canada-denying-its-indigenous-peoples-clean-water/article31599791/">opinion piece from the Globe &amp; Mail</a> about the state of water quality in the <em>Grassy Narrows</em> First Nation of Western Ontario.</p><p>The Globe &amp; Mail also reports that, as of 2016, there were 158 similar drinking water advisories in 114 First Nation communities across Canada.</p><blockquote>The federal government funds water budgets at a deficit, meaning that communities often do not have enough money to keep systems in good working order.</blockquote><p>Dig around on the Indigenous and Northern Affairs Government of Canada website, and you’ll come across a page describing the the <em>Safe Drinking Water for First Nations Act </em>which identifies the problem, and outlines some legislation that mandates solutions.</p><blockquote>Ensuring First Nation communities have access to safe and effective water and wastewater systems on First Nation lands is a priority for the Government of Canada.</blockquote><p>But why, if this is indeed a priority, was it expressed at our workshop that communities are not being effectively alerted about boil-water advisories? Why is this a problem in so many First Nations? How is it that there isn’t infrastructure in place for effective alerts — even if there really isn’t a budget for effective water treatment?</p><p>In an interview with MacLeans, toxicologist Lalita Bharadwaj of the University of Saskatchewan explains:</p><blockquote>One of the big issues, in my opinion, is that we don’t recognize First Nations as unique groups of individuals; the issues around water are not the same for each community. As a result, money being spent, for example, to increase training or education about how to operate a water system may work for some communities but not others. Another example [is] geographic location and remoteness: Putting money toward a treatment plant may work for one community, but not another, where it may break all the time because of permafrost.</blockquote><p>So if water treatment facilities are breaking because of power outages and permafrost, and natural springs are no longer accessible, <em>and</em> the processes used to alert communities of these problems are ineffective, what can you do?</p><p>A naive solution would be to attach something like an SMS-blast to the report generation process — but what if there’s insufficient cellular coverage? Matachewan coverage is “spotty at best,” and many northern communities are completely unserviced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8O8N7sH0nxyt5MkbIJnbiw.png" /><figcaption>Canada’s land mass is huge, and much of the country simply doesn’t have coverage or cellular connectivity.</figcaption></figure><p>Poor internet infrastructure? Bad cellular coverage? This is exactly where <a href="http://rightmesh.io/">RightMesh</a> would be a good drop-in replacement for the infrastructure needed for a reporting system. The solution is simple: sensors in the water treatment facility pick up that the quality has dropped below standard, a message is forwarded by something like an low-power IoT device or Raspberry Pi running RightMesh (backed by a battery store in the event of power failure), and a broadcast alert is sent to devices in the local meshes of the communities the facility is responsible for. RightMesh would enable such a system to be automated and greatly improve the efficiency and efficacy of alerting communities when boil-water advisories start and end. It certainly doesn’t solve the water crisis, but it would at least slightly improve quality of life through effective reporting.</p><p>Thinking beyond this particular problem, a set up like this could be abstracted to work under a variety of situations. Add in multi-directional reporting, and suddenly there’s a system which can be used to broadcast geo-location aware advisories from peers in the network. Referring back to point 2, you could enable Inuit communities to report cases of poaching — a prominent problem where rough cuts of Caribou are illegally taken and the carcasses are left to rot.</p><blockquote>You could build heat-maps of safety issues and use them to inform policy, ensuring that communities aren’t left behind by legislature.</blockquote><h4>Mesh networking in the North</h4><p>Over the past year, Dan, Nic, and I (along with a long list of community partners, multi-disciplinary academics, and developers from RightMesh — credits at the bottom of this article!) have been working on updating a health and environmental monitoring application to make use of Wireless Mobile Mesh Networks to mitigate connectivity issues in particularly vulnerable areas of the Circumpolar North.</p><p>The <a href="http://enuk.eco/">eNuk Projec</a>t was started to address similar issues that were explored during our workshop — but rather than water quality or poaching alerts, it has been purpose-built to inform users of physical safety hazards related to climate change, and the corresponding impact on community mental and physical health.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qrHeQJJpDFmlyRJ8BeaZw.png" /><figcaption>Rioglet, Nunatsiavut. The southernmost Inuit community in the world. Map courtesy of OpenStreetMap.</figcaption></figure><p>eNuk is designed by, with, and for the community of Rigolet, Nunatsiavut, Labrador. Rigolet is geographically located on the edge of arctic, in perhaps one of the most sensitive areas to climate change in the world. Community members rely on the quality and safety of ice for transport and hunting, among other things, and the impact of climate change leaves them in a particularly vulnerable situation.</p><blockquote>“It’s making sure that we have, that we still have things in the future that we have now and we can still use them the same way. Understanding the fact that things are gonna change, ice is gonna change, weather’s gonna warm up, but make sure that what we can protect now we should continue to protect.”</blockquote><p>The University of Guelph, Memorial University Labrador Institute, and RightMesh have partnered with Rigolet not only to create a monitoring system that provides insight into the changes happening in the area, but also to provide connectivity where there is none.</p><p>So, with a beta application launched and development and research still very much underway, a portion of our team (Dan, Nic, and I) were invited to share our experience, our motivation, and our application at the 2018IMW the morning of Wednesday Aug 22.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WESrmNmCFpIA2pM7X81Nww.jpeg" /><figcaption>Dr. Daniel Gillis, Nic Durish, and myself speaking at the 2018IMW about eNuk and RightMesh.</figcaption></figure><p>I’d like to say that it went over pretty well, since it was requested of us to run our workshop <em>again</em> after the <a href="https://krourke.org/projects/pres/2018imw">keynote</a> (though this was, unfortunately, not possible).</p><p>It was an incredible experience to share our work with the conference, but most important to me was that over the course of these 4 days, our approaches were consistently questioned, praised, criticised, and validated. Left, right, and centre applications for our mesh network seemed to appear as discussions were had and facilitated with people from polarizing backgrounds, vastly different experiences, and wildly variant political stances. Connection, education, inspiration, and empowerment are universal concepts, and I am so glad to be part of a revolution as we <a href="https://twitter.com/search?q=%23meshtheworld">#meshtheworld</a>.</p><h4>Truly Awesome People: Credits, Collaborators, Community Partners &amp; Leaders</h4><p>The discussions that I took part in at the Indigenous Mapping Workshop absolutely would not have been possible without standing on the shoulders of giants whose work came before me. The eNuk Project has been the result of collaboration across institutions, organizations, and communities, and was well established before I become involved late last year. The RightMesh team is highly talented, has grand vision, and their work is enabling a better future for people across the globe. I feel incredibly privileged to be involved in both teams, and would like to thank everyone that has been involved.</p><p>This list might be incomplete — if I’ve missed you, please let me know.</p><p><strong>eNuk research leads, assistants, developers, and community leaders:</strong></p><p>Dr. <a href="https://medium.com/u/ab6985c50209">Dan Gillis</a>, Dr. Ashlee Cunsolo, Dr. Sherilee Harper, Dr. <a href="https://medium.com/u/8e18c2ce3d90">Jason Ernst</a>, Inez Shiwak, Charlie Flowers, Oliver Cook, Nic Durish, Fraser Seymour, <a href="https://medium.com/u/cff5094f626f">Keefer Rourke</a>, Alexandra Sawatzky, Jacqueline Middleton, David Borish, Amy Kipp, &amp; Michele Wood</p><p><strong>RightMesh developers (directly working with the eNuk project):</strong></p><p>Dr. <a href="https://medium.com/u/8e18c2ce3d90">Jason Ernst</a>, Fraser Seymour, <a href="https://medium.com/u/cff5094f626f">Keefer Rourke</a>, <a href="https://medium.com/u/eb5f144064bb">Benjamin Hughes</a>, &amp; Sachin Raturi</p><p><strong>Community and Organizational Partners:</strong></p><ul><li>The Rigolet Inuit Community Government</li><li>The Government of Nunatsiavut</li><li><a href="https://medium.com/u/52285e911e04">Right Mesh</a> AG</li><li>Left Inc.</li><li>Health Canada</li><li>Polar Knowledge Canada</li><li>Canadian Institute of Health Research</li><li>The University of Guelph</li><li>Memorial University Labrador Institute</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Tb8_s3uAVLTISQQSqm2A-g.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=563a9a2761f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/rightmesh/meshing-with-maps-empowering-indigenous-communities-563a9a2761f3">Meshing with Maps: Empowering Indigenous Communities</a> was originally published in <a href="https://medium.com/rightmesh">RightMesh</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLH Ethical Tech Initiative Scholarship]]></title>
            <link>https://medium.com/@keeferrourke/mlh-ethical-tech-initiative-scholarship-9b7c749ea8de?source=rss-cff5094f626f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b7c749ea8de</guid>
            <category><![CDATA[scholarship]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[awards]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Keefer Rourke]]></dc:creator>
            <pubDate>Sat, 07 Jul 2018 22:47:14 GMT</pubDate>
            <atom:updated>2018-07-10T15:39:59.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*2XsMEOWvI7cqzEejcwBaYA.png" /><figcaption>Ethical Tech: An MLH Initiative</figcaption></figure><p><em>This blog post was </em><a href="https://krourke.org/blog/180707-mlh-ethical-tech"><em>originally published on my website on 07 July 2018.</em></a><em> It has been edited slightly to better suit the format provided by Medium.</em></p><p><em>You can read the official announcements from MLH and Omidyar Network </em><a href="https://stories.mlh.io/announcing-the-winner-of-the-mlh-ethical-tech-initiative-9535de3e51dd"><em>here</em></a><em> and </em><a href="https://medium.com/positive-returns/hacking-a-more-ethical-future-7ee31e658490"><em>here</em></a><em>.</em></p><h3>The Backstory</h3><p>Way back in September 2017, when I was beginning my second year at the University of Guelph, I fell victim to my greatest weakness and proudest strength: ambition and over-commitment. At the end of that summer, I figured that, <em>Hey, September is always a joke, I’ll have soooo much free time. I don’t want to be bored. I’m gonna do everything.</em> I didn’t quite anticipate that the school year would actually begin so quickly and with such vigour, so I applied to a ton of hackathons back-to-back, wrote up proposals to speak at conferences, etc. I got word that I’d be <a href="https://krourke.org/projects/pres/starcon18">speaking at Starcon</a> at the University of Waterloo. I got accepted to two premier hackathons in North America: <a href="https://2017.hackthenorth.com/">Hack the North 2017</a>, and <a href="https://mhacks.org/">MHacks X</a>. A bunch of other things happened, and I also got swamped with school work, so I had to prioritize these commitments. They would be the best experiences that the semester had to offer.</p><p>So after starting school, and before I could really get settled into any sort of schedule, I was putting together teams for these two hackathons. <em>Hack the North</em> was a rush. Located in my hometown of Waterloo, Ontario, it attracted more than a thousand hackers from across the globe. I met some really awesome people and built a cool piece of software after having to pivot a bunch of times. <em>MHacks X</em> was a totally different experience.</p><p>I had convinced my friend <a href="https://aceparent.me/">Ace</a> to apply to MHacks with me, and when we received word that we’d been accepted we were really excited. We’d done local hackathons before, but never travelled for one. MHacks was in Ann Arbor, Michigan — we were excited to hop on a bus full of hackers to get there.</p><p>The bus didn’t happen. While I managed to get a hold of one of the free bus tickets, the entire set of them was taken within 12 hours and Ace missed his opportunity. We suspected shenanigans with the ticketing system, and were worried that Ace wouldn’t be able to come. I didn’t want to travel on my own either… so Ace borrowed his parents’ car and we ended up driving 5 hours south on our own.</p><p>At MHacks we had no idea what to build. The sponsor prizes were not to our taste, and we were a bit lacking on inspiration. The drive was long, we got lost trying to find parking, and were late to registration. We grabbed some food and got acquainted with Salem — he’d come on his own from Chicago and was looking for a team. We decided to work with him, and had someone to bounce some ideas off of.</p><p>Together, we ended up building <a href="https://krourke.org/projects/code/stegamsg"><em>stegamsg</em></a>, a unique proof-of-concept messaging platform that uses images as delivery containers for text.</p><blockquote>There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.</blockquote><blockquote>— Phil Karlton</blockquote><p>“Stegamsg” is a shitty portmanteau of “steganography” and “messaging”. We created an anonymous group messaging platform that allowed one to trade messages with peers in a channel, while only sending image data (and HTTP headers) over a network. We thought it was cool, and so did a representative from the NSA who was at the judging area. He gave each of a card, probably not knowing that Ace and I were Canadian (and thus would never be able to work for them).</p><h3>Keefer Rourke 🌻🏳️‍🌈 on Twitter</h3><p>tfw @NSAGov gives you a card because they liked your hack</p><p>Our hack didn’t end up winning anything, and we went home exhausted. I forked our project and filed it away at the back of my mind as something to revisit in the future. I thought it was a cool thing, even if it didn’t meet the criteria of any of the judges at the event. I had school work to do. There were more serious programming projects to tend to, and I had research to do at the University of Guelph… and a presentation about ethics in tech to write for <a href="https://starcon.io/">Starcon</a>.</p><h3>Some amount of time later…</h3><p>These details are a bit fuzzy for me since Fall 2017 was a bit of a blur for me, but post-hackathon I received a survey from MLH about ethical tech. With my proposal for Starcon on my mind, and the hackathon still fresh in my head, I filled it out once my immediate school commitments were taken care of. The survey asked about MHacks, and requested an abstract and a few short responses to questions like:</p><blockquote><em>Is your project or technology usable by a wide range of users? Who are they? What are potential consequences? Steps taken to mitigate unintended consequences from your project? Would those consequences hurt anyone?</em></blockquote><p>Late one night I drafted some responses, wrote up an abstract, gave them a couple quick read-overs, and pressed that big ol’ “Submit” button. I subsequently forgot that I had even done so, save for the draft document that I later found on my computer when I was cleaning up my file-system.</p><p>The rest of the school year was just stupidly busy — I moved to Guelph from Waterloo when my carpool stopped being a thing… and I had to deal with horrible housemates… and I had to face an “angel of death” course… and I had research and development to do for my work on the <a href="https://enuk.eco/">eNuk Project</a>… and I had to apply for jobs and figure out where I was going to spending my upcoming 8-month co-op term… and, and, and, and, and, and. Suffice it to say I was stressed, and had little to no downtime. I completely forgot that I had applied to the <em>Major League Hacking Ethical Tech Initiative</em>.</p><h3>Surprise! You’re a finalist!</h3><p>Fast forward to mid-June this year. A couple months earlier I’d just finished my academic year on a really strong note, and moved out west to start a new job at <a href="https://left.io/">Left Inc.</a> working on the RightMesh project. On one fateful Tuesday afternoon I received an email from <a href="https://medium.com/u/ec39b47406b3">Chris Wilkinson</a> of MLH with the following subject line:</p><blockquote>Hey, Keefer! You’re a finalist for the Ethical Hacking contest from MLH!</blockquote><p>I found myself thinking, <em>Holy f***! Is this for real!?</em> I was ecstatic. Ethics and hacking, the bridges between technology and society — these were things that made up the biggest part of my identity over the past year. I was one of 20 people selected worldwide for a chance at $10 000 USD. The challenge? More writing prompts. The <a href="https://krourke.org/files/mlh-ethical-tech-responses.pdf">resulting series of short essays</a> took over my life for the next two weeks, and when they were finally ready, I sent them off and crossed my fingers with high hopes.</p><h3>The importance of ethics in technology</h3><p>When I say that ethical technology makes up a large part of my ethos, I don’t kid around. Over the past few years, I’ve grown tired of seeing scandals in the news about Uber, or Facebook, or Google, or Microsoft, or Equifax, or <em>whoever</em> taking advantage of people with their tech or being complacent with the information that is trusted to them. I spend a lot of time thinking of, promoting, and building equitable technology solutions and replacements for problems and processes in the world. In high school I started <a href="https://tokumei.co/">Tokumei</a> as an alternative to “traditional” social media, at the University of Guelph I’ve been heavily involved in the <a href="https://enuk.eco/">eNuk Project</a> aiming to improve quality of life in Northern Canada, and recently I’ve taken a junior position with <a href="https://left.io/">Left Inc.</a> in an effort to improve and change the way the world connects via the <a href="https://medium.com/u/52285e911e04">Right Mesh</a> <a href="https://rightmesh.io/">Platform</a>. Technology (and internet connected software in particular) is an extremely powerful force, which may be used for social good or detriment. The initiative that <a href="https://medium.com/u/173a584048a">Major League Hacking</a> and <a href="https://medium.com/u/67728d2f5658">Omidyar Network</a> put together to challenge and assess the thinking of the next generation of hackers is extremely meaningful to me, and I couldn’t be happier that it exists and ethics are being considered seriously at the forefront of innovation.</p><p>I am also <strong>incredibly</strong> happy to announce that — to top off all the events of the past year — my submission was selected as the winning response for the initiative. While I don’t have all the details yet, the $10K prize will be used to fund travel to any tech conference in the world for myself and my team from MHacks.</p><h3>What to do with the prize?</h3><p>I’m eyeing the 35C3 (35th annual Chaos Communications Congress) in Leipzig, Germany as a potential (and f***ing awesome) place to spend the scholarship. <em>More details to follow</em>, but hopefully Ace, Salem, and I can reunite in Europe this winter. My boyfriend of 3 years, <a href="https://kosciuch.ca/">Tomas</a>, is already getting excited about the excuse for a trip to Germany with me ;)</p><p><a href="https://c3.elektrollart.org/">35c3 Countdown</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b7c749ea8de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>