ActivityPub Viewer

A small tool to view real-world ActivityPub objects as JSON! Enter a URL or username from Mastodon or a similar service below, and we'll send a request with the right Accept header to the server to view the underlying object.

Open in browser →
{ "id": "https://discourse.osgeo.org/ap/activity/7877450fa23b5bd11e5eb887263374a5", "type": "Create", "audience": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220", "to": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220", "cc": [ "https://www.w3.org/ns/activitystreams#Public" ], "published": "2024-09-27T21:59:21Z", "updated": "2024-09-27T21:59:21Z", "actor": { "id": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a", "type": "Person", "updated": "2024-05-12T16:18:16Z", "url": "https://discourse.osgeo.org/u/cvvergara", "name": "Vicky Vergara", "inbox": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a/inbox", "outbox": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a/outbox", "sharedInbox": "https://discourse.osgeo.org/ap/users/inbox", "followers": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a/followers", "preferredUsername": "cvvergara", "publicKey": { "id": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a#main-key", "owner": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a", "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoPzeZ87kZsFQo2aLl943\n8mvQudSyeDHA1qgM0lx8+OY0e7b/BKHDPmoO4wRXn3slzJuyL4yIKD31Z6csc6TJ\nz9/JbXmnzY/ZSus4271+U9vuxHBRxyJfMw0A14Gh3L9FV3COh7q+A5U51djwQWpF\nyincspUnYu1RygrJYbzGjH8pT+UZlKvdMARYRUh1y3w2XrqWGI5MBFXuVjqO5A4b\nSetgxKVp9LV0EyG+ZT+MGZT+HXoeW0p0xeT/Y7PMgtXWztA9EZhChYKoh4YLPmHO\n6AFhiII9vQqkXVtcK5S8UnosbjPEMAVgs46XFIdQN654aJkqmNkZx0At5tNofEbi\nCwIDAQAB\n-----END PUBLIC KEY-----\n" }, "icon": { "type": "Image", "mediaType": "image/png", "url": "https://discourse.osgeo.org/user_avatar/discourse.osgeo.org/cvvergara/96/26_2.png" }, "@context": "https://www.w3.org/ns/activitystreams" }, "@context": "https://www.w3.org/ns/activitystreams", "object": { "id": "https://discourse.osgeo.org/ap/object/10f99cbfc16d0557b86cab73d2cdc780", "type": "Note", "audience": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220", "to": "https://discourse.osgeo.org/ap/actor/e12a97a00c04f88ba48156f05cd55220", "cc": [ "https://www.w3.org/ns/activitystreams#Public" ], "published": "2024-09-27T21:59:21Z", "updated": "2024-09-27T21:59:21Z", "url": "https://discourse.osgeo.org/t/how-to-add-log-messages-in-pgrouting-code/59991/2", "attributedTo": "https://discourse.osgeo.org/ap/actor/698c8043a23f42700545ea9c7bd6f21a", "context": "https://discourse.osgeo.org/ap/collection/4ff1acfc023ccc8bb897d21597c4193a", "content": "<p>HiNot that simple but ....</p><p><strong>NOTE</strong>All these links are done for this branch at sept 27, 2024. They might be outdated, in the future but they will look to v3.7.0 soon to be released.</p><p><a href=\"https://github.com/pgRouting/pgrouting/blob/develop\">https://github.com/pgRouting/pgrouting/blob/develop</a></p><p>This <a href=\"https://github.com/pgRouting/pgrouting/blob/develop/include/withPoints/pgr_withPoints.hpp#L40\">line</a> will add to the class the following <a href=\"https://github.com/pgRouting/pgrouting/blob/develop/include/cpp_common/pgr_messages.hpp#L78\">class members</a> then it can be used like in this <a href=\"https://github.com/pgRouting/pgrouting/blob/develop/src/withPoints/pgr_withPoints.cpp#L113\">code</a>.</p><p>To be able to see the messages when executing a query:</p><p><a href=\"https://github.com/pgRouting/pgrouting/blob/develop/src/withPoints/withPoints_driver.cpp#L105\">A place to save the log on C++ code</a></p><pre><code class=\"lang-auto\">std::ostringstream log;</code></pre><p><a href=\"https://github.com/pgRouting/pgrouting/blob/develop/src/withPoints/withPoints_driver.cpp#L155\">Get the log</a></p><pre><code class=\"lang-auto\">log &lt;&lt; pg_graph.get_log();</code></pre><p><a href=\"https://github.com/pgRouting/pgrouting/blob/develop/src/withPoints/withPoints_driver.cpp#L157\">Create the C string using postgres memopry handling</a></p><pre><code class=\"lang-auto\">*log_msg = pgr_msg(log.str().c_str());</code></pre><p>And on postgresSQL: (note in this example from the documentation the query does not have error so nothing gets logged except the time it took to read the data)</p><pre><code class=\"lang-auto\">SET client_min_messages TO DEBUG3;SETsampledata=# SELECT * FROM pgr_withPoints( 'SELECT id, source, target, cost, reverse_cost FROM edges ORDER BY id', 'SELECT pid, edge_id, fraction, side from pointsOfInterest', -1, 10, details =&gt; true);DEBUG: Elapsed time for processing pgr_withPoints: 0.000709 sec = (18277.000000 - 17568.000000) / CLOCKS_PER_SEC</code></pre><p>Hope this helpsVicky</p><br><br><a href=\"https://discourse.osgeo.org/t/how-to-add-log-messages-in-pgrouting-code/59991/2\">Discuss this on our forum.</a>", "inReplyTo": "https://discourse.osgeo.org/ap/object/7b15d4894c7ab8639339edfe8480c2cf", "@context": "https://www.w3.org/ns/activitystreams" } }