In an unexpected but happy twist, I’ve joined the core team at Pioneer Square Labs, a startup studio and venture fund in Seattle. I’ve updated my “now” page with more details.
{
"type": "entry",
"author": {
"name": null,
"url": "https://davepeck.org/micro/",
"photo": null
},
"url": "https://davepeck.org/2018/05/12/psl/",
"published": "2018-05-12T17:25:00-07:00",
"content": {
"html": "<p>In an unexpected but happy twist, I\u2019ve joined the core team at <a href=\"https://www.psl.com/\">Pioneer Square Labs</a>, a startup studio and venture fund in Seattle. I\u2019ve updated <a href=\"https://davepeck.org/now/\">my \u201cnow\u201d page</a> with more details.</p>",
"text": "In an unexpected but happy twist, I\u2019ve joined the core team at Pioneer Square Labs, a startup studio and venture fund in Seattle. I\u2019ve updated my \u201cnow\u201d page with more details."
},
"post-type": "note",
"_id": "3903156",
"_source": "2781"
}
Icro, written by Martin Hartl, is the first third-party app for the micro.blog network. Nice.
{
"type": "entry",
"author": {
"name": null,
"url": "https://davepeck.org/micro/",
"photo": null
},
"url": "https://davepeck.org/2018/05/11/icro/",
"published": "2018-05-11T10:33:00-07:00",
"content": {
"html": "<p><a href=\"http://www.manton.org/2018/05/icro-1-0.html\">Icro</a>, written by <a href=\"https://micro.blog/hartlco\">Martin Hartl</a>, is the first third-party app for the <a href=\"https://micro.blog/\">micro.blog</a> network. Nice.</p>",
"text": "Icro, written by Martin Hartl, is the first third-party app for the micro.blog network. Nice."
},
"post-type": "note",
"_id": "3903157",
"_source": "2781"
}
{
"type": "entry",
"published": "2018-05-05T21:30:54+00:00",
"url": "https://cleverdevil.io/2018/time-for-some-family-theatre",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/7374ff2cb8ee8766d50301dc6e650d76eecf2adf634bb654c24e6729117db396.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/992879336314343424"
],
"name": "Time for some family theatre \ud83c\udfad\u2602",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "298060",
"_source": "10"
}
{
"type": "entry",
"published": "2018-05-05T18:07:25+00:00",
"url": "https://cleverdevil.io/2018/bike-riding-beauty",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/9f9a0f481783a090bc8662ff0b181c6a87e889a097b0278a36bcda75a7d6a6e0.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/992828129973547009"
],
"name": "Bike riding beauty \ud83d\udeb2\ud83d\ude0d",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "298061",
"_source": "10"
}
Time flies: Micro.blog just turned one. It’s clear that Manton Reece and Jean MacDonald have been hard at work. It’s worth reading about the interesting new developments over the past year. Congrats, all!
{
"type": "entry",
"author": {
"name": null,
"url": "https://davepeck.org/micro/",
"photo": null
},
"url": "https://davepeck.org/2018/05/01/micro-blog-turns-one/",
"published": "2018-05-01T13:10:00-07:00",
"content": {
"html": "<p>Time flies: <a href=\"https://micro.blog/\">Micro.blog</a> just turned one. It\u2019s clear that <a href=\"http://manton.org/\">Manton Reece</a> and <a href=\"https://macgenie.micro.blog/\">Jean MacDonald</a> have been hard at work. It\u2019s worth reading about the <a href=\"http://www.manton.org/2018/05/one-year-of-micro-blog.html\">interesting new developments over the past year</a>. Congrats, all!</p>",
"text": "Time flies: Micro.blog just turned one. It\u2019s clear that Manton Reece and Jean MacDonald have been hard at work. It\u2019s worth reading about the interesting new developments over the past year. Congrats, all!"
},
"post-type": "note",
"_id": "3903158",
"_source": "2781"
}
{
"type": "entry",
"author": {
"name": null,
"url": "http://tinysubversions.com/",
"photo": null
},
"url": "https://twitter.com/homemoviesbot",
"published": "2018-05-01T00:00:00+00:00",
"content": {
"html": "<p>A bot that tweets clips from the Prelinger Home Movies Archive on the Internet Archive. (<a href=\"https://twitter.com/homemoviesbot\">full item here</a>)</p>",
"text": "A bot that tweets clips from the Prelinger Home Movies Archive on the Internet Archive. (full item here)"
},
"name": "[Project] Home Movies Bot",
"post-type": "article",
"_id": "3903024",
"_source": "2776"
}
{
"type": "entry",
"published": "2018-04-28T04:38:27+00:00",
"url": "https://cleverdevil.io/2018/trashbot-and-friends-arrived-today",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/0df3932211a0944a0a14ed6acb8bf21fedb51be9dd674fc5fc332261c3ed2944.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/990087835016482816"
],
"name": "TrashBot and Friends Arrived Today",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "273593",
"_source": "10"
}
{
"type": "entry",
"published": "2018-04-26T16:16:18+10:00",
"rsvp": "yes",
"url": "https://unicyclic.com/mal/2018-04-26-RSVP_yes_to_IndieWeb_Summit_2018_-",
"in-reply-to": [
"https://2018.indieweb.org/"
],
"content": {
"text": "RSVP yes to IndieWeb Summit 2018 :-)",
"html": "RSVP yes to <a class=\"u-in-reply-to\" href=\"https://2018.indieweb.org/\">IndieWeb Summit 2018</a> :-)"
},
"author": {
"type": "card",
"name": "Malcolm Blaney",
"url": "https://unicyclic.com/mal",
"photo": "https://aperture-media.p3k.io/unicyclic.com/bdad1528925264a15ecd0bdb92bdc5836d965b0d5f4db8797489eec259fa32de.png"
},
"_id": "269411",
"_source": "243"
}
I was flying home yesterday, and one of the habits I've got into is loading a bunch of content into my reader before putting my phone in flight mode. Unfortunately I got distracted early into the flight and brushed a button on my phone, which needlessly triggers loading the previous page in the browser.
I store content in local storage, so it's pretty annoying to know it's still there but I can't access it. Adding support for offline mode and service workers to my website just moved up the priority list slightly.
{
"type": "entry",
"published": "2018-04-26T11:05:18+10:00",
"url": "https://unicyclic.com/mal/2018-04-26-I_was_flying_home_yesterday_and_one_of_the_habits",
"category": [
"itches",
"indieweb"
],
"content": {
"text": "I was flying home yesterday, and one of the habits I've got into is loading a bunch of content into my reader before putting my phone in flight mode. Unfortunately I got distracted early into the flight and brushed a button on my phone, which needlessly triggers loading the previous page in the browser.\n\n\nI store content in local storage, so it's pretty annoying to know it's still there but I can't access it. Adding support for offline mode and service workers to my website just moved up the priority list slightly.",
"html": "I was flying home yesterday, and one of the habits I've got into is loading a bunch of content into my reader before putting my phone in flight mode. Unfortunately I got distracted early into the flight and brushed a button on my phone, which needlessly triggers loading the previous page in the browser.<br /><br />\nI store content in local storage, so it's pretty annoying to know it's still there but I can't access it. Adding support for offline mode and service workers to my website just moved up the priority list slightly."
},
"author": {
"type": "card",
"name": "Malcolm Blaney",
"url": "https://unicyclic.com/mal",
"photo": "https://aperture-media.p3k.io/unicyclic.com/bdad1528925264a15ecd0bdb92bdc5836d965b0d5f4db8797489eec259fa32de.png"
},
"_id": "269412",
"_source": "243"
}
{
"type": "entry",
"published": "2018-04-21T21:03:36+00:00",
"url": "https://cleverdevil.io/2018/saturday-sun-day",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/50e543fb670ea119ad1331774100c928a9b841fd03f38be6b5bc0a213a056797.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/987799039092707328"
],
"name": "Saturday sun day \ud83c\udf1e",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "252625",
"_source": "10"
}
{
"type": "entry",
"author": {
"name": null,
"url": "http://benjaminturner.me/blog/",
"photo": null
},
"url": "http://benjaminturner.me/blog/mit-net-neutrality-panel/",
"published": "2018-04-20T03:59:00+00:00",
"content": {
"html": "<p>{{ photo 39 }}</p>\n<p>Tonight I had the good foturne to attend a panel on Net Netrality hosted by Massachussetts Senator Ed Markey at the Wong Auditorium in Cambridge. The panel included former FCC Chairman <a href=\"https://en.wikipedia.org/wiki/Tom_Wheeler\">Tom Wheeler</a> (the good one), Harvard Law Professor <a href=\"https://en.wikipedia.org/wiki/Susan_P._Crawford\">Susan Crawford</a>, CEO of <a href=\"https://www.carbonite.com/\">Carbonite</a>, <a href=\"https://twitter.com/mhsali\">Mohamad Ali</a>, and <a href=\"https://en.wikipedia.org/wiki/Tim_Berners-Lee\">Sir Tim Berners-Lee</a> (invented the internet).</p>\n<p>{{ photo:small 40 }}</p>\n<p>The panel served as the launch of Senator Markey's one month campaign to get Republicans on board with voting to overturn the current FCC's removal of net neutrality protections. He's calling this #onemorevote as currently the 49 Democratic Senators and Republican Senator Susan Collins have given their support. 51 votes are required.</p>\n<p>The discussion included comparisions from history such as when railroads used access to their networks to charge small farmers more than large agricultural companies to ship goods. As a result of electric monopolies, FDR broke up electric companies and regulated prices, increasing the number of Americans able to access electricity.</p>\n<p>It's astonishing that over three quarters of American's have only one choice when it comes to an ISP. This is clearly a situation where competition is required, not only to prevent monopolies, but to stimulate competition between ISPs.</p>\n<p>It was ironic to attend this panel when elsewhere in the country, one of the days headlines read, <a href=\"https://arstechnica.com/tech-policy/2018/04/isps-should-charge-for-fast-lanes-just-like-tsa-precheck-gop-lawmaker-says/\">ISPs should charge for fast lanes-just like TSA Precheck</a> I think this analogy mistakes the role ISPs serve. It's fair game to charge for data that is used, just like a utility bills for water or electricity used. But no one would tolerate a utility arbitrarily slowing down water pressure to a trickle unless a customer paid more for higher pressure.</p>\n<p>Surprisingly, Burger King illustrates this well:</p>\n\n\n<p>My takeaway from the evening was that people should consider internet access a fundamental right. It's what the economy runs on and it creates jobs. It needs to be protected so it can continue to allow innovation to flow freely.</p>\n<p>It's going to take lots of calls to representatives in the next month to make the repeal successful, and it's important that it succeeds.</p>",
"text": "{{ photo 39 }}\nTonight I had the good foturne to attend a panel on Net Netrality hosted by Massachussetts Senator Ed Markey at the Wong Auditorium in Cambridge. The panel included former FCC Chairman Tom Wheeler (the good one), Harvard Law Professor Susan Crawford, CEO of Carbonite, Mohamad Ali, and Sir Tim Berners-Lee (invented the internet).\n{{ photo:small 40 }}\nThe panel served as the launch of Senator Markey's one month campaign to get Republicans on board with voting to overturn the current FCC's removal of net neutrality protections. He's calling this #onemorevote as currently the 49 Democratic Senators and Republican Senator Susan Collins have given their support. 51 votes are required.\nThe discussion included comparisions from history such as when railroads used access to their networks to charge small farmers more than large agricultural companies to ship goods. As a result of electric monopolies, FDR broke up electric companies and regulated prices, increasing the number of Americans able to access electricity.\nIt's astonishing that over three quarters of American's have only one choice when it comes to an ISP. This is clearly a situation where competition is required, not only to prevent monopolies, but to stimulate competition between ISPs.\nIt was ironic to attend this panel when elsewhere in the country, one of the days headlines read, ISPs should charge for fast lanes-just like TSA Precheck I think this analogy mistakes the role ISPs serve. It's fair game to charge for data that is used, just like a utility bills for water or electricity used. But no one would tolerate a utility arbitrarily slowing down water pressure to a trickle unless a customer paid more for higher pressure.\nSurprisingly, Burger King illustrates this well:\n\n\nMy takeaway from the evening was that people should consider internet access a fundamental right. It's what the economy runs on and it creates jobs. It needs to be protected so it can continue to allow innovation to flow freely.\nIt's going to take lots of calls to representatives in the next month to make the repeal successful, and it's important that it succeeds."
},
"name": "M.I.T. Net Neutrality Panel",
"post-type": "article",
"_id": "3903131",
"_source": "2780"
}
21 more...
Fun visit with family at my sister's lovely home in Decatur. Hot dogs, hamburgers, s'mores, and cousins!
{
"type": "entry",
"published": "2018-04-13T02:18:21+00:00",
"url": "https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/41aaba3a3a4a3566c63921e909bdc0cf5f8c9a2b0fffabbae1080c6b4ff75849.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/1f37624d4f0dfaaac4a81cf0409e659cfebccbfb353b0003445f1effa2030a22.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/d438bed7141f1c995820df00573793b7c1ab908c625ca2483f9254db7004c7cb.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/f0d0526a2752f64759d8f6abfb084374dbd3823c844074026b1b57865f725833.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/75cae55bd88097d57aa7acf850f06c1ed3c8f484d41c5df6889773e42714c44e.jpg"
],
"content": {
"text": "21 more...\n \n \n Fun visit\u00a0with family at my sister's lovely home in Decatur. Hot dogs, hamburgers, s'mores, and cousins!",
"html": "<a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/lacour-family-cookout-in-atlanta\">21 more...</a>\n \n \n <p>Fun visit\u00a0with family at my sister's lovely home in Decatur. Hot dogs, hamburgers, s'mores, and cousins!</p>"
},
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "221571",
"_source": "10"
}
{
"type": "entry",
"published": "2018-04-08T06:34:50+00:00",
"url": "https://cleverdevil.io/2018/camping-with-the-kiddos",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/83dd075920acc4a943c60a5e151b5149f3c04f86c02d667eab04327f0152717e.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/6ad9b8741e85ae619dd7319a3ac66ca0c92f959913f77bf2c4f723831a350fa7.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/c1e9ebc9d0276fbd93bb0a7b2e4f687f1c75afc7c0a5efbb1faea88a67d2509c.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/8713e08b7af71f39925f4949811829867fa90ef86f21f4985c71514cb5a1451f.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/58887c0161b2c16862b147e34ae57681c480ae8cb1b272fb0e72d987b997ea4a.jpg"
],
"content": {
"text": "2 more...",
"html": "<a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/camping-with-the-kiddos\">2 more...</a>"
},
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "202874",
"_source": "10"
}
I'm surprised that HTML5 support slipped through the cracks in PHP's DOM extension, but very glad Masterminds was there to cover for them. It's pretty easy to switch over and seems to be working well so far as a replacement HTML parser.
Only one quirk if you're not a composer fan, (the horror!) you need to write your own autoloader. That's fair enough given you're opting out of a controlled file system structure, and luckily it's super easy. Instead of including Mastermind's HTML5.php directly you just need your own snippet, something like:
<?php
include 'HTML5.php';
function html5_autoload($className) {
$file = 'library/' . str_replace('\', '/', $className) . '.php';
if (file_exists($file)) include $file;
}
spl_autoload_register('html5_autoload');
{
"type": "entry",
"published": "2018-04-06T13:54:25+10:00",
"url": "https://unicyclic.com/mal/2018-04-06-1455300078",
"category": [
"indieweb"
],
"content": {
"text": "I'm surprised that HTML5 support slipped through the cracks in PHP's DOM extension, but very glad Masterminds was there to cover for them. It's pretty easy to switch over and seems to be working well so far as a replacement HTML parser.\n\n\nOnly one quirk if you're not a composer fan, (the horror!) you need to write your own autoloader.\u00a0 That's fair enough given you're opting out of a controlled file system structure, and luckily it's super easy. Instead of including Mastermind's HTML5.php directly you just need your own snippet, something like:\n\n<?php\n\ninclude 'HTML5.php';\n\nfunction html5_autoload($className) {\n $file = 'library/' . str_replace('\\', '/', $className) . '.php';\n if (file_exists($file)) include $file;\n}\n\nspl_autoload_register('html5_autoload');",
"html": "I'm surprised that HTML5 support slipped through the cracks in PHP's DOM extension, but very glad <a href=\"https://github.com/Masterminds/html5-php\">Masterminds</a> was there to cover for them. It's pretty easy to switch over and seems to be working well so far as a replacement HTML parser.<br /><br />\nOnly one quirk if you're not a composer fan, (the horror!) you need to write your own autoloader.\u00a0 That's fair enough given you're opting out of a controlled file system structure, and luckily it's super easy. Instead of including Mastermind's HTML5.php directly you just need your own snippet, something like:\n<pre>\n<?php\n\ninclude 'HTML5.php';\n\nfunction html5_autoload($className) {\n $file = 'library/' . str_replace('\\', '/', $className) . '.php';\n if (file_exists($file)) include $file;\n}\n\nspl_autoload_register('html5_autoload');</pre>"
},
"author": {
"type": "card",
"name": "Malcolm Blaney",
"url": "https://unicyclic.com/mal",
"photo": "https://aperture-media.p3k.io/unicyclic.com/bdad1528925264a15ecd0bdb92bdc5836d965b0d5f4db8797489eec259fa32de.png"
},
"_id": "197048",
"_source": "243"
}
{
"type": "entry",
"author": {
"name": null,
"url": "http://tinysubversions.com/",
"photo": null
},
"url": "https://twitter.com/choppermemebot",
"published": "2018-04-06T00:00:00+00:00",
"content": {
"html": "<p>This is the \"American Chopper dialectic\" meme but with dialog snippets from the Cornell Movies-Dialog Corpus. (<a href=\"https://twitter.com/choppermemebot\">full item here</a>)</p>",
"text": "This is the \"American Chopper dialectic\" meme but with dialog snippets from the Cornell Movies-Dialog Corpus. (full item here)"
},
"name": "[Project] Chopper Meme Bot",
"post-type": "article",
"_id": "3903025",
"_source": "2776"
}
{
"type": "entry",
"published": "2018-04-04T18:02:24+00:00",
"url": "https://cleverdevil.io/2018/werner-dropping-some-knowledge",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/127699af810f86df7be0b96722519938762a2ed89dd67c2fc3994008da56a50a.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/00062afed162b1719a1a923fc758d0e4d2381d771e5bef2075424c4fc4e98d14.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/981592848264060929"
],
"name": "@Werner dropping some knowledge",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "190976",
"_source": "10"
}
What a nice welcome to the hotel! We had a fun email exchange before my arrival, and she surprised me with some treats in my room.
{
"type": "entry",
"published": "2018-04-03T22:49:49+00:00",
"url": "https://cleverdevil.io/2018/thanks-to-w-insider-sara-at-the-w-san-francisco",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/a663514af11fc604eefe4c01478eaf52545181e1802f8b56c53b92316a9d7be0.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/6632d5b47f547760a59c19f43c9fb4692f25c904709270ce189dbcba4bf34212.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/981302789975486464"
],
"content": {
"text": "What a nice welcome to the hotel!\u00a0We had a fun email exchange before my arrival, and she surprised me with some treats in my room.\u00a0",
"html": "<a href=\"https://cleverdevil.io/2018/thanks-to-w-insider-sara-at-the-w-san-francisco\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/thanks-to-w-insider-sara-at-the-w-san-francisco\"></a>\n \n <p>What a nice welcome to the hotel!\u00a0We had a fun email exchange before my arrival, and she surprised me with some treats in my room.\u00a0</p>"
},
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "188583",
"_source": "10"
}
{
"type": "entry",
"published": "2018-04-01T20:22:38+00:00",
"url": "https://cleverdevil.io/2018/happy-easter",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/5ee371dd43e6aedad1e8984ac29ad0d041364f7428c5bfef7a01961dd4e68e37.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/9da9d65fff3860708f08bdfa0093d8ed4ed25c073549fb1cbfcb0a879908008c.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/dcac52ab11ea78cade6cdc497941d84b3ef86772ceaea4185daf5f3d1cae3308.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/87dee97a81b4c40e83633139c12ddd4ab66f5cf60f281de4ae473323b81998a7.jpg",
"https://aperture-media.p3k.io/cleverdevil.io/0341c42d21d96381fd516ed70ce67f70974dc27c95444d610aac0ea64f7579e3.jpg"
],
"content": {
"text": "2 more...",
"html": "<a href=\"https://cleverdevil.io/2018/happy-easter\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/happy-easter\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/happy-easter\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/happy-easter\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/happy-easter\"></a>\n \n \n <a href=\"https://cleverdevil.io/2018/happy-easter\">2 more...</a>"
},
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "181496",
"_source": "10"
}
{
"type": "entry",
"published": "2018-03-30T20:10:41+00:00",
"url": "https://cleverdevil.io/2018/going-serverless-with-python-wsgi-apps",
"syndication": [
"https://twitter.com/cleverdevil/status/979815338085879809"
],
"name": "Going Serverless with Python WSGI Apps",
"content": {
"text": "I've been writing web applications and services in Python since the late 1990s, and enjoy it so much that I created the Pecan web application framework way back in 2010. Configuring and deploying Python web applications, especially WSGI compliant applications, is fairly straightforward, with great WSGI servers like Gunicorn and uWSGI, and excellent Apache integration via mod_wsgi. But, for many use cases, creating and maintaining one or more cloud servers creates unnecessary cost and complexity. Security patches, kernel upgrades, SSL certificate management, and more, can be a real burden.Since the creation of AWS Lambda, \"serverless\" has become a pretty popular buzzword. Could Lambda provide a way to deploy Python WSGI applications that helps reduce cost, complexity, and management overhead? First, let's consider what serverless really means.Introducing LambdaAWS Lambda is a cloud service that lets developers deploy and run code without provisioning or managing servers. Under the hood, there is of course still a server where code is run, but its existence is largely abstracted away. Lambda, and other services in the category, are likely better defined as \"functions as a service\" (FaaS).Lambda provides built-in Python support, and invoking Lambda functions can be done manually, or via an event triggered by an another AWS service, including Amazon S3, Amazon DynamoDB, and even Amazon Alexa, just to name a few.Lambda functions can also be invoked via HTTP through the use of the Amazon API Gateway, which opens up the possibility that WSGI applications could be exposed through Lambda. That said, the complexity of setting up a WSGI application to run within a Lambda execution environment is daunting.The Serverless FrameworkEnter the Serverless Framework, a toolkit for creating, managing, deploying, and operating serverless architectures. Serverless supports AWS Lambda, and other FaaS platforms, and makes the process of getting your code deployed to Lambda much easier. Serverless is written in JavaScript, and is easily installable through npm:$ npm install serverless -gOnce installed, you can use the serverless tool from the command line to perform a whole host of tasks, such as creating new functions from templates, deploying functions to providers, and invoking functions directly.Serverless WSGIThe serverless-wsgi plugin for the Serverless Framework allows you to take any Python WSGI application, and deploy it to Lambda with ease. Let's take a look at how!I've been working on a Python-based IndieAuth implementation called PunyAuth for a few weeks, and as an infrequently accessed web service, its a perfect candidate for a FaaS-backed deployment.First, I installed the serverless-wsgi plugin:$ npm install serverless-wsgi -gThen, I created a file called punywsgi.py that exposes PunyAuth as a WSGI application:from pecan.deploy import deploy\napp = deploy('my-config.py')In order to bundle up PunyAuth and all of its dependencies, serverless-wsgi needs a requirements.txt file, which is easily done using pip:$ pip freeze > requirements.txtFinally, I created a serverless.yml file that defines the service:service: serverless-punyauth\n\nplugins:\n - serverless-wsgi\n\ncustom:\n wsgi:\n app: punywsgi.app\n\nprovider:\n name: aws\n runtime: python3.6\n region: us-east-1\n iamRoleStatements:\n - Effect: \"Allow\"\n Action:\n - s3:*\n Resource:\n - arn:aws:s3:::cleverdevil-punyauth-testing/*\n\nfunctions:\n app:\n handler: wsgi.handler\n events:\n - http: ANY /\n - http: 'ANY {proxy+}'The serverless.yml file declares a service called serverless-punyauth, enables the serverless-wsgi plugin, and directs it to expose the WSGI app defined in punywsgi.app. When using serverless-wsgi, the bundled wsgi.handler can automatically map requests and responses coming in through the Amazon API Gateway to the deployed WSGI app.In the case of PunyAuth, the function itself needs read/write access to a particular AWS S3 bucket, which is accomplished here by defining an AWS IAM role that explicitly grants this access.At this point, the application is ready to be deployed to AWS Lambda.$ serverless deploy\nServerless: Packaging Python WSGI handler...\nServerless: Packaging required Python packages...\nServerless: Linking required Python packages...\nServerless: Packaging service...\nServerless: Excluding development dependencies...\nServerless: Unlinking required Python packages...\nServerless: Uploading CloudFormation file to S3...\nServerless: Uploading artifacts...\nServerless: Uploading service .zip file to S3 (2.08 MB)...\nServerless: Validating template...\nServerless: Updating Stack...\nServerless: Checking Stack update progress...\n................\nServerless: Stack update finished...\nService Information\nservice: serverless-punyauth\nstage: dev\nregion: us-east-1\nstack: serverless-punyauth-dev\napi keys:\n None\nendpoints:\n ANY - https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev\n ANY - https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev/{proxy+}\nfunctions:\n app: serverless-punyauth-dev-app\nServerless: Removing old service versions...Tada! We've deployed PunyAuth as a Lambda function!Use Cases and BenefitsDeploying WSGI applications on Lambda is certainly cool, but its also not appropriate for all use cases. Typically, WSGI applications are deployed in always-running WSGI servers. With Lambda, the behind-the-scenes server that represents the environment for your application is magically started and stopped on an as-needed basis, and the application itself will need to be loaded during the function invokation on-demand. This adds some additional overhead, so in the case of high-performance or frequently-accessed applications, you'll likely want to go another route.That said, for applications like PunyAuth, where performance isn't super critical, and the application is accessed relatively infrequently, this approach has a multitude of benefits.Benefit: CostDeploying a Python WSGI application the traditional way, with always-on infrastructure, will certainly result in higher performance, but also in significantly higher cost. With Lambda, you only pay for the actual execution time of your functions, rather than paying for, say, an EC2 instance that is always on. That means that hosting a low-traffic WSGI app in Lambda could cost you pennies a month.Benefit: ManagementWhile servers have certainly become easier to manage over the years, and managed hosting providers exist that will handle operating system updates and security patches, there's no question that deploying to Lambda will reduce your management overhead. The Lambda execution environment is entirely managed by Amazon, allowing you to focus on your application code, rather than on managing a fleet of servers.Benefit: SecurityWith AWS handling the heavy lifting of keeping the execution environment up-to-date with security patches, and the ability to apply fine-grained controls using AWS IAM roles, keeping your application secure is a bit easier.ConclusionAWS Lambda and the Serverless Framework provide a whole new way to host Python WSGI applications that can help reduce cost, eliminate management, and improve security.",
"html": "<p>I've been writing web applications and services in <a href=\"http://www.python.org\">Python</a> since the late 1990s, and enjoy it so much that I created the <a href=\"https://github.com/pecan/pecan\">Pecan web application framework</a> way back in 2010. Configuring and deploying Python web applications, especially <a href=\"http://wsgi.readthedocs.io/en/latest/\">WSGI</a> compliant applications, is fairly straightforward, with great WSGI servers like <a href=\"http://gunicorn.org\">Gunicorn</a> and <a href=\"http://projects.unbit.it/uwsgi\">uWSGI</a>, and excellent Apache integration via <a href=\"http://www.modwsgi.org/\">mod_wsgi</a>. But, for many use cases, creating and maintaining one or more cloud servers creates unnecessary cost and complexity. Security patches, kernel upgrades, SSL certificate management, and more, can be a real burden.</p><p>Since the creation of AWS <a href=\"https://aws.amazon.com/lambda/\">Lambda</a>, \"serverless\" has become a pretty popular buzzword. Could Lambda provide a way to deploy Python WSGI applications that helps reduce cost, complexity, and management overhead? First, let's consider what serverless really means.</p><h2>Introducing Lambda</h2><p>AWS Lambda is a cloud service that lets developers deploy and run code without provisioning or managing servers. Under the hood, there is of course still a server where code is run, but its existence is largely abstracted away. Lambda, and other services in the category, are likely better defined as \"functions as a service\" (FaaS).</p><p>Lambda provides <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html\">built-in Python support</a>, and <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-functions.html\">invoking Lambda functions</a> can be done manually, or via an event triggered by an another AWS service, including <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-s3\">Amazon S3</a>, <a href=\"https://aws.amazon.com/dynamodb/\">Amazon DynamoDB</a>, and even <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-echo\">Amazon Alexa</a>, just to name a few.</p><p>Lambda functions can also be invoked via HTTP through the use of the <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-api-gateway\">Amazon API Gateway</a>, which opens up the possibility that WSGI applications could be exposed through Lambda. That said, the complexity of setting up a WSGI application to run within a Lambda execution environment is daunting.</p><h2>The Serverless Framework</h2><p>Enter the <a href=\"https://serverless.com\">Serverless Framework</a>, a toolkit for creating, managing, deploying, and operating serverless architectures. Serverless supports AWS Lambda, and other FaaS platforms, and makes the process of getting your code deployed to Lambda much easier. Serverless is written in JavaScript, and is easily installable through <code>npm</code>:</p><pre>$ npm install serverless -g</pre><p>Once installed, you can use the <code>serverless</code> tool from the command line to perform a whole host of tasks, such as creating new functions from templates, deploying functions to providers, and invoking functions directly.</p><h2>Serverless WSGI</h2><p>The <a href=\"https://github.com/logandk/serverless-wsgi\">serverless-wsgi</a> plugin for the Serverless Framework allows you to take any Python WSGI application, and deploy it to Lambda with ease. Let's take a look at how!</p><p>I've been working on a Python-based <a href=\"https://indieweb.org/IndieAuth\">IndieAuth</a> implementation called <a href=\"https://github.com/cleverdevil/punyauth\">PunyAuth</a> for a few weeks, and as an infrequently accessed web service, its a perfect candidate for a FaaS-backed deployment.</p><p>First, I installed the <code>serverless-wsgi</code> plugin:</p><pre>$ npm install serverless-wsgi -g</pre><p>Then, I created a file called <code>punywsgi.py</code> that exposes PunyAuth as a WSGI application:</p><pre>from pecan.deploy import deploy\napp = deploy('my-config.py')</pre><p>In order to bundle up PunyAuth and all of its dependencies, serverless-wsgi needs a <code>requirements.txt</code> file, which is easily done using <code>pip</code>:</p><pre>$ pip freeze > requirements.txt</pre><p>Finally, I created a <code>serverless.yml</code> file that defines the service:</p><pre>service: serverless-punyauth\n\nplugins:\n - serverless-wsgi\n\ncustom:\n wsgi:\n app: punywsgi.app\n\nprovider:\n name: aws\n runtime: python3.6\n region: us-east-1\n iamRoleStatements:\n - Effect: \"Allow\"\n Action:\n - s3:*\n Resource:\n - arn:aws:s3:::cleverdevil-punyauth-testing/*\n\nfunctions:\n app:\n handler: wsgi.handler\n events:\n - http: ANY /\n - http: 'ANY {proxy+}'</pre><p>The <code>serverless.yml</code> file declares a service called <code>serverless-punyauth</code>, enables the <code>serverless-wsgi</code> plugin, and directs it to expose the WSGI app defined in <code>punywsgi.app</code>. When using <code>serverless-wsgi</code>, the bundled <code>wsgi.handler</code> can automatically map requests and responses coming in through the Amazon API Gateway to the deployed WSGI app.</p><p>In the case of PunyAuth, the function itself needs read/write access to a particular AWS S3 bucket, which is accomplished here by defining an AWS IAM role that explicitly grants this access.</p><p>At this point, the application is ready to be deployed to AWS Lambda.</p><pre>$ serverless deploy\nServerless: Packaging Python WSGI handler...\nServerless: Packaging required Python packages...\nServerless: Linking required Python packages...\nServerless: Packaging service...\nServerless: Excluding development dependencies...\nServerless: Unlinking required Python packages...\nServerless: Uploading CloudFormation file to S3...\nServerless: Uploading artifacts...\nServerless: Uploading service .zip file to S3 (2.08 MB)...\nServerless: Validating template...\nServerless: Updating Stack...\nServerless: Checking Stack update progress...\n................\nServerless: Stack update finished...\nService Information\nservice: serverless-punyauth\nstage: dev\nregion: us-east-1\nstack: serverless-punyauth-dev\napi keys:\n None\nendpoints:\n ANY - <a href=\"https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev\">https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev</a>\n ANY - <a href=\"https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev/%7Bproxy+%7D\">https://rpmchol040.execute-api.us-east-1.amazonaws.com/dev/{proxy+}</a>\nfunctions:\n app: serverless-punyauth-dev-app\nServerless: Removing old service versions...</pre><p>Tada! We've deployed PunyAuth as a Lambda function!</p><h2>Use Cases and Benefits</h2><p>Deploying WSGI applications on Lambda is certainly cool, but its also not appropriate for all use cases. Typically, WSGI applications are deployed in always-running WSGI servers. With Lambda, the behind-the-scenes server that represents the environment for your application is magically started and stopped on an as-needed basis, and the application itself will need to be loaded during the function invokation on-demand. This adds some additional overhead, so in the case of high-performance or frequently-accessed applications, you'll likely want to go another route.</p><p>That said, for applications like PunyAuth, where performance isn't super critical, and the application is accessed relatively infrequently, this approach has a multitude of benefits.</p><h3>Benefit: Cost</h3><p>Deploying a Python WSGI application the traditional way, with always-on infrastructure, will certainly result in higher performance, but also in significantly higher cost. With Lambda, you only pay for the actual execution time of your functions, rather than paying for, say, an EC2 instance that is always on. That means that hosting a low-traffic WSGI app in Lambda could cost you pennies a month.</p><h3>Benefit: Management</h3><p>While servers have certainly become easier to manage over the years, and managed hosting providers exist that will handle operating system updates and security patches, there's no question that deploying to Lambda will reduce your management overhead. The Lambda execution environment is entirely managed by Amazon, allowing you to focus on your application code, rather than on managing a fleet of servers.</p><h3>Benefit: Security</h3><p>With AWS handling the heavy lifting of keeping the execution environment up-to-date with security patches, and the ability to apply fine-grained controls using AWS IAM roles, keeping your application secure is a bit easier.</p><h2>Conclusion</h2><p>AWS Lambda and the Serverless Framework provide a whole new way to host Python WSGI applications that can help reduce cost, eliminate management, and improve security.</p>"
},
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "175949",
"_source": "10"
}
{
"type": "entry",
"published": "2018-03-30T02:42:08+00:00",
"url": "https://cleverdevil.io/2018/sous-vide-swordfish-steaks",
"photo": [
"https://aperture-media.p3k.io/cleverdevil.io/15b0d6101b5bd6ddee40f077b9e972c93cc0fde136fb4c4840f298317e274bde.jpg"
],
"syndication": [
"https://twitter.com/cleverdevil/status/979549315898249216"
],
"name": "Sous Vide Swordfish Steaks \u2694\ufe0f\ud83d\udc1f",
"author": {
"type": "card",
"name": "Jonathan LaCour",
"url": "https://cleverdevil.io/profile/cleverdevil",
"photo": "https://aperture-media.p3k.io/cleverdevil.io/abdf4969f052cb64177f73cda9be6a709931eb55607f8c1fb2c69eb135841acf.jpg"
},
"_id": "173688",
"_source": "10"
}