pig-monkey.com - osinthttps://pig-monkey.com/2020-06-11T21:14:25-07:00Monitoring Legible News2020-01-31T00:00:00-08:002020-06-11T21:14:25-07:00Pig Monkeytag:pig-monkey.com,2020-01-31:/2020/01/monitoring-legible-news/<p>I was sent a link to <a href="https://legiblenews.com/">Legible News</a> last November by someone who had read my post on the now-defunct <a href="/2016/07/breaking/">Breaking News</a>. Legible News is a website that simply scrapes headlines from <a href="https://en.wikipedia.org/w/index.php?title=Portal:Current_events">Wikipedia&rsquo;s Current Events</a> once per day and presents them in a legible format. This seems like a …</p><p>I was sent a link to <a href="https://legiblenews.com/">Legible News</a> last November by someone who had read my post on the now-defunct <a href="/2016/07/breaking/">Breaking News</a>. Legible News is a website that simply scrapes headlines from <a href="https://en.wikipedia.org/w/index.php?title=Portal:Current_events">Wikipedia&rsquo;s Current Events</a> once per day and presents them in a legible format. This seems like a simple thing, but is <a href="https://zainamro.com/notes/unbearable-news">far beyond the capabilities of most news organizations today</a>.</p> <p>Legible News provides no update notification mechanism. I addressed this by plugging it into <a href="/2019/12/urlwatch/">my urlwatch system</a>. Initially this presented two problems: the email notification included the HTML markup, which I didn&rsquo;t care about, and it included both the old and new content of every changed line &ndash; effectively sending me the news from today and yesterday.</p> <p>The first problem was easily solved by using the <code>html2text</code> filter provided by <a href="https://github.com/thp/urlwatch">urlwatch</a>. This strips out all markup, which is what I thought I wanted. I ran this for a bit before deciding that I did want the output to contain links. What I really wanted was some sort of <code>html2markdown</code> filter.</p> <p>I also realized I did not just want to be sent new lines, but every line anytime there was a change. If the news yesterday included a section titled &ldquo;Armed conflicts and attacks&rdquo;, and the news today included a section with the same title, I wanted that in my output despite it not having changed.</p> <p>I solved both of these problems using the <code>diff_tool</code> argument of urlwatch. This allows the user to pass in a special tool to replace the default use of <code>diff</code> to generate the notification output. The tool will be called with two arguments: the filename of the previously downloaded version of the URL and the filename of the current version. I wrote a simple script called <code>html2markdown.sh</code> which ignores the first argument and simply passes the second argument to <a href="https://pandoc.org">Pandoc</a> for formatting. </p> <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span> <span class="normal">2</span> <span class="normal">3</span> <span class="normal">4</span> <span class="normal">5</span> <span class="normal">6</span> <span class="normal">7</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="ch">#!/bin/sh</span> pandoc --from html <span class="se">\</span> --to markdown_strict <span class="se">\</span> --reference-links <span class="se">\</span> --reference-location<span class="o">=</span>block <span class="se">\</span> <span class="nv">$2</span> </code></pre></div></td></tr></table></div> <p>This script is used as the <code>diff_tool</code> in the urlwatch job definition.</p> <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span> <span class="normal">2</span> <span class="normal">3</span> <span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">url</span><span class="w"></span> <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Legible News</span><span class="w"></span> <span class="nt">url</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">https://legiblenews.com/</span><span class="w"></span> <span class="nt">diff_tool</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">/home/pigmonkey/bin/html2markdown.sh</span><span class="w"></span> </code></pre></div></td></tr></table></div> <p>The result is the latest version of Legible News, nicely converted to Markdown, delivered to my inbox every day. The output would be even better if Legible News used semantic markup &ndash; specifically heading elements &ndash; but it is perfectly serviceable as is.</p> <p>After I built this I discovered that <a href="https://feed43.com/3068865104604836.xml">somebody had created an RSS feed for Legible News</a> using a service called <a href="http://feed43.com/">Feed43</a>.</p>I don't know anything about, or have much interest in, high-frequency trading.2019-01-06T00:00:00-08:002019-01-06T12:31:53-08:00Pig Monkeytag:pig-monkey.com,2019-01-06:/2019/01/shortwave-trading/<p>But some of the technology behind it is fascinating. This past summer the <a href="https://sniperinmahwah.wordpress.com/">Sniper in Mahwah</a> blog published <a href="https://sniperinmahwah.wordpress.com/2018/05/07/shortwave-trading-part-i-the-west-chicago-tower-mystery/">a</a> <a href="https://sniperinmahwah.wordpress.com/2018/06/07/shortwave-trading-part-ii-faq-and-other-chicago-area-sites/">four</a> <a href="https://sniperinmahwah.wordpress.com/2018/07/13/shortwave-trading-part-iii-fourth-chicago-site-east-coast-patent-regulation-and-farmer-kevin-mystery/">part</a> <a href="https://sniperinmahwah.wordpress.com/2018/07/16/shortwave-trading-part-iv-sleuthing-examples-research-tools-techniques-deputies-wanted/">series</a> investigating the use of shortwave radio as a low latency link in high-frequency trading. I&rsquo;d call it the best piece of hacker-tourism since <a href="https://www.wired.com/1996/12/ffglass/">Mother Earth Mother Board …</a></p><p>But some of the technology behind it is fascinating. This past summer the <a href="https://sniperinmahwah.wordpress.com/">Sniper in Mahwah</a> blog published <a href="https://sniperinmahwah.wordpress.com/2018/05/07/shortwave-trading-part-i-the-west-chicago-tower-mystery/">a</a> <a href="https://sniperinmahwah.wordpress.com/2018/06/07/shortwave-trading-part-ii-faq-and-other-chicago-area-sites/">four</a> <a href="https://sniperinmahwah.wordpress.com/2018/07/13/shortwave-trading-part-iii-fourth-chicago-site-east-coast-patent-regulation-and-farmer-kevin-mystery/">part</a> <a href="https://sniperinmahwah.wordpress.com/2018/07/16/shortwave-trading-part-iv-sleuthing-examples-research-tools-techniques-deputies-wanted/">series</a> investigating the use of shortwave radio as a low latency link in high-frequency trading. I&rsquo;d call it the best piece of hacker-tourism since <a href="https://www.wired.com/1996/12/ffglass/">Mother Earth Mother Board</a>, but I think it&rsquo;s probably the only piece of hacker-tourism since Mother Earth Mother Board. It doesn&rsquo;t have much competition.</p>I track disasters via RSOE EDIS.2018-12-01T00:00:00-08:002019-11-04T19:02:10-08:00Pig Monkeytag:pig-monkey.com,2018-12-01:/2018/12/rsoe-edis/<p>Operated by the <a href="http://www.rsoe.hu">Hungarian National Association of Radio Distress-Signalling and Infocommunications</a> (RSOE), the <a href="http://hisz.rsoe.hu/">Emergency and Disaster Information Service</a> (EDIS) collects disaster information from around the globe, and disseminates it using the <a href="https://en.wikipedia.org/wiki/Common_Alerting_Protocol">Common Alerting Protocol</a>. They offer the data via <a href="http://hisz.rsoe.hu/alertmap/index2.php">web map</a>, <a href="http://hisz.rsoe.hu/alertmap/database/?pageid=about_email">email</a>, <a href="http://hisz.rsoe.hu/alertmap/database/?pageid=about_rss">RSS</a>, and <a href="https://play.google.com/store/apps/details?id=org.rsoe.android.edis_pms">Android application</a> (an <a href="https://hisz.rsoe.hu/">API</a> is also …</p><p>Operated by the <a href="http://www.rsoe.hu">Hungarian National Association of Radio Distress-Signalling and Infocommunications</a> (RSOE), the <a href="http://hisz.rsoe.hu/">Emergency and Disaster Information Service</a> (EDIS) collects disaster information from around the globe, and disseminates it using the <a href="https://en.wikipedia.org/wiki/Common_Alerting_Protocol">Common Alerting Protocol</a>. They offer the data via <a href="http://hisz.rsoe.hu/alertmap/index2.php">web map</a>, <a href="http://hisz.rsoe.hu/alertmap/database/?pageid=about_email">email</a>, <a href="http://hisz.rsoe.hu/alertmap/database/?pageid=about_rss">RSS</a>, and <a href="https://play.google.com/store/apps/details?id=org.rsoe.android.edis_pms">Android application</a> (an <a href="https://hisz.rsoe.hu/">API</a> is also available, though keys are apparently restricted to government organizations). There is a <a href="http://hisz.rsoe.hu/alertmap/database/?pageid=about_icons">wide range of &ldquo;disasters&rdquo;</a> included, but the normalized protocol supports filtering the events based on criteria such as scope, severity, and urgency. I use the Android application, configured to only show emergency-level alerts.</p> <p>For earthquakes, I supplement RSOE EDIS with the <a href="https://earthquake.usgs.gov/ens/">USGS Earthquake Notification Service</a>, which provides regional-based subscriptions. I subscribe to email alerts for earthquakes greater than 6.0 for all of the US, and greater than 4.0 for my local area.</p>Breaking News2016-07-22T00:00:00-07:002019-11-04T19:02:24-08:00Pig Monkeytag:pig-monkey.com,2016-07-22:/2016/07/breaking/<p>In the past I&rsquo;ve struggled to find a way to be alerted to breaking news, were &ldquo;breaking news&rdquo; is defined as things that matter<sup class="footnote-ref" id="fnref:matter"><a rel="footnote" href="#fn:matter" title="see footnote">1</a></sup>.</p> <p>For some time, <a href="https://play.google.com/store/apps/details?id=com.scannerradio_pro&amp;hl=en">Scanner Radio Pro</a> was my preferred solution. The Android application uses <a href="http://www.broadcastify.com/">Broadcastify</a> to stream feeds of police and EMS radio (among …</p><p>In the past I&rsquo;ve struggled to find a way to be alerted to breaking news, were &ldquo;breaking news&rdquo; is defined as things that matter<sup class="footnote-ref" id="fnref:matter"><a rel="footnote" href="#fn:matter" title="see footnote">1</a></sup>.</p> <p>For some time, <a href="https://play.google.com/store/apps/details?id=com.scannerradio_pro&amp;hl=en">Scanner Radio Pro</a> was my preferred solution. The Android application uses <a href="http://www.broadcastify.com/">Broadcastify</a> to stream feeds of police and EMS radio (among other sources). While a police scanner is always a good thing to have, the application is relevant here because of its notification support. It will push notifications when a channel has a certain number of users listening to it. The application default threshold is 3500 listeners for all channels, but it also allows you to configure per-channel thresholds. I set the threshold to 200 listeners for San Francisco police and EMS channels. I also have the threshold set to 200 for any station within 50 miles of my current location. Those two are redundant when I&rsquo;m in San Francisco, but it means that if I&rsquo;m travelling I&rsquo;ll receive alerts for wherever I am, and I&rsquo;ll be able to stay up to date on what&rsquo;s happening back in the city.</p> <p>The alerts simply tell me that a large number of people are listening to a certain channel, which indicates that something is probably going on in that location. It doesn&rsquo;t tell me what is happening, but prompts me to figure that out for myself. When <a href="https://en.wikipedia.org/wiki/2016_shooting_of_Dallas_police_officers">the shooting started in Dallas a couple weeks ago</a>, I was alerted immediately that something was happening due to the unusually high number of people listening to the Dallas PD channel. When I saw that, I performed a quick search for Dallas news and discovered the reason.</p> <p>I&rsquo;ve had good success with these alerts. It has worked well for shootings like in Dallas. The alerts kept me informed of disruptions in the area this past winter when the Super Bowl was in town. Unfortunately, most of the Broadcastify feeds and listeners are US-focused, so it tends not to help with events outside of the country. There were no alerts for <a href="https://en.wikipedia.org/wiki/2016_Nice_attack">the attack in Nice, France</a>.</p> <p>More recently I&rsquo;ve begun supplementing Scanner Radio Pro with the conveniently named <a href="http://www.breakingnews.com/">Breaking News</a>. They are basically a modern wire service, collating data from traditional news sources, social media channels like Twitter, and direct user submissions. Human editors manage the service, which does seem to take care of some of the cruft. Events are grouped into topics, and topics can be muted or subscribed to. Their mobile application supports push notifications for global major stories, as well as stories based on geographic proximity to the device&rsquo;s current location.</p> <p>I&rsquo;ve noticed that the application does have an impact on my battery (even with the &ldquo;battery saver&rdquo; option enabled), but I think it&rsquo;s worth it for the service provided. They provide alerts for a wider breadth of topics than the police scanner, and provide immediate context for the alert. If they provide an alert for an event that I don&rsquo;t care about, I can mute the topic and never hear about it again. It&rsquo;s rare that I need to do this, as they seem judicious in their use of push notifications.</p> <p>Scanner Radio Pro and the Breaking News application live on the home screen of my phone in a directory labelled &ldquo;Intelligence&rdquo;. Along with applications like <a href="/2016/02/radar/">Flightradar24</a> and <a href="http://www.marinetraffic.com/">Marine Traffic</a> (like Flightradar24 but for boats), they help provide context for and build awareness of the world around me.</p> <div id="footnotes"> <h2>Notes</h2> <ol> <li id="fn:matter"><a rev="footnote" href="#fnref:matter" class="footnote-return" title="return to article">&crarr;</a> Not celebrities. Not sports.</li> </ol> </div>Russia's latest spyplane is broadcasting its flight home from Syria.2016-02-29T00:00:00-08:002018-12-01T18:48:16-08:00Pig Monkeytag:pig-monkey.com,2016-02-29:/2016/02/opsec/<p>The Aviationist <a href="http://theaviationist.com/2016/02/29/job-done-russias-most-advanced-spyplane-is-returning-home-after-deployment-in-syria/">pointed out</a> that the plane had its ADS-B transponder on, allowing it to be <a href="/2016/02/radar/">tracked on Flightradar24</a>. The Tu-214R also <a href="http://theaviationist.com/2016/02/15/tu214r-deployed-to-syria/">broadcast its deployment to Syria on the 15th</a>.</p> <p><img src="https://i.imgur.com/V32FsaN.png" width="800" alt="LX9203 flight path"></p> <p>An older article on The Aviationist <a href="http://theaviationist.com/2014/10/13/war-2-adsb-opsec/">discusses the impact of ADS-B and MLAT tracking on military craft</a>. Somewhat related is …</p><p>The Aviationist <a href="http://theaviationist.com/2016/02/29/job-done-russias-most-advanced-spyplane-is-returning-home-after-deployment-in-syria/">pointed out</a> that the plane had its ADS-B transponder on, allowing it to be <a href="/2016/02/radar/">tracked on Flightradar24</a>. The Tu-214R also <a href="http://theaviationist.com/2016/02/15/tu214r-deployed-to-syria/">broadcast its deployment to Syria on the 15th</a>.</p> <p><img src="https://i.imgur.com/V32FsaN.png" width="800" alt="LX9203 flight path"></p> <p>An older article on The Aviationist <a href="http://theaviationist.com/2014/10/13/war-2-adsb-opsec/">discusses the impact of ADS-B and MLAT tracking on military craft</a>. Somewhat related is a <a href="http://www.defenseone.com/ideas/2016/02/look-out-special-operators-syria-internet-has-spotted-you-and-s-problem/126065/">recent Defense One article on using commercial satellite imagery to identify airstrip expansion</a>.</p>Watch the Sky2016-02-04T00:00:00-08:002019-11-04T19:02:53-08:00Pig Monkeytag:pig-monkey.com,2016-02-04:/2016/02/radar/<p>I learned about <a href="https://www.flightradar24.com">Flighradar24</a> last year. They offer a live flight radar, using <a href="https://www.flightradar24.com/how-it-works">data provided by ADS-B on top of Google Maps</a>.</p> <p>Immediately after the <a href="https://en.wikipedia.org/wiki/2015_San_Bernardino_attack">San Bernadino shooting</a> in December, a Cessna 182 with the registration number <a href="http://www.flightradar24.com/data/airplanes/n404kr/">N404KR</a> flew circles around the area for hours. This plane is <a href="http://www.aviationdb.com/Aviation/Aircraft/4/N404KR.shtm">registered to …</a></p><p>I learned about <a href="https://www.flightradar24.com">Flighradar24</a> last year. They offer a live flight radar, using <a href="https://www.flightradar24.com/how-it-works">data provided by ADS-B on top of Google Maps</a>.</p> <p>Immediately after the <a href="https://en.wikipedia.org/wiki/2015_San_Bernardino_attack">San Bernadino shooting</a> in December, a Cessna 182 with the registration number <a href="http://www.flightradar24.com/data/airplanes/n404kr/">N404KR</a> flew circles around the area for hours. This plane is <a href="http://www.aviationdb.com/Aviation/Aircraft/4/N404KR.shtm">registered to OBR Leasing</a>, which is <a href="https://www.techdirt.com/articles/20150602/10125531189/ap-uncovers-more-than-100-fbi-spy-plane-flights-originating-shell-companies-located-virginia.shtml">one of the shell companies the FBI uses for surveillance</a>. The ability to observe these types of flights is interesting, and sometimes useful.</p> <p>The airspace above San Francisco is usually fairly dead. From what I&rsquo;ve seen, most commercial jets heading in and out of SFO or OAK avoid flying directly over the city. This week I&rsquo;ve been watching the radar more frequently than usual. With the Super Bowl in town, I assumed there would be more interesting traffic. I use the radar to look for suspicious flights, which to me means smaller craft with circular paths.</p> <p><img src="https://i.imgur.com/644jXAK.png" width="800" alt="N2462G flight path"></p> <p><a href="https://www.flightradar24.com/data/airplanes/n2462g">N2462G</a> has what must be a mind-numbingly boring job. Every day, the Cessna 206 takes off from the Concord area (possibly <a href="https://en.wikipedia.org/wiki/Buchanan_Field_Airport">Buchanan</a>) and flies circles around the Embarcadero and Treasure Island. The aircraft is <a href="http://www.aviationdb.com/Aviation/Aircraft/2/N2462G.shtm">registered</a> to an <a href="http://wingedvision.com">aerial sports broadcasting company</a>, so I assume they&rsquo;re just shooting footage of <a href="http://www.sfbaysuperbowl.com/super-bowl-city">Super Bowl City</a>.</p> <p>More interesting are the government flights. Today during lunch I watched <a href="https://www.flightradar24.com/data/airplanes/n6241l/#8b9f200">N6241L</a>. The Beech Super King took off from Mountain View, flew up the coast, and made circles around the Golden Gate. A quick search showed this to be <a href="http://www.aviationdb.com/Aviation/Aircraft/6/N6241L.shtm">registered to the Department of Homeland Security</a>. The radar isn&rsquo;t limited to fixed wing craft. <a href="https://www.flightradar24.com/data/airplanes/n3933a/#8ba0ed3">N3933A</a>, a Eurocopter Squirrel also <a href="http://www.aviationdb.com/Aviation/Aircraft/3/N3933A.shtm">registered to DHS</a>, was flying down the coast at about the same time.</p> <p><img src="https://i.imgur.com/lMGqrfF.png" width="800" alt="N6241L flight path"></p> <p>There are of course flights that don&rsquo;t show up on the radar, but the service provides an idea of what&rsquo;s going on in the sky. I think the <a href="https://play.google.com/store/apps/details?id=com.flightradar24pro&amp;hl=en">Android application</a> is a good buy. Combined with a <a href="https://play.google.com/store/apps/details?id=com.scannerradio_pro&amp;hl=en">police scanner</a>, you can begin to turn a smartphone into a mobile intelligence gathering toolkit. It is useful for locating excitement, whether you&rsquo;re trying to avoid it, get into it, or just be aware of it.</p>