Advertisement
Guest User

Apple News

a guest
Apr 18th, 2017
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.85 KB | None | 0 0
  1. API Response:
  2. Array
  3. (
  4. [headers] => Requests_Utility_CaseInsensitiveDictionary Object
  5. (
  6. [data:protected] => Array
  7. (
  8. [date] => Tue, 18 Apr 2017 14:39:49 GMT
  9. [request-id] => d4f4c3b2-ba29-49cf-bb25-0315f4470fff
  10. [content-type] => application/json;charset=UTF-8
  11. [content-length] => 120
  12. [server] => Jetty(9.2.20.v20161216)
  13. )
  14.  
  15. )
  16.  
  17. [body] => {"errors":[{"code":"INVALID_DOCUMENT","keyPath":["components",1,"components",13],"value":"","message":"Invalid URL: "}]}
  18. [response] => Array
  19. (
  20. [code] => 400
  21. [message] => Bad Request
  22. )
  23.  
  24. [cookies] => Array
  25. (
  26. )
  27.  
  28. [filename] =>
  29. [http_response] => WP_HTTP_Requests_Response Object
  30. (
  31. [response:protected] => Requests_Response Object
  32. (
  33. [body] => {"errors":[{"code":"INVALID_DOCUMENT","keyPath":["components",1,"components",13],"value":"","message":"Invalid URL: "}]}
  34. [raw] => HTTP/1.1 400 Bad Request
  35. Date: Tue, 18 Apr 2017 14:39:49 GMT
  36. Request-Id: d4f4c3b2-ba29-49cf-bb25-0315f4470fff
  37. Content-Type: application/json;charset=UTF-8
  38. Content-Length: 120
  39. Server: Jetty(9.2.20.v20161216)
  40.  
  41. {"errors":[{"code":"INVALID_DOCUMENT","keyPath":["components",1,"components",13],"value":"","message":"Invalid URL: "}]}
  42. [headers] => Requests_Response_Headers Object
  43. (
  44. [data:protected] => Array
  45. (
  46. [date] => Array
  47. (
  48. [0] => Tue, 18 Apr 2017 14:39:49 GMT
  49. )
  50.  
  51. [request-id] => Array
  52. (
  53. [0] => d4f4c3b2-ba29-49cf-bb25-0315f4470fff
  54. )
  55.  
  56. [content-type] => Array
  57. (
  58. [0] => application/json;charset=UTF-8
  59. )
  60.  
  61. [content-length] => Array
  62. (
  63. [0] => 120
  64. )
  65.  
  66. [server] => Array
  67. (
  68. [0] => Jetty(9.2.20.v20161216)
  69. )
  70.  
  71. )
  72.  
  73. )
  74.  
  75. [status_code] => 400
  76. [protocol_version] => 1.1
  77. [success] =>
  78. [redirects] => 0
  79. [url] => https://news-api.apple.com/channels/9fad9e93-68a6-4243-9ad4-83410e514586/articles
  80. [history] => Array
  81. (
  82. )
  83.  
  84. [cookies] => Requests_Cookie_Jar Object
  85. (
  86. [cookies:protected] => Array
  87. (
  88. )
  89.  
  90. )
  91.  
  92. )
  93.  
  94. [filename:protected] =>
  95. [data] =>
  96. [headers] =>
  97. [status] =>
  98. )
  99.  
  100. )
  101.  
  102.  
  103. Request Meta:
  104.  
  105. Array
  106. (
  107. [data] => Array
  108. (
  109. [links] => Array
  110. (
  111. [sections] => Array
  112. (
  113. [0] => https://news-api.apple.com/sections/ba4dce63-40f4-3bad-9fde-579506cf5c53
  114. )
  115.  
  116. )
  117.  
  118. )
  119.  
  120. )
  121.  
  122.  
  123. Image Settings:
  124.  
  125. Bundled images:
  126. https://singularityhub.com/wp-content/uploads/2017/04/drone2.jpg
  127. https://singularityhub.com/wp-content/uploads/2017/04/drone2.jpg
  128.  
  129. JSON:
  130. {"version":"1.1","identifier":"post-106752","language":"en","title":"This Drone Is on a Mission to Rid Your City of Dog Poop","documentStyle":{"backgroundColor":"#fafafa"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"header","layout":"headerPhotoLayout","components":[{"role":"photo","layout":"headerPhotoLayout","URL":"bundle:\/\/drone2.jpg"}],"behavior":{"type":"parallax","factor":0.8}},{"role":"container","layout":{"columnSpan":7,"columnStart":0,"ignoreDocumentMargin":true},"style":{"backgroundColor":"#fafafa"},"components":[{"role":"title","text":"This Drone Is on a Mission to Rid Your City of Dog Poop","textStyle":"default-title","layout":"title-layout"},{"role":"byline","text":"by Vanessa Bates Ramirez | Apr 13, 2017 | 8:00 AM","textStyle":"default-byline","layout":"byline-layout"},{"role":"body","text":"Nothing ruins a pleasant afternoon stroll down your neighborhood sidewalk or favorite city street like stepping in dog poop. Even if you don\u2019t step in it, having to look down to make sure you\u2019re avoiding it is no fun. And most dog owners have had at least one day when, darn it, they ran out of plastic baggies, or they were simply too tired to clean up after their canine companion.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"},{"role":"body","text":"In an unexpected use of rapidly improving sensors and robots, Dutch entrepreneur Gerben Lievers invented a unique tool to solve all these problems at once: a poop-scooping drone.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/wpFtbkwmg84"},{"role":"body","text":"The drone has already gone through multiple iterations, each improvement aiming to further perfect the technology so that it leaves streets as poop-free as possible.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"The team\u2019s first model, a drone called Watchdog 1, used thermal imaging to locate uncollected dog droppings by their warm temperatures compared to the surrounding area. That data was appended with GPS coordinates and sent to a ground-based robot called Patroldog 1, which rolled off to collect its target.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"After trying both a vacuum-type collection mechanism and arms that really did \u2018scoop\u2019 the poop, the team decided the vacuum worked better because it can pick up material of various consistencies (ick).","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Speaking of which, thermal imaging only identifies waste that is, ahem, fresh. What about the stuff that\u2019s been sitting there for hours or days? It\u2019s equally unpleasant, and should also be banished from sidewalks.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"To solve this problem, the team added recognition software to the drone, training it to recognize stale poop from above using images.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Lievers said, \u201cThe form and shape may be different with each one, but when you have a database with enough training images it\u2019s possible...It may be that people will need to send us pictures of the poo of their dog in order to train our machines to be better.\u201d If you\u2019re a dog owner and you\u2019ve been wanting to participate in a crowdsourcing project, it sounds like you\u2019ve got your work cut out for you.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Before the poop-scooping drone project, Lievers founded [Tinki.nl](https:\/\/tinki.nl\/), a website comparing prices of pet accessories. He\u2019s hoping local governments will provide funding for his drone project and neighborhood volunteers will learn to fly the drones (they\u2019re not autonomous yet). Once the operation ramps up, Patroldog 1 will need more storage space, as it currently only holds a couple blocks\u2019 worth of waste.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"The team hopes to trial their prototypes in a few poop-problematic neighborhoods by the end of this year. But Lievers said, \u201cA lot of this depends on how the technology can be developed, as well as how willing the government is to take part.\u201d","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"[]() Could a poop-scooping drone make the problem it\u2019s trying to solve worse? If pet owners know someone else will clean up after their dogs, why make any effort to do so themselves? It\u2019s plausible that, if the drone scales up its coverage, it could have trouble keeping up with the demand it creates.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Whether or not that becomes an issue, the broader consensus is likely this: as long as the poop is off the street, it doesn\u2019t matter who (or what) is picking it up.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Image Credit: [Tinki.nl\/YouTube](https:\/\/www.youtube.com\/watch?v=wpFtbkwmg84)","format":"markdown","textStyle":"default-body","layout":"body-layout-last"}]}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"tracking":0,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18,"dropCapStyle":{"numberOfLines":4,"numberOfCharacters":1,"padding":5,"fontName":"AvenirNext-Bold","textColor":"#4f4f4f","numberOfRaisedLines":0}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"tracking":0,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"tracking":0,"textColor":"#333333","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":13,"lineHeight":24,"tracking":0,"textColor":"#7c7c7c"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":6,"margin":{"top":12,"bottom":12}},"body-layout-last":{"columnStart":0,"columnSpan":6,"margin":{"top":12,"bottom":30}},"headerPhotoLayout":{"ignoreDocumentMargin":true,"columnStart":0,"columnSpan":7},"headerBelowTextPhotoLayout":{"ignoreDocumentMargin":true,"columnStart":0,"columnSpan":7,"margin":{"top":30,"bottom":0}},"title-layout":{"margin":{"top":30,"bottom":0}},"byline-layout":{"margin":{"top":10,"bottom":10},"columnStart":0,"columnSpan":7}},"metadata":{"excerpt":"Nothing ruins a pleasant afternoon stroll down your neighborhood sidewalk or favorite city street like stepping in dog poop. Even if you don\u2019t step in it, having to look down to make sure you\u2019re avoiding it is no fun. And most dog owners have had at least one day when, darn it, they ran out...","thumbnailURL":"bundle:\/\/drone2.jpg","dateCreated":"2017-04-13T15:00:24+00:00","dateModified":"2017-04-18T14:39:45+00:00","datePublished":"2017-04-13T15:00:24+00:00","canonicalURL":"https:\/\/singularityhub.com\/2017\/04\/13\/this-drone-is-on-a-mission-to-rid-your-city-of-dog-poop\/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.2.5"}}
  131.  
  132.  
  133. MIME request:
  134. Authorization: HHMAC; key=6e91f3e9-a88a-401c-89fc-b2710fc5dea0; signature=6fxjkmvdUGEyTsZC1OcHYQJzh4+p0DjUEf5cn5bFRqs=; date=2017-04-18T14:39:48+00:00
  135. Content-Length: 82424
  136. Content-Type: multipart/form-data; boundary=92025f2c3997112d6acc2bb1c1c83c0e
  137.  
  138. --92025f2c3997112d6acc2bb1c1c83c0e
  139. Content-Type: application/json
  140. Content-Disposition: form-data; name=metadata
  141.  
  142. {"data":{"links":{"sections":["https:\/\/news-api.apple.com\/sections\/ba4dce63-40f4-3bad-9fde-579506cf5c53"]}}}
  143. --92025f2c3997112d6acc2bb1c1c83c0e
  144. Content-Type: application/json
  145. Content-Disposition: form-data; name=my_article; filename=article.json; size=7642
  146.  
  147. {"version":"1.1","identifier":"post-106752","language":"en","title":"This Drone Is on a Mission to Rid Your City of Dog Poop","documentStyle":{"backgroundColor":"#fafafa"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"header","layout":"headerPhotoLayout","components":[{"role":"photo","layout":"headerPhotoLayout","URL":"bundle:\/\/drone2.jpg"}],"behavior":{"type":"parallax","factor":0.8}},{"role":"container","layout":{"columnSpan":7,"columnStart":0,"ignoreDocumentMargin":true},"style":{"backgroundColor":"#fafafa"},"components":[{"role":"title","text":"This Drone Is on a Mission to Rid Your City of Dog Poop","textStyle":"default-title","layout":"title-layout"},{"role":"byline","text":"by Vanessa Bates Ramirez | Apr 13, 2017 | 8:00 AM","textStyle":"default-byline","layout":"byline-layout"},{"role":"body","text":"Nothing ruins a pleasant afternoon stroll down your neighborhood sidewalk or favorite city street like stepping in dog poop. Even if you don\u2019t step in it, having to look down to make sure you\u2019re avoiding it is no fun. And most dog owners have had at least one day when, darn it, they ran out of plastic baggies, or they were simply too tired to clean up after their canine companion.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"},{"role":"body","text":"In an unexpected use of rapidly improving sensors and robots, Dutch entrepreneur Gerben Lievers invented a unique tool to solve all these problems at once: a poop-scooping drone.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"embedwebvideo","aspectRatio":1.777,"URL":"https:\/\/www.youtube.com\/embed\/wpFtbkwmg84"},{"role":"body","text":"The drone has already gone through multiple iterations, each improvement aiming to further perfect the technology so that it leaves streets as poop-free as possible.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"The team\u2019s first model, a drone called Watchdog 1, used thermal imaging to locate uncollected dog droppings by their warm temperatures compared to the surrounding area. That data was appended with GPS coordinates and sent to a ground-based robot called Patroldog 1, which rolled off to collect its target.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"After trying both a vacuum-type collection mechanism and arms that really did \u2018scoop\u2019 the poop, the team decided the vacuum worked better because it can pick up material of various consistencies (ick).","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Speaking of which, thermal imaging only identifies waste that is, ahem, fresh. What about the stuff that\u2019s been sitting there for hours or days? It\u2019s equally unpleasant, and should also be banished from sidewalks.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"To solve this problem, the team added recognition software to the drone, training it to recognize stale poop from above using images.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Lievers said, \u201cThe form and shape may be different with each one, but when you have a database with enough training images it\u2019s possible...It may be that people will need to send us pictures of the poo of their dog in order to train our machines to be better.\u201d If you\u2019re a dog owner and you\u2019ve been wanting to participate in a crowdsourcing project, it sounds like you\u2019ve got your work cut out for you.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Before the poop-scooping drone project, Lievers founded [Tinki.nl](https:\/\/tinki.nl\/), a website comparing prices of pet accessories. He\u2019s hoping local governments will provide funding for his drone project and neighborhood volunteers will learn to fly the drones (they\u2019re not autonomous yet). Once the operation ramps up, Patroldog 1 will need more storage space, as it currently only holds a couple blocks\u2019 worth of waste.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"The team hopes to trial their prototypes in a few poop-problematic neighborhoods by the end of this year. But Lievers said, \u201cA lot of this depends on how the technology can be developed, as well as how willing the government is to take part.\u201d","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"[]() Could a poop-scooping drone make the problem it\u2019s trying to solve worse? If pet owners know someone else will clean up after their dogs, why make any effort to do so themselves? It\u2019s plausible that, if the drone scales up its coverage, it could have trouble keeping up with the demand it creates.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Whether or not that becomes an issue, the broader consensus is likely this: as long as the poop is off the street, it doesn\u2019t matter who (or what) is picking it up.","format":"markdown","textStyle":"default-body","layout":"body-layout"},{"role":"body","text":"Image Credit: [Tinki.nl\/YouTube](https:\/\/www.youtube.com\/watch?v=wpFtbkwmg84)","format":"markdown","textStyle":"default-body","layout":"body-layout-last"}]}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"tracking":0,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18,"dropCapStyle":{"numberOfLines":4,"numberOfCharacters":1,"padding":5,"fontName":"AvenirNext-Bold","textColor":"#4f4f4f","numberOfRaisedLines":0}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"tracking":0,"lineHeight":24,"textColor":"#4f4f4f","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"tracking":0,"textColor":"#333333","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":13,"lineHeight":24,"tracking":0,"textColor":"#7c7c7c"}},"componentLayouts":{"body-layout":{"columnStart":0,"columnSpan":6,"margin":{"top":12,"bottom":12}},"body-layout-last":{"columnStart":0,"columnSpan":6,"margin":{"top":12,"bottom":30}},"headerPhotoLayout":{"ignoreDocumentMargin":true,"columnStart":0,"columnSpan":7},"headerBelowTextPhotoLayout":{"ignoreDocumentMargin":true,"columnStart":0,"columnSpan":7,"margin":{"top":30,"bottom":0}},"title-layout":{"margin":{"top":30,"bottom":0}},"byline-layout":{"margin":{"top":10,"bottom":10},"columnStart":0,"columnSpan":7}},"metadata":{"excerpt":"Nothing ruins a pleasant afternoon stroll down your neighborhood sidewalk or favorite city street like stepping in dog poop. Even if you don\u2019t step in it, having to look down to make sure you\u2019re avoiding it is no fun. And most dog owners have had at least one day when, darn it, they ran out...","thumbnailURL":"bundle:\/\/drone2.jpg","dateCreated":"2017-04-13T15:00:24+00:00","dateModified":"2017-04-18T14:39:45+00:00","datePublished":"2017-04-13T15:00:24+00:00","canonicalURL":"https:\/\/singularityhub.com\/2017\/04\/13\/this-drone-is-on-a-mission-to-rid-your-city-of-dog-poop\/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.2.5"}}
  148. --92025f2c3997112d6acc2bb1c1c83c0e
  149. Content-Type: application/octet-stream
  150. Content-Disposition: form-data; name=drone2jpg; filename=drone2.jpg; size=74199
  151.  
  152. (binary contents of drone2.jpg)
  153. --92025f2c3997112d6acc2bb1c1c83c0e--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement