<?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 Nicolas Padula on Medium]]></title>
        <description><![CDATA[Stories by Nicolas Padula on Medium]]></description>
        <link>https://medium.com/@nahog?source=rss-a85d1270ccc8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NY8JmJ62OalfEkTl.</url>
            <title>Stories by Nicolas Padula on Medium</title>
            <link>https://medium.com/@nahog?source=rss-a85d1270ccc8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:35:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nahog/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[Raspberry Pi Pico dead serial]]></title>
            <link>https://nahog.medium.com/raspberry-pi-pico-dead-serial-5f57e622020f?source=rss-a85d1270ccc8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f57e622020f</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[raspberry-pi-pico]]></category>
            <category><![CDATA[serial]]></category>
            <category><![CDATA[microcontrollers]]></category>
            <category><![CDATA[micropython]]></category>
            <dc:creator><![CDATA[Nicolas Padula]]></dc:creator>
            <pubDate>Tue, 09 Mar 2021 11:56:42 GMT</pubDate>
            <atom:updated>2021-03-09T11:56:42.819Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZJGDtisfxnqVFeUvGb32Q.jpeg" /></figure><p>While tinkering with the Raspberry Pi Pico micro-controller (doing a <a href="https://github.com/nahog/pico-tetris">Tetris clone</a>) it seems that I did something bad to the pico and broke it. Starting with BOOTSEL to flash images worked fine, but the serial interface was dead.</p><p>I was playing with some multi-core code, and I saved to the main.py, not sure if it was that or not, but basically after that my pico didn’t accepted any extra MicroPython command. I re-flashed it with the MicroPython image and it did nothing, I tried flashing it with basic C images like the blink example and that worked fine, but if I flash the MicroPython image back, the pico not only didn’t respond, but also the serial port was not available to even stop the program.</p><p>I even tried flashing the hello_world serial and that didn’t brought the interface back.</p><p><strong>On linux:</strong> /dev/ttyACM0 didn’t appear</p><p><strong>On windows:</strong> The COM3 didn’t appear and I even got an error that the USB device was broken</p><p>As is hard to brick a micro-controller, I started thinking that maybe it was some garbage left on the flash that it wasn’t cleared with new images, so I started looking for ways to clear the flash.</p><p>Hopefully when looking in the <a href="https://github.com/raspberrypi/pico-examples">really good pico examples</a>, I found an example that seems to do exactly that. It required some config, but I ended up generating my UF2 file to flash, that once flashed will erase the flash completely and stop.</p><p>I did that, and then flashed the MicroPython UF2 image again, and voila, the pico (and its serial interface) were back online again.</p><p>Obviously I lost all the files stored on the pico, but I was fine with that, my pico was back, and now I can continue playing with it.</p><p>If you need it, here is the precompiled version of the <a href="https://1drv.ms/u/s!Av-NA0ktmbdwgZgNzSCB0JflS0cjbA?e=zgngmt">flash_nuke.uf2</a> program.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f57e622020f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sky (IE) Channels Analysis]]></title>
            <link>https://nahog.medium.com/sky-ie-channels-analysis-1aeb24b7b8e9?source=rss-a85d1270ccc8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aeb24b7b8e9</guid>
            <category><![CDATA[sky]]></category>
            <category><![CDATA[epg]]></category>
            <category><![CDATA[cable-tv]]></category>
            <category><![CDATA[google-docs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Nicolas Padula]]></dc:creator>
            <pubDate>Mon, 02 Jul 2018 12:10:17 GMT</pubDate>
            <atom:updated>2018-07-02T12:10:17.113Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day I was looking into the Sky channels offer, just to see which channels are available and which of them are in HD or just repeats of other channels, I looked a little bit on the web and as I didn’t find anything I started doing my own analysis that I share here for everyone.</p><p>A couple of things:</p><ul><li>This analysis was made on July 1, 2018 (the channel guide may change)</li><li>This is for Sky (cable provider) in Ireland</li><li>The method I used to extract the data may not work in the future</li></ul><p><em>NOTE: If you just want to see a nice Google Docs spreadsheet with the results of the analysis go to the end of the article.</em></p><p><strong>How I did it</strong></p><p>Sky provides an online EPG at <a href="http://epg.sky.com/demo/landing/tvguide">http://epg.sky.com/demo/landing/tvguide</a></p><p>If you inspect the network panel in chrome while the page is loading, there is a channels request (GET <a href="http://epg.sky.com/api/index.php/channels">http://epg.sky.com/api/index.php/channels</a>) that returns a json with all the channel guide in a machine understandable format with the following format:</p><pre>[{c: [2002, 101, 12, 0], lcn: “BBC One London” pt: “F” t: “BBC One Lon”}, …]</pre><p>I assumed that the second item in the “c” array is the actual channel number, than “lcn” means “Long Channel Name”, “pt” means “Type: P for Paid, F for Free” and “t” means “Title or Short Channel Name”.</p><p>Then I copied the json from the request and saved in a variable in the console</p><pre>var channels = &lt;&lt;pasted data&gt;&gt;;</pre><p>After that I added underscore to the console to do some simple processing:</p><pre>async function loadScript(url) {<br>  let response = await fetch(url);<br>  let script = await response.text();<br>  eval(script);<br>}<br>loadScript(  &quot;https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore.js&quot;)</pre><p>And process the variable to clean up the “c” array:</p><pre>_.forEach(channels, c =&gt; { c.c = c.c[1]; });</pre><p>At last, I exported the edited channels variable to json and opened it on <a href="http://json2table.com/">http://json2table.com/</a> to get an HTML table of it that I can copy to Google Docs to continue my processing:</p><pre>JSON.stringify(channels);</pre><p>With the table on Google Docs I proceeded to do a couple of things on it:</p><ul><li>Create a new column from 1–999 to find gaps in channel numbers</li><li>Combine the “Long Channel Name” and “Short Channel Name” into one column with just the name</li><li>Check for “HD” or “+1” on the name and add two columns with that info</li><li>Clean up the F/P column with the proper “Free, Paid or Unknown” value</li><li>Generate a new “Unique Name” column manually eliminating HD vs non-HD versions, or standard vs +1 versions, or location specific versions (like BBC One London vs BBC One Wales)</li><li>Add filters and sorting</li><li>Add some summary values like: total channels, unique channels, HD channels, +1hr channels, free channels, paid channels and unknown channels (this are channels that does not specify if they are free or paid)</li></ul><p><strong>That’s all here is the spreadsheet on Google Docs with all the data:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IftCE6fwFNEFV78bM609OA.jpeg" /><figcaption>Screenshot of the Google Docs spreadsheet</figcaption></figure><p><a href="https://docs.google.com/spreadsheets/d/1b282EyvTc3qw9uuXEB6iEN7o0UVmaWKf0MXPROoVQjw">https://docs.google.com/spreadsheets/d/1b282EyvTc3qw9uuXEB6iEN7o0UVmaWKf0MXPROoVQjw</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aeb24b7b8e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>