<?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[andrewkouri - Medium]]></title>
        <description><![CDATA[Andrew Kouri - Medium]]></description>
        <link>https://medium.com/andrewkouri?source=rss----2802042860ce---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>andrewkouri - Medium</title>
            <link>https://medium.com/andrewkouri?source=rss----2802042860ce---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:01:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/andrewkouri" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Manage Your Context Switches to be More Productive]]></title>
            <link>https://medium.com/andrewkouri/manage-your-context-switches-to-be-more-productive-7cbbe8d6ae69?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/7cbbe8d6ae69</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Wed, 17 May 2017 17:21:33 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:29.218Z</atom:updated>
            <content:encoded><![CDATA[<p>You’re in the middle of patching a bug, and a colleague taps you on the shoulder asking for your opinion on something. We’ve all been in this position. Whether or not you’re a programmer, this situation happens all the time — a phone call interrupts our planning session, a push notification distracts you from finishing your report — and it’s highly destructive to your throughput as a worker.</p><p>I decided to share some techniques I’ve started to employ that have really worked for me. I’ll start with ways to avoid distractions in the first place, and then go over what to do in the event that a context switch is inevitable.</p><p><strong>1. Turn off all non-essential push notifications</strong><br>What is an essential push notification? It depends on your engagement level with the rest of the world, but for me it’s limited to just SMS messages. Instagram, GMail, Snapchat, FB messenger (which I don’t use)… shut ’em all off.</p><p><strong>2. Batch tasks (like email) into pre-defined chunks</strong></p><p>For mindless tasks like email, I typically tend to reserve a part of my least productive hour: 4–5pm. I only check and respond to email during this allotment. Only coding gets my precious morning hours, when I’m most alert. Make sure your pre-defined time allotment has a end time. Set a countdown timer. You can even use Siri:</p><p>“Hey Siri, set a countdown timer for 30 minutes.”<br> “Okay, 30 minutes and counting!”</p><p>Great — now you have a defined end to a task that used to interweave itself into your whole day.</p><p><strong>2. Work in DND (Do not Disturb) for at least 4 hours each day</strong></p><p>Both your Mac and iPhone can be configured to run in DND mode. It doesn’t necessarily have to be 4 hours, but try experimenting for what works best for you. For me, I set a goal of a number of tickets I want to accomplish before allowing myself to be “disturbed.”</p><p><strong>3. Be choosy about the music you listen to while working</strong><br>Everybody is different, but we share about 99.9% of the same DNA. And study after study has shown that music with lyrics is distracting for human beings who are doing cognitively intensive tasks such as coding. For me, headphones are often necessary to escape the sounds of workplace like the clacking of keyboards and sniffling, but instead of listening to music, often I choose the ambient <a href="http://coffitivity.com/">sound of a coffee shop</a>. To the Spotify/Pandora streamers out there: Pay for the darn subscription plan so you aren’t subject to distracting ads.</p><p><strong>4. Buy a pen &amp; paper notepad<br></strong>They can be purchased at any office store for $0.99. Use this as your scratch buffer for things that need to be done throughout the day. Never do something as soon as it comes up. Here’s an example: let’s say I think of a new feature that needs to be implemented…. rather than signing into Jira and filing the tickets right away, I just put a 5-word reminder on my scratchpad which I can then reference when I go to do Jira tickets in batch at the end of the day. Same thing with email — don’t send that email right away… put a note on the scratchpad and wait until your dedicated email batch time allotment to write the full draft.</p><p><strong>5. Don’t get dragged into non-problems<br></strong>Engineers in particular love to solve everybody else’s problems but their own. I’m no exception. I hear about some intern using a c4.8xlarge to run a webserver, and I immediately stop what I’m doing to optimize our EC2 allocations. That tangent then turns into a sweeping overhaul of the company’s AWS spot-pricing and IAM strategy.</p><p>In part 2/2 I’ll go over how to save your state in the event that you have to switch contexts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cbbe8d6ae69" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/manage-your-context-switches-to-be-more-productive-7cbbe8d6ae69">Manage Your Context Switches to be More Productive</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift 3 Extension to UIImage to quickly retrieve image from a URL]]></title>
            <link>https://medium.com/andrewkouri/swift-3-extension-to-uiimage-to-quickly-retrieve-image-from-a-url-280a041199e1?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/280a041199e1</guid>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Fri, 03 Feb 2017 18:55:34 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:27.234Z</atom:updated>
            <content:encoded><![CDATA[<p>I spent too long looking for a quick, non-deprecated solution to this simple problem this morning. Here’s what I came up with. Maybe it will save you a few minutes of searching. This is valid for Swift 3.</p><p>Since I have tableViewCells that need to set images from a URL string, I figured it would be best to make an extension that could be called on the cell configuration:</p><p>The extension:</p><pre>extension UIImageView {<br>    public func image(fromUrl urlString: String) {<br>        guard let url = URL(string: urlString) else {<br>            log.warning(&quot;Couldn&#39;t create URL from \(urlString)&quot;)<br>            return<br>        }<br>        let theTask = URLSession.shared.dataTask(with: url) {<br>            data, response, error in<br>            if let response = data {<br>                DispatchQueue.main.async {<br>                    self.image = UIImage(data: response)<br>                }<br>            }<br>        }<br>        theTask.resume()<br>    }<br>}</pre><p>Usage is a one-liner</p><pre>cell.productImage.image(fromUrl: order.product.imageUrl)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=280a041199e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/swift-3-extension-to-uiimage-to-quickly-retrieve-image-from-a-url-280a041199e1">Swift 3 Extension to UIImage to quickly retrieve image from a URL</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Turn off iMessage link previews in iOS 10+]]></title>
            <link>https://medium.com/andrewkouri/turn-off-imessage-link-previews-in-ios-10-190feac51969?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/190feac51969</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Sun, 02 Oct 2016 15:51:44 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:29.207Z</atom:updated>
            <content:encoded><![CDATA[<p>There is currently no way to turn off link previews in iOS 10. This “feature” is a half-baked attempt to add slack-like features, where GIFs, YouTube links, pictures, etc show up in-line in your iMessage conversation thread. I really wish Apple would have added a way to turn this off because it slows down the interface on my older iPhone 6, and also presents a <a href="https://protoxin.net/imessage-preview-forging-research-update-1/">security</a>/privacy risk. If I don’t accept the privacy policy of a website, I used to have the choice to not click on the link go to that website. Further, by going to that site, I reveal all sorts of information including my IP (and possibly even my location). With iOS 10, the messages app does this automatically, whether you wanted to load an image (on cell data) or not.</p><p>There is a way that you can turn off this “feature” when you’re sending links to people: Don’t put the link as the first thing in the message… I use the “.” character to disable this on links that I send. You can (and should) also send a <a href="http://www.apple.com/feedback/iphone.html">feedback report</a> to Apple asking them to add in a user setting to disable the “feature.”</p><p>I did:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=190feac51969" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/turn-off-imessage-link-previews-in-ios-10-190feac51969">Turn off iMessage link previews in iOS 10+</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging MongoDB’s 2dsphere geoIndex]]></title>
            <link>https://medium.com/andrewkouri/debugging-mongodbs-2dsphere-geoindex-d38a8f716d89?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/d38a8f716d89</guid>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Tue, 29 Sep 2015 17:53:57 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:37.352Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first learned about MongoDB’s geospatial capabilities similar to PostGIS, I was beyond excited because it meant I would not have to write helper functions to find data along geohash borders. Currently my data is indexed by geohash, which has great ordering properties, but is a little unwieldy for the “find me x near y”-type queries.</p><p>Unfortunately, it seems as though the 2dsphere index doesn’t cover geoWithin queries. As my collection of geoJSON documents grew from GBs to TBs, I noticed my tools taking extraordinary amounts of time to perform <em>find</em> queries, which caused me to investigate what was happening under the hood.</p><p>First, I double-checked that my geospatial index was present:</p><pre>mongos&gt; db.my_collection.getIndexes()<br>[<br>	{<br>		&quot;v&quot; : 1,<br>		&quot;key&quot; : {<br>			&quot;_id&quot; : 1<br>		},<br>		&quot;name&quot; : &quot;_id_&quot;,<br>		&quot;ns&quot; : &quot;telemetry.********&quot;<br>	},<br>	{<br>		&quot;v&quot; : 1,<br>		&quot;key&quot; : {<br>			&quot;value.avg_location&quot; : &quot;2dsphere&quot;<br>		},<br>		&quot;name&quot; : &quot;geoindex&quot;,<br>		&quot;ns&quot; : &quot;telemetry.*******&quot;,<br>		&quot;2dsphereIndexVersion&quot; : 2<br>	}<br>]</pre><p>So, the index was clearly there. I also verified that its size was appropriate — it was around 50mb, which seemed fine for this amount of test data.</p><p>Next, I ran .explain() on a query to see if it was hitting the index:</p><pre>var query = {<br>    &quot;value.avg_location&quot;: {<br>        &quot;$geoWithin&quot;: {<br>            &quot;$polygon&quot;: [<br>                [-122.07496047019957,<br>                    37.65882781135178<br>                ],<br>                [-122.07496047019957,<br>                    37.663906822384874<br>                ],<br>                [-122.0871913433075,<br>                    37.663906822384874<br>                ],<br>                [-122.0871913433075,<br>                    37.65882781135178<br>                ],<br>                [-122.07496047019957,<br>                    37.65882781135178<br>                ]<br>            ]<br>        }<br>    }<br>};<br>db.my_collection.find(query).explain(&quot;executionStats&quot;);</pre><p>Nope:</p><pre>&quot;winningPlan&quot; : {<br>	&quot;stage&quot; : &quot;COLLSCAN&quot;,<br>	&quot;filter&quot; : {<br>		&quot;value.avg_location&quot; : {<br>			&quot;$geoWithin&quot; : {<br>				&quot;$polygon&quot; : [<br>					[<br>						-122.07496047019957,<br>						37.65882781135178<br>					],<br>					[<br>						-122.07496047019957,<br>						37.663906822384874<br>					],<br>					[<br>						-122.0871913433075,<br>						37.663906822384874<br>					],<br>					[<br>						-122.0871913433075,<br>						37.65882781135178<br>					],<br>					[<br>						-122.07496047019957,<br>						37.65882781135178<br>					]<br>				]<br>			}<br>		}<br>	},<br>	&quot;direction&quot; : &quot;forward&quot;<br>},<br>&quot;rejectedPlans&quot; : [ ]</pre><pre>&quot;executionStats&quot; : {<br>	&quot;nReturned&quot; : 164,<br>	&quot;executionTimeMillis&quot; : 341340,<br>	&quot;totalKeysExamined&quot; : 0,<br>	&quot;totalDocsExamined&quot; : 10760184,<br>	&quot;executionStages&quot; : {<br>		&quot;stage&quot; : &quot;SINGLE_SHARD&quot;,<br>		&quot;nReturned&quot; : 164,<br>		&quot;executionTimeMillis&quot; : 341340,<br>		&quot;totalKeysExamined&quot; : 0,<br>		&quot;totalDocsExamined&quot; : 10760184,<br>		&quot;totalChildMillis&quot; : NumberLong(341334),<br>		&quot;shards&quot; : [<br>			{<br>				&quot;shardName&quot; : &quot;rs0&quot;,<br>				&quot;executionSuccess&quot; : true,<br>				&quot;executionStages&quot; : {<br>					&quot;stage&quot; : &quot;COLLSCAN&quot;,<br>					&quot;filter&quot; : {<br>                                           ....<br>					},<br>					&quot;nReturned&quot; : 164,<br>					&quot;executionTimeMillisEstimate&quot; : 334786,<br>					&quot;works&quot; : 10760186,<br>					&quot;advanced&quot; : 164,<br>					&quot;needTime&quot; : 10760021,<br>					&quot;needFetch&quot; : 0,<br>					&quot;saveState&quot; : 84076,<br>					&quot;restoreState&quot; : 84076,<br>					&quot;isEOF&quot; : 1,<br>					&quot;invalidates&quot; : 0,<br>					&quot;direction&quot; : &quot;forward&quot;,<br>					&quot;docsExamined&quot; : 10760184<br>				}<br>			}<br>		]<br>	}<br>},<br>&quot;ok&quot; : 1</pre><p>So, from the “stage” param COLLSCAN, we can clearly see it’s doing a collection scan to find the documents. We want it to say something like “IXSCAN” to indicate that it’s using the index.</p><p>I tried deleting and rebuilding the index:</p><pre>mongos&gt; db.mycoll.dropIndex(&quot;geoindex&quot;)<br>true<br>mongos&gt; db.mycoll.createIndex({&quot;value.avg_location&quot; : &quot;2dsphere&quot; }, {name: &quot;geoindex&quot;});<br>mongos&gt;</pre><p>Still, <em>no dice</em>!</p><p>Okay, well Mongo’s docs says that the most efficient queries will query on AND return only the indexed fields. So, I tried limiting (“projecting” in Mongo-parlance) the query to just return the “value.avg_location” field, but we ended up still doing a “COLLSCAN.”</p><p><strong>UPDATE: I ended up fixing this by re-structuring the query. It turns out the original syntax I used for the polygon query is the older syntax, which doesn’t hit the index. The newer syntax looks like this:</strong></p><pre>{<br>  &quot;location&quot;: {<br>    $geoWithin: {<br>      $geometry: {<br>        type: &quot;Polygon&quot;,<br>        coordinates: [ [ &lt;the coords&gt; ] ]<br>      }<br>    }<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d38a8f716d89" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/debugging-mongodbs-2dsphere-geoindex-d38a8f716d89">Debugging MongoDB’s 2dsphere geoIndex</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift 1.2 and Facebook’s New Login SDK]]></title>
            <link>https://medium.com/andrewkouri/swift-1-2-and-facebooks-new-login-sdk-bc4f161108a1?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc4f161108a1</guid>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Wed, 20 May 2015 14:51:52 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:33.148Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve had the pleasure of working with Apple’s new Swift over the last few months, and recently ran into some problems integrating Facebook’s API with an iOS 8 app I’m building.</p><p>The problem I was having is that, immediately after login, I couldn’t seem to get the user’s access token.</p><pre>FBSDKAccessToken.currentAccessToken()</pre><p>was always returning nil, even with the user logged in.</p><p>You need to get this token so that you can send it to your Rails app (or whatever you’re using on the back end) and perform Facebook authentication on behalf of your user up there.</p><p>My viewDidLoad looked like this:</p><pre>override func viewDidLoad() {<br>    super.viewDidLoad()<br>    // Do any additional setup after loading the view, typically from a nib.<br>    println(FBSDKAccessToken.currentAccessToken()) //prints nil</pre><pre>if (FBSDKAccessToken.currentAccessToken() != nil)<br>    {<br>        // User is already logged in, do work such as go to next view controller.<br>        println(&quot;this never prints&quot;)<br>        self.generateAPILoginDetails()<br>    }<br>    else<br>    {<br>        let loginView : FBSDKLoginButton = FBSDKLoginButton()<br>        self.view.addSubview(loginView)<br>        loginView.center = self.view.center<br>        loginView.readPermissions = [&quot;public_profile&quot;, &quot;email&quot;, &quot;user_friends&quot;]<br>        loginView.delegate = self<br>    }<br>}<br>I used Brian Coleman&#39;s helpful tutorial to get started, but it must not be updated for the latest SDK, because I followed it to a T and was definitely not getting the token.  Here&#39;s what I needed to change:</pre><pre>//added the following line in my viewDidLoad <br>FBSDKProfile.enableUpdatesOnAccessTokenChange(true)</pre><pre>Created a callback function to handle the updating of the FBSDKAccessToken state:</pre><pre>// in a LoginViewController.swift<br>    func onTokenUpdated(notification: NSNotification) {<br>        println(FBSDKProfile.currentProfile().name)<br>        if ((FBSDKAccessToken.currentAccessToken()) != nil) {<br>            println(&quot;token is not nil &quot;)<br>        } else {<br>            println(&quot;token is nil&quot;)<br>        }<br>    }</pre><pre>finally, in my viewDidLoad function, I added:</pre><pre>NSNotificationCenter.defaultCenter().addObserver(self, selector: &quot;onProfileUpdated:&quot;, name:FBSDKAccessTokenDidChangeNotification, object: nil)</pre><pre>And this did it! Hope this helps you! Leave a comment if you have any questions.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4f161108a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/swift-1-2-and-facebooks-new-login-sdk-bc4f161108a1">Swift 1.2 and Facebook’s New Login SDK</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Project: Automated Lawn Room]]></title>
            <link>https://medium.com/andrewkouri/project-automated-lawn-room-ac07ae340475?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/ac07ae340475</guid>
            <category><![CDATA[webwork]]></category>
            <category><![CDATA[adventure]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Wed, 13 Nov 2013 05:08:22 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:22.241Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently finished creating a <a href="http://www.andrewkouri.com/fortyfour/live/Users">3D-printed, Raspberry-Pi-powered, Twilio-backed lock</a> for one of the oldest rooms in Charlottesville. The goal? To allow my friends anytime access to my space on <a href="http://en.wikipedia.org/wiki/The_Lawn">the Lawn</a> while simultaneously staying secure.</p><p>I was originally going to grant access to all of my Facebook friends (the Raspberry Pi would use Facebook’s API to check who my friends were), but thought that it might be less chaotic to design my own registration system, so that I can easily control when individual users are permitted to enter my room.</p><p>Challenges:</p><ol><li>Not destroying a UNESCO World Heritage Site</li><li>Designing/Printing a container and transmission to adapt a servo motor to the existing door lock.</li><li>No existing “Instructables” for this project (or pieces of it therein)</li><li>Learning how to make the Arduino talk to the Raspberry Pi</li><li>Getting through the University’s draconian firewall to Twilio. (ended up using a few servers as mirrors to get there)</li><li>Allowing manual override for maintenance workers who occasionally let themselves in.</li></ol><p>Here’s a video I submitted to the Engineering Student Council as part of a contest. (The second half shows how it works)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FStftE33rQd0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DStftE33rQd0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FStftE33rQd0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ccd412ee824d954f7b634a87c34add64/href">https://medium.com/media/ccd412ee824d954f7b634a87c34add64/href</a></iframe><p>Update: Some new features!</p><p>I’ve been working on a few new features to make my room more intelligent. One of the features will save electricity by turning lights on only when there are people in the room, and turning them off automatically when the visitors leave. Another new feature sends me a text with a picture of the visitor who entered the room. Finally, I’ve created a lockdown mode so that I can go on vacation without worrying about what will happen to my room when I’m out of town for a weekend.</p><p>[caption id=”attachment_516&quot; align=”aligncenter” width=”300&quot;]</p><p>Calling a method I wrote to control the lights in my room via DMX protocol by way of the Raspberry Pi.[/caption]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac07ae340475" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/project-automated-lawn-room-ac07ae340475">Project: Automated Lawn Room</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloudification of Things]]></title>
            <link>https://medium.com/andrewkouri/cloudification-of-things-70ff4ce6b991?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/70ff4ce6b991</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Tue, 23 Jul 2013 18:17:50 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:33.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloudbursting, the ability to rent additional servers in the cloud on demand, has been an extremely successful concept in enterprise computing recently. When a researcher has the need to perform complex computations, rather than investing in a supercomputer, she can rent a cluster of Amazon’s idle servers for just the duration of the calculations. She pays for the power when he needs it, and when she doesn’t she avoids having an expensive asset sitting idle and depreciating.</p><p>Expansion into the cloud has been made possible in part by improved networking. Analogous to decreased shipping costs, more bandwidth reduces the friction in moving large sets of data from the firm to the cloud. What will enable the Cloudification of Things is the decreased friction in loan logistics.</p><p>Take Zipcar, for example. Some people do not need a car 7 days a week. Rather than having a depreciating asset sitting in a car park, Zipcar users can rent a vehicle for only the time which they need. The proliferation of GPS tracking devices has reduced the friction in trusting customers to return a vehicle, allowing this business to be viable.</p><p>Another example is fashion site Rent the Runway. Rather than paying for an outfit which is to be worn but a few times, customers can rent these items for a special occasion. Courtesy of improved shipping routes and delivery algorithms, shipping costs have actually decreased while fuel costs increase. Decreased transitional costs combined with large inventory availability has removed the friction that prevented previous clothing rental companies from being successful.</p><p>From records, to 8 tracks, to CDs, to iTunes, the music industry has never been complacent with any particular medium. Shifting from iTunes, users begun favoring “rented” music with services like Spotify, Pandora, and iTunes Match.</p><p>There are many other examples of users transitioning from ownership to renting, most of which have been enabled by reduced friction in transactional logistics. Going forward, there are many other businesses that have the ability to “cloudify” their business model.</p><p>Further, the nature of this model need not be B2C. Consumer-to-consumer rentals can also lead to a more efficient utilization of underutilized assets. Photography equipment, vacation homes, office space, restaurants, energy production equipment, and farming equipment are just a few possibilities.</p><p>It’s been estimated that Manhattan was sold by Native Americans to explorers for only $24. The reasoning for the low price was that the Native Americans believe that it was impossible to “own” land. How humanity defines ownership has never been consistent across time and cultures.</p><p>“Imagine no possessions,I wonder if you can.No need for greed or hunger,A brotherhood of man.Imagine all the people, sharing all the world”- John Lennon, 1971</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70ff4ce6b991" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/cloudification-of-things-70ff4ce6b991">Cloudification of Things</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview with Virginia.edu hackers, R00TTH3B0X]]></title>
            <link>https://medium.com/andrewkouri/interview-with-virginia-edu-hackers-r00tth3b0x-ea5ecc439f9e?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/ea5ecc439f9e</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Wed, 17 Apr 2013 04:13:08 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:24.134Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m surprised to be writing this, but I think the hacking incident this week with the Virginia.edu homepage is terrifically ironic. Before chatting with the two hackers, who go by the handles “x86” and “n3tcat,” I thought that the episode could be an important milestone for computer science, and IT in general at the University. I think there are a few takeaways: First, the exploit serves as a reminder that we must never rest assured systems are, and will always be, secure. Second, improperly managed software can cause problems beyond their foreseeable scope. And finally, a quick response does not always equate to the best response.</p><p>I chatted with x86 and n3tcat using an encrypted application called cryptocat, which prevented me from determining their IP addresses, and consequentially, protecting their anonymity. My purpose for chatting with them was to find out their motives, and to see if they shared the same view on always pushing technology to it’s edge for the purposes of furthering our general security as I did. I ask them why, if they had access to everything (as they claimed), would they only take down the site’s homepage, leaving everything else in tact.</p><p>Their response was that they are different than the typical “script kiddies” who “don’t have a passion for it, [but] just want the fame.” They “simply dislike the rest of the hacking community” and are trying to hold the data, making “MBs to GBs, GBs to TBs, etc.” I decided to dig further into this statement, which essentially implies that they are stockpiling the data, for release at a later date.</p><p>I asked, “So what do you want from them?” They replied that they wanted neither money nor recognition, but that they wanted “[ITS] to apologize to the community, and to admit that we have access to plenty of data that they say we don’t. Then we will leave the University of Virginia alone, and move on.” To that, I replied “But you don’t. You’re bluffing.”</p><p>As proof, they sent me an image of a database file that they had supposedly downloaded. It did not contain any specific information, nor was there evidence that the file was any more than just a random database. After some bickering about the validity of their proof, I asked them if they had a specific time as to when the data will be released. “No,” they said.</p><p>At this point, it became rather apparent to me that these two were not as dissimilar from the “script kiddies” which they declared to dissociate. Still, their entry point leaves us to scrutinize policy about maintenance of University websites. They admitted to “exploit[ing] UVa through [the University’s] ‘honors’ [sic] wordpress.” Wordpress is an open-source blog platform that was found to have a vulnerability two weeks ago. Site owners, who actively maintain their sites, were encouraged to create strong passwords and update their installations to the latest version of the software, but apparently this was not done on the Honor committee’s installation.</p><p>R00TTH3B0X said that they were trying to “teach [ITS] a lesson” and “[let students] know that nothing is secure.” Distilled to an actual credible point, I think that if x86 and n3tcat taught us anything, it is that there is no such thing as “set it and forget it” in software. Patches are constantly being published for security holes, and if left unmaintained, “we enter and wreak havoc.” Because, “whose [sic] to say we don’t want to watch everyone panic?”</p><p>So what about the administration’s lack of response? I think it is a prudent move. When I asked about their communications with ITS, x86 responded, “They’ve ignored.” Although submitting to their request is relatively cost-free, there is no concrete evidence that the hackers have any worthwhile tricks left up their sleeve. In an attempt to prolong their media attention, R00TTH3B0X tweeted a masked link to trick those who may not know about the age-old internet trick. If the University had panicked and released a statement quickly, it would have fueled the exploiters’ desires and taken credibility from our network administrators, who actually responded quickly and effectively to the threat, ensuring that no personal data was lost. Even though I believe there is no threat, they assured me that, “Only time will tell. If we aren’t acknowledged by ITS, then we will release plenty of information against UVa.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea5ecc439f9e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/interview-with-virginia-edu-hackers-r00tth3b0x-ea5ecc439f9e">Interview with Virginia.edu hackers, R00TTH3B0X</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pull the Plug on Plug Pulling]]></title>
            <link>https://medium.com/andrewkouri/pull-the-plug-on-plug-pulling-2b708dc87ad5?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/2b708dc87ad5</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Mon, 08 Apr 2013 03:59:09 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:39.400Z</atom:updated>
            <content:encoded><![CDATA[<p>Most citizens accept reasonable societal conventions such as separate gender restrooms, wearing clothes in public or driving on the right side of the road. But people who unquestioningly comply with irrational conventions like not wearing white after Labor Day or turning their electronics off during takeoff and landing infuriate me.</p><p>Every time I fly, I am reminded of society’s willingness to comply with the status quo when I am forced to pause my music until reaching the magical altitude of 10,000 feet, below which my Kindle would supposedly send aircraft, satellites and the International Space Station spiraling into Armageddon-style oblivion. Having to stop drafting emails from my iPad for a few minutes or put down a good e-book is only a minor hassle; but what bothers me is the bogus reasoning behind why travellers are required to do so.</p><p>The reason commonly offered by flight attendants is that the electronics will interfere with “navigational instruments aboard the aircraft.” Most consumer electronics, powered only by a few watts, are required to pass FCC tests guaranteeing that they specifically do not interfere with any other electronics. Furthermore, even “Mythbusters” aired a special about cell phones disrupting aircraft navigation. The result? “Modern planes are well-shielded enough to not be affected.”<br><br>Even if there were significant evidence that some portable electronic devices interfered with navigational instruments, would it not then be logical to ban electronics throughout the whole flight? Sure, it is more critical to have accurate readings during takeoff and landing, but if the electronics interfered with avionics systems, after 10,000 feet the pilot still needs to know where he’s going and communicate. The plane may not immediately crash, but it would still be a flaw in the regulation to allow for electronics that may interfere during any part of the flight.</p><p>What’s more, all electronics are disallowed during takeoff and landing, but cell phones are never allowed at any point during the flight. Although it would be annoying to listen to a chatterbox passenger ramble on throughout the flight, there must be another, more logical reason for the banning of cell phones.</p><p>Common speculation as to why cell phones are disallowed is that the law forces flyers to use the expensive seat-back phones in flight. And yet, despite this claim, I have never seen anybody pay the exorbitant price to talk on the plane. Another speculation is that hundreds of cell phones switching from tower to tower rapidly would put a strain on cell phone networks, and thus it is in the best interest of the cell phone carriers to keep this law. This possibility sounds suspect, though, because many phones can be put in airplane mode, which turns off their cellular radios. Even so, flyers are prohibited from using their phone as an MP3 player in airplane mode.</p><p>To find an answer to all these questions, I decided to do a little investigating. Instead of focusing on the many speculated reasons as to why cell phones are banned during the flight, I redirected my question to ask why non-transmitting electronics were banned during takeoff and landing. I talked with Gavin Garner, an assistant professor in the department of mechanical and aerospace engineering. Garner said that the probability of an electronic device actually interfering with a flight is way less than most would think. Rather, the security risk of a homing or triggering device for a missile or bomb disguised as a phone might be behind Transportation Security Administration’s reasoning.</p><p>My question, however specific, presented even more questions. If Professor Garner’s reasoning were true, would the terrorist not be able to activate the bomb with an inconspicuous foot-switch, or even just wait for 10,000 feet and then press the button on her iPad? Also, if a device were intentionally wired to jam a GPS signal, it could be left on in a backpack and flight attendants would never know. Electronic terrorism certainly is a possibility, but the current policy does not even come close to protecting travelers from various forms of attack. I’ve concluded that the bans are instead just useless and arbitrary ways of how airlines try to appear to maintain “order.”</p><p>Since the TSA policy does not adequately guard against terrorism and it does not have significant economic benefits for airlines, why has the rule against electronics during takeoff and landing not been repealed? Likely because having passengers turn off their cell phones and games during the beginning of the flight increases the probability that they will pay attention to the safety presentation at the beginning of the flight. However useless the ban is, it would be harder to pass a law requiring people’s full attention than to keep a law that may be irrational.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b708dc87ad5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/pull-the-plug-on-plug-pulling-2b708dc87ad5">Pull the Plug on Plug Pulling</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Oxford Comma]]></title>
            <link>https://medium.com/andrewkouri/the-oxford-comma-da1e9338b91?source=rss----2802042860ce---4</link>
            <guid isPermaLink="false">https://medium.com/p/da1e9338b91</guid>
            <category><![CDATA[thoughts]]></category>
            <dc:creator><![CDATA[Andrew Kouri]]></dc:creator>
            <pubDate>Thu, 29 Mar 2012 21:29:55 GMT</pubDate>
            <atom:updated>2017-12-29T05:10:27.127Z</atom:updated>
            <content:encoded><![CDATA[<p>If you ever choose to write for The Cavalier Daily as an opinion columnist, your editor will stress the importance of beginning your column with a pointy hook to engage readers’ interest, and likely beg you to break your habit of using the Oxford comma. If that hook was not dull enough to lose your interest, allow me to dull it further by defining the Oxford comma.</p><p>Also known as the serial comma, the Oxford comma is typically used in writing to separate items in a list before the conjunctions “and,” “or” and “nor.” See, I just omitted the Oxford comma — after the “or” in the list — because my editors would otherwise bark at me.</p><p>Writing an entire post on a comma may seem insane on the surface, but please let me assure you of my sanity by noting this is one of many examples of resistance to change driven purely by stubbornness at the University.</p><p>The AP Stylebook is the antagonist in the story of rejection which prevents the Oxford comma’s adoption in The Cavalier Daily. The AP Stylebook says, “Use commas to separate items in a series, but do not put a comma before the conjunction in a simple series: The flag is red, white and blue. He would nominate Tom, Dick or Harry.” For newspapers, the reasoning is that the omission of the supposedly unnecessary comma saves space during printing.</p><p>To the rescue is our protagonist, the Chicago Manual of Style, which instead reasoned in 2010 that use of the Oxford comma is “strongly recommended” because it “prevents ambiguity.” This argument has substance because many sentences do actually become unclear without the comma. For example, take the sentence, “Tonight I kissed two lovely girls, Cindy and Sarah.” Without the Oxford comma as standard convention, this sentence could be interpreted as my kissing two girls or four girls. With the Oxford convention as a standard, however, the sentence would be made much less confusing, as it would read, “Tonight I kissed two lovely girls, Cindy, and Sarah.” I instantly become much more of a womanizer because rather than being interpreted as an appositive to “two lovely girls,” Cindy and Sarah are indeed two additional girls whom I kissed.</p><p>Instead of having to clear up the ambiguity between the two possible interpretations in another bulky and awkward sentence, I believe the comma would save space in the long run. I brought up the issue with another proponent of axing the Oxford comma, second year Evan Behrle. He said, “After thinking about it, I think I’ve actually reversed my view. A comma is supposed to represent a vocal pause, and we pause after each item in a list — that’s no different for the last two items than it is for the first two, so why remove the comma? It’s also visually confusing, because it seems to imply that the last two items in the list are a pair, instead of individual things separated from each other by a comma.”</p><p>The lone rational opposition to the Oxford comma, then, is tradition itself. I wrote a column last year praising The University and the marvelous traditions we uphold such as the Lighting of the Lawn and the Restoration Ball. What I wish to remove from that column are those traditions which exist solely for tradition’s sake, which are not praiseworthy. Stickling on comma usage and failing to adapt to the living language we update continuously is just one example.</p><p>Perhaps it is a stretch to relate comma usage to the traditions of the fourth-year fifth, streaking the Lawn or steam tunnelling; however, like comma usage in the Cavalier Daily, these are traditions which aren’t enjoyable per se, but we do them anyway to follow the people before us. Choosing what to do with your pastime should be a product of your own thinking, not of nonsensical conformity. If people have done the same thing for years, and it makes sense to you, then having tradition on your side just serves as icing on the cake. Otherwise, bring back the damn Oxford comma.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da1e9338b91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/andrewkouri/the-oxford-comma-da1e9338b91">The Oxford Comma</a> was originally published in <a href="https://medium.com/andrewkouri">andrewkouri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>