<?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 Mr Trask on Medium]]></title>
        <description><![CDATA[Stories by Mr Trask on Medium]]></description>
        <link>https://medium.com/@sltrask?source=rss-70211c3cb746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*13i1jto0WPXIYY8U.</url>
            <title>Stories by Mr Trask on Medium</title>
            <link>https://medium.com/@sltrask?source=rss-70211c3cb746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 01:15:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sltrask/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[A journey towards fitness]]></title>
            <link>https://medium.com/@sltrask/a-journey-towards-fitness-b1548615a2ba?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1548615a2ba</guid>
            <category><![CDATA[running]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[wellbeing]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 03:50:45 GMT</pubDate>
            <atom:updated>2019-09-17T04:02:39.932Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*OQnGG-syAiW76KCIebc1Ww.png" /></figure><p>At school I ran cross country. This was in the 80s, north of Manchester, where icy horizontal rain pierced your skin and turning an ankle whilst running through fast-flowing water was a constant threat. Back then running cross country like that built backbone. Now it might be called resilience.<br>In my 20s and 30s I pursued Kung Fu, Bikram yoga and generally managed to stay on top of my health, in a 6 out of 10 sort of way.</p><p>So when, a month ago — well into my 40s, and well below 6 out of 10 by now — my wife showed me a video of a guy on Facebook who had transformed his body by doing 200 press-ups every day for a month, I scoffed and told her that (a) to mould and sculpt himself from flab to fit just by doing press-ups was impossible and (b) 200 press-ups was nothing. I could easily do that. I told her that a real challenge would be 300 press-ups per day, and that he would needed to have run something like 100km in a month, and that if he did such a challenge then that would be impressive. At which point she laughed so hard that we had to rewind Peaky Blinders.</p><p>One of my characteristics is dogged stubbornness. This is what I blame on my resolution, the next morning, to complete 10,000 — TEN THOUSAND — press-ups in a single month, and 100km of running. To add extra incentive I decided to declare it on Twitter so that I really really could not back down. On a whim, just before I posted, I doubled the running distance to 200km. I still cannot explain why I did that, other than in that split second it felt more challenging. Of course at that point I found myself calculating that to achieve this in 31 days, I needed to complete 323 press-ups and 6.46km every single day, morning or night, rain or shine. To runners out there, 6 and a half km in a single day is easy — they can bang that out in half an hour. To me it was just ridiculously hard. My fault entirely.</p><p>As anybody who has suddenly started exercising for the first time in a long time knows, the first day was pretty poor. I figured that the only way to clear 300+ press-ups was to complete them in 5 sets of 54, and a final set of 53. On the first day it took me over half an hour, stopping every 13 press-ups or so, swearing into the floor, spread-eagled like a flailing octopus at 6 in the morning. About two thirds of the way through I could already feel my muscle fibres tearing in my arms and chest. Brilliant. Then came the run — 6.46km there and back along Brighton seafront. Running on the seafront is amazingly life-affirming, but oh boy 3.23km — and then turning around and doing the same distance again — felt like a long way.</p><p>The next 4 days were, well, worse. Much worse. Searing lactic acid pain in my legs, especially my quadriceps, so that running the next day was in fact more of a zombie shuffle. Reaching for something in the kitchen had my chest and arms crying out. In fact press-ups literally involved me grunting aloud in agony and collapsing in an angry hot pile of failure. However I was committed, and doggedly stubborn, so I had to continue. Stopping was not an option.</p><p>After something like the fifth day, with plenty of amusement as I had to walk down my stairs sideways, and reach out for things only less than two feet away from me, my body started to adjust, and to realise that I was not going to stop, and to ease up on me. By day 6 it no longer hurt badly to complete the press-ups, so that I was able slowly to concentrate on improving them. The searing pain in my thighs had eased, only to be replaced by pain in my: left ankle, left knee, right knee, left toes, right hamstring (torn in two several years ago) and right shoulder. All of which would have stopped me had I not made this ridiculous pledge. None of which was allowed to stop me now. Hence I slowed down the running, forced myself to never ever stop whilst running, and hobbled through it all.</p><p>Something wonderful happened two and a half weeks in. My body clicked, and all of the pain just went, almost overnight. I started to increase my pace in running, and hold press-ups longer and lower than before. I experienced the runners high after completing a 5am run, in fact I even started to look forward to it. I banged off a couple of 10k runs at the weekend, not only avoiding injury but actually feeling good about it. My arms and chest became ever so slightly more defined, and by three weeks my trousers were feeling much looser. In fact I have now dropped just over 3 inches from my waistline. My ability to run for longer distances was such that, after a 6km run, I was not even out of breath — so my lung capacity and cardio vascular fitness has also improved immeasurably.</p><p>Such was my desire to hit my previously unthinkable 200km target, that over the weekend I ran 5km early in the morning, then another 5km on a Park Run, then the next day I ran 12km to Brighton Palace Pier and back again, with my two eldest kids in tow on their bikes. By the end of the run they looked more tired than I did.</p><p>As a result of 22km over the weekend, I hit 202km two days early, and today, day 31, I completed my final press-ups to hit my 10,000 target. Hence this post. I feel physically a million times better than just a month ago, I am experiencing runner highs and running up steps two and three at a time. I am polishing off a ridiculous number of press-ups in 5 or 6 minutes now, all of them good, ‘proper’ press-ups. My appetite for food had become healthier — fruit at lunchtime, and smaller plates in the evening. My average pace started off hovering around 07:30 minutes per km, sometimes over 08:00 if I was carrying minor niggles. The other day I ran under 05:30 per km. This is no Olympic qualifying time, but it shows the improvement that can be achieved with persistence.</p><p>So a new target — 600 press-ups, and 10km of running every week, which will typically mean an early start on a Wednesday and then a Sunday. Typing this now, this feels like a holiday to me — easily achievable and no reason for me to stop.</p><p>What is my takeaway from this? Well, people such as Malcolm Gladwell and Matthew Syed are correct — the more you work at something, the better you become. I accidentally did the right thing — I set myself a near-impossible target, knowing how stubborn I am, and I have broken my body into accepting regular exercise. So all of the usual reasons why I would not continue to run or workout have gone. I also appreciate how easy it is to lapse into a gently comfortable existence, where physically nothing has gone particularly wrong, but to be honest nothing is as good as it could be.</p><p>In other words, I am determined to stay ahead of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1548615a2ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1 Minute Read #17 -strings in Python*]]></title>
            <link>https://medium.com/hackernoon/1-minute-read-17-strings-in-python-4c13934ca684?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c13934ca684</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Fri, 14 Dec 2018 12:16:00 GMT</pubDate>
            <atom:updated>2018-12-14T12:16:00.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>1 Minute Read #17: f-strings in Python*</h3><p>How long is a piece of string? If it is as long as the many ways to manipulate strings in Python, then it is mighty long indeed. Python 3.6, released in 2016, introduced a whole new way to format strings. Known as ‘formatted-string literals’, they are a much more efficient than anything that preceded them. For example below is a standard way of handling strings using <strong>.format</strong> :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*dSUK8_6KQ34Xtzez0WVAuw.png" /></figure><p>You can be cute with this, and change the order (the index) in which the variables are called:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*FXP_PmPEXymZ2_12NwPJyQ.png" /></figure><p>Endless fun can be had in this manner…however…there is another way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*rdH-yjasSuiQ1h3RgH50Ag.png" /></figure><p>Note the use of the (f”Hello…”) here — the <strong>f</strong> can be capitalised to F(“Hello…”), and it tells Python that you wish to use previously declared variables in this string.</p><p>f-strings disturb old-school Pythonistas who have got so very used to the .format method. This is equivalent to moving from a top-loading washing machine to a front-loader. F-strings are just, plainly, better and simpler, and, in speed tests, quite a bit faster in the way they parse. See some slightly more complex code below, using capital F for hopefully more clarity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DU4IcSfc9x6gHwcuOYToBw.png" /></figure><p>You can see that the old .format method is absolutely fine, but it is a tad elongated. The newer f-string manner just scans better for our puny human brains, doing away with the strung-out .format parameters. Here is another example — using multiline strings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxI1-81CV1xU9XXCj4rT5Q.png" /></figure><p>Finally, dictionaries — never easy things to handle in Python, but they do make a good deal more sense using f-strings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLLZGLSE5Nhr_OdB4ShtbQ.png" /></figure><p>Convinced? If not, hop onto Python 3.6 or 3.7 and give them a couple of days. You will never look back.</p><p>*Admittedly this is longer than a ‘1 Minute read’, but f-strings are just worth reading about for more than a minute. I recognise that I have strung this out a bit. Chortle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c13934ca684" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/1-minute-read-17-strings-in-python-4c13934ca684">1 Minute Read #17 -strings in Python*</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Fundamentals (5) — Placeholders in Python strings]]></title>
            <link>https://medium.com/hackernoon/python-fundamentals-5-placeholders-in-python-strings-c6580f2053dd?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6580f2053dd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Sat, 24 Nov 2018 20:07:51 GMT</pubDate>
            <atom:updated>2018-11-24T20:07:51.022Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Fundamentals (5) — Placeholders in Python strings</h3><p>Let’s dive right in with some Python strings here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/0*gaMMsuRPus3beEdc" /></figure><p>We can see that, as previously, we are printing (“Hello world”) in the first line. We are also assigning a value to the <strong>name</strong> variable, but this time we are doing this via an <strong>input</strong> function.</p><p>The <strong>input</strong> function displays a string of text, and it awaits an input from the user. In this case, the text is “What is your name?” and it clearly expects the user to type a response here. Once the user has entered a response, this data is immediately assigned (put into) to the variable called <strong>name</strong>.</p><p>However, note that we have four ways in which was can display (print) this data. The first wayon line 4 is a simple <strong>print (name)</strong> command — nothing crazy there.</p><p>Line 5 features the + operator we saw previously. This creates string concatenation — it joins strings together, and it requires you to judiciously insert a space into your string in order to display properly. This is why my executed code displays as ‘HelloSteve’ with no space.</p><p>Line 6 use a comma rather than a +. The comma is essentially a way of separating items in a string, and was used extensively in Python 2. It is perfectly respectable, and it handily inserts a space automatically when separating items, as you can see above.</p><p>Line 7 uses something known as <strong>string interpolation</strong> — and it is much more flexible than the other two because it allows you to position your variables much more easily than using + or ,. Essentially you are creating something known as a <strong>placeholder</strong> — the placeholder here is the <strong>{0}</strong> — and you then use the <strong>.format</strong> function to put the contents of the <strong>(name)</strong> variable into the placeholder. Since the name variable contains the word Steve, then Python looks at the string “Hello {0}”, it sees there is a magical item called a placeholder there, and it understands that it needs to look further ahead for a .format command. When it finds the .format command, it places the contents of the name variable into that little {0} place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/0*Ejd124eW140YGUvg" /></figure><p>Is this using a sledgehammer to crack a nut? Well in this case, yes, but that is only because this is a very simple case. Take this one with three variables. See how much easier, more elegant and more, well, Pythonic, it is to create three variables, assign them with values from input statements, and then display them using the {0} {1} and {2} placeholders?</p><p>Python tracks the order of the placeholders, and the order of the variables in the .format command, and inserts them very cleanly into the code. The smart money, on any code of complexity, is to use placeholders. This principle extends to arrays, or lists, in Python, and we will tackle that in the future. For now, placeholders should be your best friend.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6580f2053dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/python-fundamentals-5-placeholders-in-python-strings-c6580f2053dd">Python Fundamentals (5) — Placeholders in Python strings</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python fundamentals (4) — concatentation]]></title>
            <link>https://medium.com/hackernoon/python-fundamentals-4-concatentation-6caaf8d3a0fa?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/6caaf8d3a0fa</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Sat, 24 Nov 2018 20:07:11 GMT</pubDate>
            <atom:updated>2018-11-24T20:07:11.207Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://medium.com/p/552032810de3?source=your_stories_page---------------------------">Python fundamentals (4) — Concatentation</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*PvJ3V_EoEQZDGLj1rfVt-w.png" /></figure><p>We saw previously that Python is able to combine the + operator with a string, in order to display a message on the screen. For example this code will print the word “Hello “ and will then print whatever is inside the <strong>name</strong> variable alongside it. This is known as <strong>string concatenation</strong>.</p><p>Note the necessity to include a “ “ space character in order for the print function not to just combinewordsinanunreadableway.</p><p>However, as in many programming languages, there are multiple ways to do things like this within Python. Concatenation in fact creates each string in memory, and then takes all of the strings it has memorised and combines them to form a new string — which is not very efficient in memory terms. It is also pretty picky about what it will combine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*RyjEjsx1ShnV6aXdOkGz3g.png" /></figure><p>Ah seriously Python, why the error here?! Python only likes concatenating strings — and the number <strong>2</strong> here is, well, a number. Python is telling us this because we have a <strong>TypeError</strong> — the item <strong>2 </strong>must be a string, not an <strong>int</strong>eger. So we could do this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*JyGOYbfPPCs-6epyHMN0NA.png" /></figure><p>Here we are converting the number 2 into a <strong>str</strong> — into a <strong>string</strong> datatype. Python is entirely comfortable with this now, but it is a bit of a bind. Consider this more real-world code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*UUhQz5lg2vXJJFkmitvSZg.png" /></figure><p>You would think that you need a <strong>str</strong> here to change the number you have typed in from being a number, into being a string. However, sneakily if you use the <strong>input</strong> command, Python already converts everything into a string for you. This is both very useful and also quite annoying because it can catch newbies off guard.</p><p>The rule of using concatenation is — only use it when you know that your variables, or your datatypes, are strings. If necessary, convert them to strings with <strong>str</strong>. Or, consider alternatives — which is exactly what will do next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6caaf8d3a0fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/python-fundamentals-4-concatentation-6caaf8d3a0fa">Python fundamentals (4) — concatentation</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python fundamentals (3) — handling variables]]></title>
            <link>https://medium.com/hackernoon/python-fundamentals-3-handling-variables-552032810de3?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/552032810de3</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Tue, 06 Nov 2018 23:41:02 GMT</pubDate>
            <atom:updated>2018-11-06T23:41:02.300Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Python fundamentals (3) — handling variables</strong></h3><p>There are many metaphors for variables in Python. One could view a <strong>variable </strong>as something like a bucket, into which you can place data. So the bucket called <strong>age</strong> could have the value of <strong>12</strong> — but, crucially, because it is a variable, it’s value can change to <strong>13</strong> or any other number at any point.</p><p>In truth, most quantities that we use in a programming language can have values that change, and these quantities are variables (the opposite of which is a <strong>constant</strong>, but more on that another time). A variable in Python has an identifier, and the Pythonesque way of thinking of this is (note the lower case):</p><p><em>identifier = value</em></p><p>So for example: <strong><em>age </em></strong><em>= </em><strong><em>13</em></strong></p><p>…has <strong>age</strong> as the identifier, in this case a variable, and <strong>13</strong> as the value. Another example:</p><p><strong>name </strong>= <strong>input </strong>(“What is your name?”)</p><p>Here, the identifier (variable) is <strong>name, </strong>and the value that has been <strong>assigned </strong>to this variable is…ah, well, that is in fact another command within Python called <strong>input</strong>. The input command asks Python to issue the user with some text, such as “What is your name?”, and to await a response that the user types in on the keyboard. So in this case, the text that the user types in will be assigned to the variable called name.</p><p>Let’s flesh this out a little.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*hHStoxKCgww4pg6uU8r5JQ.png" /></figure><p>As you can see here, the first line of code simply prints “Hello, world.”. The name = input line displays the message “Please enter your name”), then stores what the user types. It then assigns this thing that it has stored to the variable <strong>name</strong>. In this case it stored the word ‘Steve’ and assigned it to the variable. Just for good measure, it then printed what is inside the variable (the word ‘Steve’), and then it strung together a message to the user, by using a + operator. This is something called <strong>concatenation</strong> and will be explored next. Simple really!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=552032810de3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/python-fundamentals-3-handling-variables-552032810de3">Python fundamentals (3) — handling variables</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python fundamentals (2) — saving Python programs as files]]></title>
            <link>https://medium.com/hackernoon/python-fundamentals-2-saving-python-programs-as-files-a7932d4dfe85?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7932d4dfe85</guid>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Tue, 06 Nov 2018 22:41:02 GMT</pubDate>
            <atom:updated>2018-11-06T22:41:02.161Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Python fundamentals (2) — saving Python programs as files</strong></h3><p>IDLE has a mode in which the user can write multiple lines of code, save them in a file, and execute them whenever he/she chooses. This is, well, pretty handy if you are programming:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hquBR03PXaM5a9-JzO1ZNA.png" /></figure><p>Here you can see that I am in a New File (right window)- and that the executed code is running in the left window. Quirk of Python — writing 17 + 9 and 67–14 is absolutely fine; it returns no error message. However it does not display in the shell (also known as the console*) — you need to actually issue Python with a <strong>print</strong> command in order to see the results of the calculation. So Python will obediently hold onto the results of calculations — possibly storing them in variables or as arrays or something — but will steadfastly keep hold of them until you issue a display command such as print.</p><p>The New File window is where you start to really get to grips with the <strong>interpreter</strong>. An interpreter in a programming language is a facility that allows you to program, save the code, and run the code. An interpreter will work its way through the code line by line, and it will not produce any executable (.exe) object code without any prompting. For that you will need a compiler, but that is for another discussion. Either way, with the New File interpreter, you can start to get to grips with proper programming.</p><p>*Nothing to do with Xboxes or PS4s. Unlucky.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7932d4dfe85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/python-fundamentals-2-saving-python-programs-as-files-a7932d4dfe85">Python fundamentals (2) — saving Python programs as files</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Fundamentals  [The One Minute Version]]]></title>
            <link>https://medium.com/hackernoon/python-fundamentals-the-one-minute-version-919b17ae4785?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/919b17ae4785</guid>
            <category><![CDATA[python-fundamentals]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Fri, 02 Nov 2018 16:39:21 GMT</pubDate>
            <atom:updated>2018-11-02T16:39:21.562Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Python Fundamentals [The One Minute Version]</strong></h3><p>Python truly is the language of the moment. It is the world’s fastest-growing programming language — used by YouTube, Dropbox, Spotify, Netflix and even the CERN LHC; and since Michael Gove disapplied the ICT curriculum programs back in 2012, Python has become the de rigueur choice of Computing teachers in the UK and beyond. Take the statement:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9yd2cG8XMCn8UDL4i8jEQ.png" /></figure><p>For various reasons it is one of the fundamental laws of programming that the first program you write is one which says ‘Hello’ to the entire world. Job done here via something called the <strong>shell</strong> — which is an interactive window within an Integrated DeveLopment Environment called IDLE.*</p><p>You can see here that the initial message tells me which version of IDLE I am running (version 3.6.2), gives me a date and time of when it was released, and informs me that it is running on Windows 32, although it is in fact at 64-bit program. I can also see from the chevrons <strong>(&gt;&gt;&gt;</strong>) that I am in the shell, because the shell is where I can test out single lines of code and have the code execute right in front of me. To the great amusement of my students, I refer to the shell as my shell. As is mi shell. As in Michelle. :)</p><p>*Fans of Monty Python will soon cotton on to the naming convention here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=919b17ae4785" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/python-fundamentals-the-one-minute-version-919b17ae4785">Python Fundamentals  [The One Minute Version]</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence — a brief overview]]></title>
            <link>https://medium.com/hackernoon/artificial-intelligence-a-brief-overview-4459fd16408b?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/4459fd16408b</guid>
            <category><![CDATA[ai-overview]]></category>
            <category><![CDATA[ai-brief-overview]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[autonomy]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Mon, 23 Jul 2018 02:41:00 GMT</pubDate>
            <atom:updated>2018-07-23T02:41:00.930Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://hackernoon.com/artificial-intelligence/home">Artificial Intelligence</a> is the hot tech paradigm of the moment. It is the subject of a great deal of media hype, woes and mythologising. It seems worthwhile, therefore, to try to set the scene, look at some definitions, and see where it is currently being applied.</p><p>With regard to definitions, well that is unfortunately not quite so straightforward. Terms such as ‘neural network’, ‘deep learning’ and ‘general AI’ are used frequently in the media, and often interchangeably. The OED defines ‘artificial intelligence’ as ‘…the theory and development of computer systems able to perform tasks normally requiring human intelligence, such as visual perception, speech recognition, decision-making, and translation between languages.’</p><p>This does not feel terribly useful — defining a system as artificially intelligent if it can perform a task that would require regular human intelligence begs the question — what is intelligence from a human point of view?</p><p>The word ‘intelligence’ derives from the Latin terms <em>intelligentia </em>and <em>intellēctus</em>, which originally roughly translated as the ability to perceive, comprehend or understand something. More recently intelligence has served in many ways as a catch-all term to include the ability to demonstrate logical coherence, show reason, behave autonomously and to be adaptable to situations. The term has also widened through the work of Howard Gardner and others to include emotional intelligence, spatial awareness, kinesthetic intelligence, and many more aspects besides.</p><p>The short answer is that we have not been able to successfully pin ‘intelligence’ down to a tight definition, and this is as one might expect also the case with ‘artificial intelligence’.</p><p>Therefore, we can apply ‘artificial intelligence’ to fields as wide as computer audio or visual recognition, self-driving vehicles, robots that can respond autonomously to their environments, recommendations of films via Netflix, and financial analysis. What does seem to set the bar for an ‘artificially intelligent’ system is some aspect of autonomy — some ability to perform a task without a human operative constantly intervening — and a demonstration of adaptability, as in a system which can learn to change and work towards improving its performance, by learning from its own experiences.</p><p>The adaptability element mentioned above is what gives rise another very fashionable term — ‘Machine Learning.’ Machine learning enables systems to use algorithmic techniques in order to progressively improve upon their performance. The algorithms make predictions on data and are able to modify their predictions based on the eventual outcomes. A simple example would be the use of spam filtering tools built within Gmail — the algorithms observe instances of spam messages, and they make predictions as to whether incoming email messages constitute spam or not. This technique has evolved over time, from a fairly traditional rule-based system, where the Google anti-spam team would derive rules that would match individual spam patterns, to a machine-learning approach using TensorFlow data matching principles that mean that Gmail is constantly learning and re-learning precisely what constitutes spam. This automation is much less labour-intensive than using a human solution, and it is far more effective in terms of spam emails detected, and the speed with which they are found and blocked.</p><p>Artificial Intelligence, then, appears in some ways to mirror human intelligence. In some ways. And in some circumstances. It usually involves a degree of autonomy and adaptability, and the term is used across a huge number of different computing and non-computing disciplines. It is however, constantly shifting and being redefined, and being applied in a range of different, unexpected circumstances.</p><p>Just like human intelligence, funnily enough.</p><ul><li><a href="https://www.blog.google/products/g-suite/how-machine-learning-g-suite-makes-people-more-productive/">How machine learning in G Suite makes people more productive</a></li><li><a href="https://www.tensorflow.org/">TensorFlow</a></li><li><a href="https://hackernoon.com/artificial-intelligence/home">Artificial Intelligence (AI) - Hacker Noon</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4459fd16408b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/artificial-intelligence-a-brief-overview-4459fd16408b">Artificial Intelligence — a brief overview</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[General vs Narrow AI]]></title>
            <link>https://medium.com/hackernoon/general-vs-narrow-ai-3d0d02ef3e28?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d0d02ef3e28</guid>
            <category><![CDATA[general-vs-narrow-ai]]></category>
            <category><![CDATA[general-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[narrow-ai]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Mon, 04 Jun 2018 08:51:00 GMT</pubDate>
            <atom:updated>2018-06-04T08:51:00.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*eorAcUnjL_3wPxS08j2JFA.jpeg" /></figure><p>Narrow AI is where we have been. General AI is where we are going. Narrow AI refers to AI which is able to handle just one particular task. A spam filtering tool, or a recommended playlist from Spotify, or even a self-driving car — all of which are sophisticated uses of technology — can only be defined via the term ‘narrow AI’. Even Watson, IBM’s media-friendly supercomputer which can beat human experts at Jeopardy! — whilst swallowing most of Wikipedia in the process — can only be known as an example of ‘narrow AI.’ It so happens that Watson uses an expert-system approach, combined with machine learning and natural language processing, in order to be very impressive within the field of beating humans at Jeopardy! It is also to be noted that Watson is branching out into the fields of medicine and law. Nevertheless, Watson remains, for the time being, decidedly narrow, and, perhaps a little uncharitably, rather weak. Weak AI in this sense is the situation in which an AI system displays a certain degree of intelligence in a particular field, but it remains firmly and squarely very much a computer system that performs highly specialised tasks for humans, within that narrow field.</p><p>General AI — strong AI — is something altogether more sophisticated. This refers to a system which is able to cope with any generalised task which is asked of it, much like a human. The ideal of General AI is that the system would possess the cognitive abilities and general experiential understanding of its environments that we humans possess, coupled with the ability to process this data at much greater speeds than mortals. It follows that the system would then become exponentially greater than humans in the areas of knowledge, cognitive ability and processing speed — giving rise to a very interesting species-defining moment in which the human species are surpassed by this (now very) strong AI entity.</p><p>This scenario would then give rise to one of many different potential outcomes. One of which would be what Raymond Kurzweil, Google’s Director of Engineering, dubs ‘Singularity.’ In Kurzweil’s view, by 2029 an AI system will pass — with flying colours — a traditional Turing Test, and will achieve human-level intelligence. By 2045 he predicts that technological Singularity will occur, in which humans will be able to connect their neocortex to some form of storage system — most likely cloud-based or possibly dna-connected — and will be able to merge this neocortex with AI-driven amplifiers. In essence the AI entities will merge with human consciousness, bringing huge benefits to the cognitive power of the human species.</p><p>There is also some fascinating research which delves into the world of quantum mechanics — the theory from Sir Roger Penrose and Stuart Hameroff that brain waves, and indeed consciousness itself, derives from quantum-level vibrations within the microtubules of the brain. Quantum events, themselves controversial, were previously seen to be too delicate and susceptible to degradation for this theory to hold sway within the scientific community. However recent research led by Anirban Bandyopadhyay in Japan, and Roderick G. Eckenhoff, MD, at the University of Pennsylvania, points to the existence of quantum effects within microtubules. The field of Quantum Computing, itself in its infancy, could potentially one day be aligned to that of AI, and it is not unreasonable to postulate that quantum-computing-powered AI entities would mimic human brain function much more closely than was perhaps previously thought possible.</p><p>Of course for every idealistic futuristic prediction, there is an equivalent pessimistic perspective, and the Doomsday scenario of an ultimately omniscient AI entity which presides over the human race, deciding our fate, is a familiar enough trope in modern culture.</p><p>Remaining firmly rooted in present day reality, we can state this — General AI, Strong AI, AGI — whatever we dub it — is beyond our reach at the moment. However many hundreds of thousands of small, super-specialist narrow AI systems are currently in use, and their use will increase exponentially in the coming years. This technological snowball will impact current human beings, in terms of convenience, social acceptedness, medicine, education, privacy, employment, economics, ethics and many more besides. As a species we need to plough the right path through narrow AI entities, and we need to consider the impact they are having on us, right here, right now, and what we want them to do, say, and think, in the future.</p><ul><li><a href="http://www.mind.ilstu.edu/curriculum/searle_chinese_room/searle_chinese_room.php">Searle and the Chinese Room Argument</a></li><li><a href="https://www.sciencedaily.com/releases/2014/01/140116085105.htm">Discovery of quantum vibrations in &#39;microtubules&#39; inside brain neurons supports controversial theory of consciousness</a></li><li><a href="http://rsta.royalsocietypublishing.org/content/356/1743/1869">Quantum computation in brain microtubules? The Penrose-Hameroff &#39;Orch OR&#39; model of consciousness</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d0d02ef3e28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/general-vs-narrow-ai-3d0d02ef3e28">General vs Narrow AI</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Edges closer to forcing users to use just one browser. Theirs.]]></title>
            <link>https://medium.com/hackernoon/microsoft-edges-closer-to-forcing-users-to-use-just-one-browser-theirs-7270fbbd69a2?source=rss-70211c3cb746------2</link>
            <guid isPermaLink="false">https://medium.com/p/7270fbbd69a2</guid>
            <category><![CDATA[edge]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mr Trask]]></dc:creator>
            <pubDate>Sat, 24 Mar 2018 20:51:00 GMT</pubDate>
            <atom:updated>2018-03-24T20:51:00.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtCnkGuURmTsn3S4yZV-RQ.png" /></figure><p>As a fledgling web developer back at the turn of the century, I worked at a major telecoms company in London. The machine I used in the year 2001 was an 800 Mhz Pentium, running Windows 95, and the browser war back then was between Internet Explorer, and Netscape Navigator. Even then the browser of choice for web developers, and many casual users, was Netscape. For me the reason was that the first web browser I had ever used was X-Mosaic on a Sun SPARCstation, and given that Marc Andreessen had then moved on from Mosaic to Netscape, I had a certain degree of customer loyalty. More importantly, Netscape just…worked better. For me, and for many others, Netscape beat IE into a distant second.</p><p>However, Microsoft woke up to the fact that the Internet might just be an interesting technological development, and in 1995 Bill Gates <a href="https://www.justice.gov/sites/default/files/atr/legacy/2006/03/03/20.pdf">ordered a full-scale assault</a> on Netscape Navigator. The assault was abetted in no small measure by the fact that IE shipped with the Windows 95 OS, and it therefore became the de facto browsing software for the millions of users who bought Windows operating systems. For those who were not around then, let me outline this here — the practice was outrageous, monopolising, and subject to a colossal anti-trust lawsuit that at one point threatened to actually formally split the mega-corporation of Microsoft into constituent elements. By the time I was developing websites in 2001, the case had been tentatively settled, but the tech backlash to such practices ultimately led to a whole raft of other browsers coming to the fore, including Opera, Google Chrome (ouch) and, of course, the phoenix from the ashes of Navigator in the form of Firefox.</p><p>This historical background only serves to increase my dismay when I read that Microsoft are going down a similar route now. In a Windows Insider release note dated from 16th March, alongside codecs like HEVC and tweaks to Windows Defender, is the announcement of a change where “links clicked on within the Windows Mail app will open in Microsoft Edge, which provides the best, most secure and consistent experience on Windows 10 and across your devices.” According to the Guardian, the mail links will default to opening in Edge, thus ignoring any other default apps or browsers.</p><p>The historical battle of the browsers, and the proliferation of free productivity apps, leads me to conclude that the majority of users tend to want free choice over which services are opened in which particular item of software. Edge has something akin to 4% market share. Firefox has three times more, and Chrome bats everybody out of the virtual water with 67% of the market. The consumer has already chosen. Microsoft’s incredibly aggressive pushing of the original IE did work, but its consequences were chastening for Microsoft itself, and you would have thought that they had learned their lesson.</p><p>So, really, Microsoft, think again. With your browser war history, anti-trust lawsuits, and standing in the tech community, just don’t. Let other browsers open mail within their own platforms, and pour your resources and talent and time into creating a browser that is really slim, speedy and functional. The way Google Chrome used to be.</p><p>References:</p><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//www.justice.gov/sites/default/files/atr/legacy/2006/03/03/20.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/f24034c4fef2a605a2b721be57b89551/href">https://medium.com/media/f24034c4fef2a605a2b721be57b89551/href</a></iframe><ul><li><a href="https://www.theguardian.com/global/2015/mar/22/web-browser-came-back-haunt-microsoft">Netscape: the web browser that came back to haunt Microsoft</a></li><li><a href="https://www.seattletimes.com/business/microsoft/long-antitrust-saga-ends-for-microsoft/">Long antitrust saga ends for Microsoft</a></li><li><a href="https://blogs.windows.com/windowsexperience/2018/03/16/announcing-windows-10-insider-preview-build-17623-for-skip-ahead/">Announcing Windows 10 Insider Preview Build 17623 for Skip Ahead</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7270fbbd69a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/microsoft-edges-closer-to-forcing-users-to-use-just-one-browser-theirs-7270fbbd69a2">Microsoft Edges closer to forcing users to use just one browser. Theirs.</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>