<?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 John McGarey on Medium]]></title>
        <description><![CDATA[Stories by John McGarey on Medium]]></description>
        <link>https://medium.com/@JohnMcGarey?source=rss-9d0f03180fa8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3ddGyKGl1f2K7KRZYTB8zw.jpeg</url>
            <title>Stories by John McGarey on Medium</title>
            <link>https://medium.com/@JohnMcGarey?source=rss-9d0f03180fa8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 01:34:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JohnMcGarey/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[Learning vs Sleep Consolidation]]></title>
            <link>https://medium.com/@JohnMcGarey/learning-vs-sleep-consolidation-4ad22058ea72?source=rss-9d0f03180fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ad22058ea72</guid>
            <category><![CDATA[memories]]></category>
            <category><![CDATA[elementary-school]]></category>
            <category><![CDATA[the-brain]]></category>
            <category><![CDATA[sleep]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[John McGarey]]></dc:creator>
            <pubDate>Fri, 23 Dec 2016 22:06:02 GMT</pubDate>
            <atom:updated>2016-12-23T22:06:02.557Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Why do people insist on learning to do habits once a day?</li><li>Why do we say “practice once a day”</li><li>because sleep consolidates what we have learned!</li><li>Theory: I have a theory that if I studied something and then took a nap and then when I woke up I studied again and then took another nap and then studied again I would learn that thing SUPER SUPER fast.</li><li>If you study for 18 hours straight and never again you won’t learn it</li><li>and if you study for 5 minutes every week you won’t learn it</li><li>so there is some sweet spot and I theorize that the sweet spot is centered around consolidation during sleep</li><li>FURTHER THEORY: What if one of the biggest differences between “smart” people and “stupid” people in school is how deeply they sleep?</li><li>what if some people would be really smart (and show indications of it) but because their bed has a metaphorical pea underneath it they can never sleep as deeply as their body would like them to sleep?</li><li>what if other people who aren’t that smart really just get really fantastic sleep and so they never have problems in school?</li><li>I get sore when I don’t sleep well and I always have, and the soreness ABSOLUTELY affects my mood but its only as an adult that I could connect the dots between sleep and my mood and sleep and soreness and soreness and my mood</li><li>what if lots of behavior problems are because the kids are sore which puts them in a bad mood? as a kid I wasn’t in tune with my body enough to know what was causing my bad moods</li><li>what if depression or adhd if thats all related too?</li><li>what if two kids with the same bed but one has a minimalist home with very few things to distract their attention, and their parents don’t spend too much so they don’t worry too much about money or where food is going to come from (or anything else for that matter) so their life at home is calm and they are able to sleep very well and consolidate what they learn in school, and learn naturally and easily, but the other one has tons of clutter, and their parents overextend and have crises of money or food or getting kicked out of their place pop up out of nowhere and therefore what if the kid can never really feel at peace at home and are always stressed and can’t sleep and therefore can’t consolidate and therefore can’t learn?</li><li>Its clear that there are SO MANY other variables but this is one that I don’t hear people talking about much (probably because its really difficult to connect the dots and articulate whats going on behind the scenes) but I think it is more important than anyone realizes.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ad22058ea72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why the .webm format doesn’t suck]]></title>
            <link>https://medium.com/@JohnMcGarey/why-the-webm-format-doesnt-suck-1e1daca952f4?source=rss-9d0f03180fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e1daca952f4</guid>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[webm]]></category>
            <category><![CDATA[html5]]></category>
            <dc:creator><![CDATA[John McGarey]]></dc:creator>
            <pubDate>Sat, 29 Oct 2016 21:29:25 GMT</pubDate>
            <atom:updated>2016-10-29T21:29:25.732Z</atom:updated>
            <content:encoded><![CDATA[<p>tldr: .webm is actually pretty cool and we have more options than we ever thought for working with it in linux.</p><h3>Background</h3><p>Last year when I first found out that SUSE linux did screen recording but only to that darned .webm format I was disheartened because when I googled for it I found almost nothing and certainly no obvious converters that we could get for the old SUSE linux at work so today I was surprised to find out that my cheap mac video converter (smartConverter fyi) does a quick and easy job of converting from webm to other formats and my surprise led me to look a little further and I figured out that the reason webm isn’t well known is that its relatively new but it is gaining tons of momentum on the web as a royalty free format to display embedded and integrated videos on web pages (and an alternative to the mp4 format which apparently has royalties) and I’m starting to think its actually really cool!</p><h3>Powerful Features</h3><p>This site shows most of the powerful features:</p><ul><li>how to start the video at an exact second,</li><li>how to add subtitles with a track file (this would let us narrate in case we can’t record),</li><li>how to loop and pause and start the videos</li><li>this would let us layout multiple videos on one page and fire them off at exactly the same time (for example to show what happens when two people work on the same file)</li><li>how to grab screenshots from the videos and save them to the computer</li></ul><p><a href="https://www.html5rocks.com/en/tutorials/video/basics/">https://www.html5rocks.com/en/tutorials/video/basics/</a></p><h3>Zoom</h3><p>This is probably the simplest way to zoom</p><p><a href="http://slicejack.com/fullscreen-html5-video-background-css/">http://slicejack.com/fullscreen-html5-video-background-css/</a></p><p>Also worth noting that those values can be changed using javascript and css so we could have a little button or timer that zoomed in and then zoomed back out.</p><h3>Examples and Tricks</h3><p>Some example code</p><p>This explains using a video background</p><p><a href="https://envato.com/blog/video-background-html5-video/">https://envato.com/blog/video-background-html5-video/</a></p><p>This site makes little ’tiles’ out of the video to “blow up” the video so we could use that to zoom in on just a particular section</p><p><a href="http://craftymind.com/factory/html5video/CanvasVideo.html">http://craftymind.com/factory/html5video/CanvasVideo.html</a></p><p>And heres more about zooming</p><p><a href="https://hacks.mozilla.org/2011/01/zooming-and-rotating-for-video-in-html5-and-css3/">https://hacks.mozilla.org/2011/01/zooming-and-rotating-for-video-in-html5-and-css3/</a></p><p>And heres how to do picture in picture</p><p><a href="https://msdn.microsoft.com/en-us/library/hh924820(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/hh924820(v=vs.85).aspx</a></p><p>Also this site includes some ffmpeg commands to get into webm format which can be adapted to get out of webm if thats what we want to do …</p><p><a href="http://diveintohtml5.info/video.html">http://diveintohtml5.info/video.html</a></p><p>This site talks about ways to split the video into multiple streams using “media source api”</p><p><a href="https://developers.google.com/web/updates/2011/11/Stream-video-using-the-MediaSource-API">https://developers.google.com/web/updates/2011/11/Stream-video-using-the-MediaSource-API</a></p><p><a href="https://github.com/w3c/media-source/">https://github.com/w3c/media-source/</a></p><h3>Punchline</h3><p>I haven’t done these things before but I’ve done a lot of HTML5 and CSS so I know we can figure this out to the degree we desire and I’m starting to think we can leverage this to make some pretty effective tutorials for things.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e1daca952f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fighting to stop Fighting]]></title>
            <link>https://medium.com/@JohnMcGarey/fighting-to-stop-fighting-651e93de4e23?source=rss-9d0f03180fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/651e93de4e23</guid>
            <dc:creator><![CDATA[John McGarey]]></dc:creator>
            <pubDate>Mon, 08 Sep 2014 03:26:44 GMT</pubDate>
            <atom:updated>2014-09-08T03:28:51.697Z</atom:updated>
            <content:encoded><![CDATA[<h3>A metaphor for how easy it is to lose before we even begin.</h3><p>Once upon a time I went to the retirement party of a man who held a top position in a Fortune 500 company and I waited in a short line to get to shake his hand and say congratulations. In addition to giving my congratulations I asked him if he had any advice for a weenie like me, and after thinking for a moment he said something that rocked my world and changed my life. He said:</p><p>“Don’t let yourself hold yourself back.”</p><p>I thanked him and went on my way but on my way home that day so many questions popped into my head: “How do I stop myself from holding yourself back? How do I know whether I am holding myself back? Am I actually holding myself back right now?”</p><p>These days (in retrospect) I can see numerous ways in which I was holding myself back, and I can even see ways in which I am holding myself back right now, and the image that occurs to me whenever I think of this is one of <strong>War</strong>.</p><blockquote>You are the commander of an army and you are facing an opponent of equal size such that to the casual observer there is no reason to believe one side should win and the other should lose. You have been given orders that this is the country’s final stand and you must either win or be destroyed, and you have accepted your orders and are ready to engage the enemy. However just before marching confidently into battle, you look up and find yourself suddenly commanding a much smaller army (one which has no reasonable chance of winning).</blockquote><blockquote>You gather your lieutenants and confirm that the army that you are commanding is now of a pathetic and laughable size. None of your officers believe you stand a chance, but you have your orders, so you spend the remaining minutes before dawn rallying your men by delivering rousing speeches intended to inspire courage and instill hope in the face of obvious defeat. You harden yourself to do what you know you must and it takes all of your willpower to summon enough courage to lead the charge of your men into a battle you have no hope of winning. But since you have your orders, you know what you must do, and when dawn breaks you give your men the signal and ride forward to certain destruction and hoping against hope that somehow your army will win the day.</blockquote><p>This is a bleak picture and yet this is the danger and the inisidious disadvantage of habitually holding yourself back: You cripple any chance you ever had.</p><p>When you gathered your troops on the field of battle your army was strong and well sized, and the defeat of the enemy seemed achievable. But you didn’t anticipate that your enemy has sent spies to infiltrate your camps and ensure their victory before the battle even begins.</p><p>One of the spies the enemy sent is <em>righteous indignation and resentment</em>:</p><blockquote>“I don’t want to be fighting this battle, in fact, I shouldn’t have to fight this battle. My supreme commander should be out here fighting this battle himself. He doesn’t know how hard this is on my men, and he hasn’t met their families or heard the pleas of their wives and children. He will not have to endure the inevitable screams of suffering that everyone here will either have to endure or will create for themselves. This is just not fair.”</blockquote><p>Another of the spies sent by the enemy is <em>self-doubt</em>:</p><blockquote>“My supreme commander may have believed we could win this but I’m not so sure. Just look at all the men ready to come and kill us. He doesn’t realize that all of our numerous successes in the past large and small were probably just really good luck. Besides do we really deserve to win?”</blockquote><p>And the final spy the enemy sent to destroy you is <em>regret and self reproach</em>:</p><blockquote>“Really I should have seen this battle coming months ago. If only I had been a better commander and trained my men better we wouldn’t be in this mess. Actually I should have sent spies into my enemy’s camp last night (I sincerely hope my enemy didn’t have the same idea yesterday evening). Although I wanted to prove her wrong, it looks like my mother was right when she said that I wasn’t as good at strategy and that I should leave that to my older brother. I am an imbecile for not listening to her 30 years ago and now because of my stupidity I’m about to get all these men killed and put the rest of my country in chains. What a fool I am. Who am I kidding … I’ve always been a fool.“</blockquote><p>These are the spies that have infiltrated your camp and each of them was able to destroy a huge segment of the population of your army in their own subtle way before themselves being finally destroyed (by which time their damage had been done).</p><blockquote>“I have not been killed but instead taken captive on the field of battle (a great dishonor) and as a result I have had to watch my men be destroyed which is a fate in many ways worse than my own death. However I am now meeting with the commander of the opposing army for whom I have already chosen my words.”</blockquote><blockquote>“Although this will be the end of me, ” I start my speech with reluctant respect “and undoubtedly these will be my final words, I must reluctantly admit that it was a brilliant move sending spies into our camp last night and I must know: how did you think of this?”</blockquote><blockquote>“Interesting … ” he ponders ”I have nothing to gain by lying to you at this point and I would take all credit for brilliant ideas that I rightfully could, however I can say with all honesty and sincerity that this morning I woke surprised and delighted by my good fortune after seeing the attrition of your army, because I assure you, I sent no spies into your camp and if as you say your army was destroyed from the inside, then it is only you who are responsible for that destruction.”</blockquote><p>Don’t let yourself hold yourself back.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651e93de4e23" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>