<?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 Gary Nelson on Medium]]></title>
        <description><![CDATA[Stories by Gary Nelson on Medium]]></description>
        <link>https://medium.com/@gary-64544?source=rss-232897529f6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*k_mYg-GLI4EubECZxlh9fQ.jpeg</url>
            <title>Stories by Gary Nelson on Medium</title>
            <link>https://medium.com/@gary-64544?source=rss-232897529f6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:19:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gary-64544/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[Building beautiful Excel tables from survey data with Python]]></title>
            <link>https://towardsdataprocessing.com/building-beautiful-excel-tables-from-survey-data-with-python-eceba972a8a1?source=rss-232897529f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/eceba972a8a1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[tabulation]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[market-research]]></category>
            <dc:creator><![CDATA[Gary Nelson]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 10:11:56 GMT</pubDate>
            <atom:updated>2022-12-05T10:11:56.291Z</atom:updated>
            <content:encoded><![CDATA[<h4>How we used Python to create highly customised and branded survey data Excel tables.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XZTfttTTBbFgQk-s4wGT2g.png" /><figcaption>output from Python table creation</figcaption></figure><p>Until now we’ve mainly used our Python library, <a href="https://tally.datasmoothie.com/">Tally</a> (the enterprise focused cousin of the open-source Quantipy library), for <strong>data processing</strong> (cleaning, weighting, recoding, etc.). Recently we have extended the capabilities of Tally to allow it to <strong>produce beautiful Excel tables</strong>, giving researchers access to high quality outputs for their analysis.</p><p>.</p><p>💡<em>A working Notebook that recreates this example is </em><a href="https://github.com/datasmoothie/tally-demonstration/blob/main/Build%20Large%20Excel%20Tables%20UNICOM.ipynb"><em>available here</em></a><em>. You will need a Tally API key to run it — to get one email info at datasmoothie.com.</em></p><p><em>Everything that is shown in the examples below can also be achieved using Quantipy in combination with other open-source libraries. However, Tally, has inherent properties and methods to make the process faster and easier.</em></p><h3>Step 1: Load your survey data</h3><p>First, install the Tally Python client with pip install datasmoothie-tally-client.</p><p>Then, import the Tally library, add your API key (email info at datasmoothie.com if you need one) and select your data.</p><pre>import tally<br><br>dataset = tally.DataSet(api_key=YOUR_KEY)<br>dataset.use_unicom(&#39;data/Example_Museum.mdd&#39;, &#39;data/Example_Museum.ddf&#39;)</pre><p>💡<em>This post uses UNICOM mdd/ddf files, but Tally can also connect to UNICOM’s API and most other major survey systems like Forsta, Nebu, etc.</em></p><h3>Step 2: Decide what variables to include in your tables</h3><p>The client has helper functions for you to explore your data, like variables, meta, codes, variable_text to show you a list of your variables, and show you meta data, list of codes/answers and the label for a given variable, respectively.</p><pre>variables = dataset.variables()<br><br>banner_vars = [&#39;gender&#39;, &#39;education&#39;, &#39;age&#39;]<br><br># add all the single choice variables if they&#39;re not in the banner/top<br>stub_vars = [i for i in variables[&#39;single&#39;] if i not in banner_vars]<br><br># add multi choice/delimited set variables<br>stub_vars = stub_vars + list(variables[&#39;delimited set&#39;])</pre><h3>Step 3: Decide on contents, look and feel</h3><p>We’ve loaded our data, and we’ve decided what to include in our tables. Now we create the Excel file.</p><p>First, we define how our build should look like. All options can be set on a build, sheet or table level. For example, you could add descriptive statistic calculations only on particular sheets, or a single table within a sheet.</p><pre>build = tally.Build(<br>    name=&quot;Museum project&quot;, <br>    subtitle=&quot;Annual research conducted by agency X&quot;,<br>    default_dataset=dataset,<br>    table_of_contents=True,<br>    logo=&#39;datasmoothie-logo.png&#39;<br>)<br><br>build.options.set_sig_test_levels(0.05) # for sigtests<br>build.options.set_ci([&#39;c%&#39;]) # show only percentages, can also show counts</pre><p>💡<em>For a full list of options that can be set on a build, see the documentation.</em></p><h3>Step 4: Build and save the Excel file</h3><p>Finally, we create sheets and add tables to them. For this file, we only have one table per sheet, but we can have as many as we need.</p><pre>for stub in stub_vars:<br>    sheet = build.add_sheet(banner=banner_vars)<br>    sheet.add_table(stub={&quot;x&quot;:stub})<br><br>build.save_excel(&#39;Tables for Museum Project.xlsx&#39;)</pre><p>On your file system, you will now have an Excel file with sixty eight tables and an automatically generated and branded front page with a table of contents, which links to those sheets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eceba972a8a1" width="1" height="1" alt=""><hr><p><a href="https://towardsdataprocessing.com/building-beautiful-excel-tables-from-survey-data-with-python-eceba972a8a1">Building beautiful Excel tables from survey data with Python</a> was originally published in <a href="https://towardsdataprocessing.com/">towards data processing</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Ways in Which the Mac Mini M1 Doesn’t Work]]></title>
            <link>https://gary-64544.medium.com/5-ways-in-which-the-mac-mini-m1-doesnt-work-dbb03c546575?source=rss-232897529f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbb03c546575</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[m1-chip]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[mac-mini]]></category>
            <dc:creator><![CDATA[Gary Nelson]]></dc:creator>
            <pubDate>Tue, 12 Jan 2021 11:13:14 GMT</pubDate>
            <atom:updated>2021-01-12T11:13:14.073Z</atom:updated>
            <content:encoded><![CDATA[<p>The premise of the Mac Mini M1, like most mini PCs, is that you provide the peripherals and they provide the power. In this sense, the Mac Mini M1 is a massive fail.</p><figure><img alt="Three mini PCs, left to right: Mac Mini, HP Chromebox, Intel Nuc" src="https://cdn-images-1.medium.com/max/1024/1*RWReUYgfl4eeQ_jocauvgA.jpeg" /></figure><h4>1. You can’t really bring your own peripherals</h4><p>According to Apple, I should be able to use my Bluetooth keyboard and mouse with the Mac Mini. Trouble is, I can’t. Firstly, there’s the fact that the Bluetooth connection on the Mac Mini is terrible: it drops out without warning or does other weird things like not registering the left mouse click anymore (reboot to resolve). Then there’s the keyboard support. My keyboard is UK ISO PC layout. It’s a great, and not inexpensive, keyboard. Nevertheless, there is no way for me to get The Mini to properly recognise it. The main keys are fine, and the dedicated windows keys can be remapped, but there is no configuration in which the key to the left of the ‘1’ key and the key two to the right of the ‘L’ key can be correctly mapped. As I said, the layout is ISO compliant so this is an Apple issue. This problem would be resolved if I went out and bought a dedicated Mac keyboard, but then that kind of defeats the object of a mini PC.</p><h4>2. It doesn’t support dual monitors</h4><p>I plugged my two, matching, Asus HD monitors into the Mac Mini and immediately started to see problems. Sometimes the Mini would sleep and wake and everything was fine. Sometimes it would sleep and wake and only recognise the monitor plugged into the HDMI port. Sometimes switching the monitor without a signal, off and on again would be enough to resolve it, sometimes not. Like most people in an abusive relationship, I blamed myself: I got new cables and then, reasoning that I was due an upgrade anyway, I got two new 2K monitors. Same issues. I went on the Apple Forum and realised that there are loads of people with the same issues as me (like me, most of them are busy blaming themselves).</p><h4>3. There is something wrong with the Thunderbolt ports</h4><p>This is probably linked to the dual monitor issue, but when the computer goes to sleep and, sometimes, when using different peripherals such as an external SSD, the port would briefly stop working. This is not the biggest of issues, but when you have an SSD plugged in and it is doing scheduled backups, it can cause problems. I got countless warnings from the OS about properly ejecting the drive.</p><h4>4. It has terrible I/O</h4><p>I have three mini PCs: an Intel Nuc, an HP Chromebox and the Mac Mini M1. I love the mini PC form factor as it perfectly fits my requirements. The Mac mini is by far the worst in terms of I/O. I’m not talking about the number of ports or even the type, I’m talking about the placement. The HP Chromebox has the power button, earphone port, card reader and two USB 2 ports on the front as well as USB (including C) and HDMI ports on the back. Apple has decided that everything should be on the back. Wanna plug headphones in? Scrabble around on the back. Wanna switch it on? Scrabble around on the back. Wanna plug in a thumb drive? Scrabble around on the back. The need to constantly fumble with the device to turn it on or plug something in is the epitome of design over function. It’s just plain dumb.</p><h4>5. It’s not that mini</h4><p>Compared to my other mini PCs, the Mac Mini M1, is huge. What’s odd is that, unlike the other two, the Mini is fan-less. There is no need for all of that extra wasted space.</p><h4>Mine’s going back</h4><p>I’m returning the Mini. It’s great that Apple has managed to revolutionise and invigorate the Chip business, the M1&#39;s performance to power consumption is truly phenomenal. Nevertheless, the have failed to get the basics right. Bluetooth doesn’t work properly and neither do the Thunderbolt ports. The design is all aesthetics over usability.</p><p>I have no doubt that Apple will get there, but in the words of Marques Brownlee: “This ain’t it chief”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbb03c546575" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why all Big Tech Hardware Manufacturing Sucks.]]></title>
            <link>https://gary-64544.medium.com/why-all-big-tech-hardware-manufacturing-sucks-d96375b4d439?source=rss-232897529f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d96375b4d439</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Gary Nelson]]></dc:creator>
            <pubDate>Wed, 16 Dec 2020 11:56:59 GMT</pubDate>
            <atom:updated>2020-12-16T11:56:59.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>A plague on all your mouses</h3><figure><img alt="Three mini PCs: left to right, Mac mini, ChromeBox, Intel Nuc." src="https://cdn-images-1.medium.com/max/1024/1*VTASBh6dVE3ArwcQ5iu4Xw.jpeg" /></figure><p>I’m OS agnostic. Not many people are, but I am. Above you will see three machines that I have worked on this year: Mac Mini M1 (Mac OS); HP ChromeBox (Chrome OS) and an Intel Nuc (Windows 10). I really like the Mini PC form factor and all of the above devices have been more than powerful enough for the work that I do. My main tool of choice, outside GMail and Slack, is Microsoft’s VSCode and the experience is pretty much the same regardless of OS (although I find the fact that the application menu is not attached to the application window in Mac OS, a little annoying). My story is not really related to the above devices, as they are each pretty good at what they do and I would recommend each as a powerful basis for any workstation setup: I just want to make it clear that I’m not a fanboy.</p><p>My journey started a year ago when I went into Microsoft’s flagship London store and purchased a Surface Laptop 3 (15&quot; i7). Great looking machine and the addition of Windows Subsystem for Linux (WSL), meant that it was perfect for my needs. I decided to trade up from a Goggle PixelBook to gain a little more power and a lot less bezel (The PixelBook is still one of the best devices I have ever owned in terms of form factor and typing experience). This is where things started to go wrong.</p><p>I noticed that the Surface fan would start spinning up a very low load levels and that it was incredibly loud (coming from the fan-less PixelBook, this was a real shocker). I contacted the store, who put me through to support, who told me to do some updates. I did the updates and after another couple of months, the situation really had not improved. You may be thinking that fan noise is something easily taken care of by some noise cancelling headphones (I have some, it isn’t) but one of the real issues here is that that fan noise was accompanied by throttling and that throttling meant that I was rarely getting the performance I paid for. I contacted the store again and after another series of pointless updates and diagnostics I was offered a refurbished replacement (I declined but they sent it anyway).</p><p>I asked for my money back, which is part of my rights under UK consumer law. A quick Google search had shown me that I was not the only one with the problem and so I felt that I would be better off getting a different machine without the problems.This is when things got interesting. Microsoft denied there was a general issue (despite me sending numerous links) but, worse, kept telling me that they didn’t need to give me a refund under their terms and conditions. They genuinely believe that they are above the law.</p><p>As an interim measure, fearing that the Surface would fail, I purchased a Pixel Slate i5 from eBay. I had a backup of my PixelBook Linux environment and this allowed me to get up and running in minutes. Although the Slate was rightly panned at launch, it is actually a fantastic device now that Google’s software has caught up with the hardware. The iPad Pro is great if you are a content creator, but if you are a developer, the Slate is the much better device or, at least it was. You see, many of the Slate i5s have developed a somewhat fatal problem where they stop being able to write to the drive. A quick search will show you that the problem is widespread. But Google, having consigned The Slate (and, for that matter, it’s inherently flawed keyboard case) to the attic like a Dorian Gray portrait in the hopes of keeping its image pristine, has no interest in owning the problem and if you are out of warranty, you are out of luck.</p><p>So, I now find myself on my third device and OS of the year. I’m back on a Mac after a twelve year hiatus. I’ve been let down by multi-billion dollar companies who err to treating their loyal customers with contempt instead of investigating and owning the hardware problems that they have.</p><p>In case your takeaway from this is that I should have stuck with Apple, then I should explain that the reason for that Mac hiatus is that my top-of-the-range iMac’s screen stopped working twelve years ago after just two years of ownership, it had a widely reported problem with the graphics card. I took the device to the store, they obviously claimed ignorance of any generic issue and explained that the repair would cost almost as much as a new device but, by way of consolation, they would be: “…happy to scrap it for you for free”.</p><p>Thus, whether it’s Microsoft, Google or Apple until they change their ways, I’m wishing a: “plague on all their mouses”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d96375b4d439" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ActionScript foreshadowed TypeScript]]></title>
            <link>https://javascript.plainenglish.io/how-actionscript-foreshadowed-typescript-149cdb764de9?source=rss-232897529f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/149cdb764de9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[flash]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Gary Nelson]]></dc:creator>
            <pubDate>Tue, 28 Apr 2020 06:37:49 GMT</pubDate>
            <atom:updated>2020-04-28T06:37:49.307Z</atom:updated>
            <content:encoded><![CDATA[<h4>Macromedia Flash Always had a Strong Sense of Class</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*qzldSEbPM1pyLcQwR6tGzQ.jpeg" /><figcaption>Joshua Davis’ 2002 Book</figcaption></figure><p>For me, the current debate around the benefits of moving from JavaScript to TypeScript, invokes a strong feeling of <em>déjà vu. </em>I really have heard it all before.</p><p>My route into programming and the JavaScript world is a little different to that of most people. Around the turn of the Millennium, I worked as a pre-sales consultant at a large data analytics company and wanted to find a better way to present our data collection capabilities. We made software for online surveys and, at the time, web based forms were very boring and utterly devoid of style. Amazingly, given that this was 2000, the software engineers had had the foresight to implement an API.</p><p>I’d been a Flash hobbyist since its very first days. Although it has become fashionable to look upon Flash as an abomination in the history of the development of the web, I still look upon it fondly. Whilst it is easy to write it off as just terrible banner ads and pointless and frustrating UI/UX; the internet equivalent of the 30 minute guitar solo, it should be remembered that Flash <strong><em>was</em></strong> web page visualisation at the time. Browsers were limited to dull approximations of typeset pages. Flash, made web pages come alive and provided the first playground for art and data visualisation. I would spend hours fixating on the fractal spacescapes of <a href="https://en.wikipedia.org/wiki/Joshua_Davis_(designer)">Joshua Davis</a> (for me, the godfather of web page visualisation) and his <a href="https://joshuadavis.com/">Praystation</a> website.</p><p>But what, you might be thinking, has this got to do with TypeScript? Well, although Flash started off as a timeline based animation tool with a near limitless canvas, it quickly added a scripting language. In the early days that scripting language was pretty basic but it proved incredibly popular with the user base and they started hacking it and pushing it to its limits. This prompted Macromedia (later to be bought by Adobe) to add more features and then, with the release of Flash Player 5, ActionScript 1.0 based (like JavaScript and TypeScript) on the ECMAScript standard.</p><p>ActionScript allowed me to interact with the Web API of the survey software. It allowed me to render a survey web form as an interactive game where the possible responses were represented as Space Invader type aliens and shooting them would register as a radio button click that could be sent back to the server. Again, although this now sounds incredibly gimmicky (and it was), you should remember that this is happening in late 2000. This was completely new to most people.</p><pre><strong>function</strong> addNumbers(originalNumber:Number, anyNumber:Number):Number{<br>    <strong>return</strong> (originalNumber + anyNumber);<br>}</pre><p>Take a look at the above, it is not TypeScript. It’s now 2004 and it’s ActionScript 2.0. ActionScript 2.0 introduced variable typing and a much stronger implementation of ECMA standards. The debate that is now being held around JavaScript vs. TypeScript, is incredibly close to the one that was held around ActionScript 1.0 vs ActionScript 2.0. People who had taken the time to learn ActionScript 1.0 argued that strong typing slowed them down; they didn’t like having to have their code in separate *.as files or having to import them. In the end, the debate became moot. ActionScipt 2.0 morphed into ActionScript 3.0 (nearly indistinguishable from TypeScript). The benefits of good practice, readability, collaboration and compilation won out in the end. As an aside, I suspect that JavaScript will eventually become strongly typed.</p><p>Thanks for reading and, when you think of Flash in the future, think of its contribution to the evolution of the visualised web, think of its legacy and above all, think of its Class.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=149cdb764de9" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-actionscript-foreshadowed-typescript-149cdb764de9">How ActionScript foreshadowed TypeScript</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>