GithubHelp home page GithubHelp logo

rhiaro / sloph Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 2.0 11.34 MB

The CMS for my website which is both a blog and a life logging platform

Home Page: https://rhiaro.co.uk/sloph

PHP 64.95% CSS 14.88% HTML 0.22% JavaScript 19.71% Dockerfile 0.15% Hack 0.09%

sloph's People

Contributors

rhiaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ringmaster saper

sloph's Issues

Image slideshow weird bug

If you scroll down then open the slideshow, the arrow keys close the popover instead of change the image. Clicking sides works. Sometimes it recovers if you click enough and maybe scroll to the right place? Dunno.

Publishing

  • Outbox endpoint for ActivityPub
  • adapter for Micropub
  • Handle POST requests to containers for LDP

Notifications

  • Refactor inbox endpoint to insert into triplestore
  • Set up webhooks from webmention.io to post to inbox

Slow as butts

Why do queries take so long on the server, but not on localhost?

Subscription and delivery

  • Add to followers collection when I get a Follow activity notification in inbox
  • Send notifications to followers when I publish new
  • Send notifications to mentions and addressees when I publish new
  • If inbox discovery fails, try webmention

application/activity+json is not compacted as it should be

I'd expect this response to have a 'generator' property, but it has the whole URI "http://www.w3.org/ns/activitystreams#generator"

ben@bengo-air ~ $ curl "https://rhiaro.co.uk/2016/12/georgetown-wandering" -H "Accept: application/activity+json" | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3801  100  3801    0     0   1512      0  0:00:02  0:00:02 --:--:--  1511
{
  "@context": "http://www.w3.org/ns/activitystreams#",
  "id": "https://rhiaro.co.uk/2016/12/georgetown-wandering",
  "type": "http://www.w3.org/ns/activitystreams#Article",
  "http://www.w3.org/ns/activitystreams#content": "<p>Yesterday evening (21st) I went for a 'quick walk' into town. My apartment is about a 20 minute walk from the edge of George Town heritage area and 40 minutes from the jetty and core tourist zone. Between home and the edge of the 'nice' part of town is not particularly nice: apartment blocks, malls and big roads with... intermittent... footpaths. There are still lots of interesting places to stop of course; markets, stalls, local restaurants, general streetside chaos. Walking around here takes a lot of concentration, between trying to take in the surroundings, not being hit by scooters and cars, avoiding enormous open holes into the sewer, and not accidentally buying a kilo of tropical fruit every five minutes.</p>\r\n\r\n<p>The sky was blue. My goal was to procure coconut oil for cooking. I thought it would be easy to get hold of here, but so far, after a few days of hunting around, I found it in a vegetarian restaurant (Leaf Healthy House) and a baking shop for twice the price. I asked in an Indian grocery, and was directed to another grocery store, but I never found it. So I returned to Leaf to pick up 2 litres for RM 36.30. Or so I thought. I got distracted by not-meats at a different Indian grocery, paid a visit to Fort Cornwallis, plus dinner at Veggielicious, and by the time I made it to Leaf I didn't have enough cash left.</p>\r\n\r\n<p>On that note, Fort Cornwallis was pretty rubbish. There are guided tours where one is presumably told about the history.. I was at the allotted tour starting point at the right time, but nobody showed up. The 'exhibits' are glass boxes in mouldy rooms containing bits of rock or dioramas, and no explanation of what they are. There isn't much 'fort', just outer walls and some cannons on hills. I was feeling particularly disgruntled because I paid 20 RM to enter, which could have got me four or five meals. I left after about half an hour, most of which was occupied milling around waiting for a tour guide to show up.</p>\r\n\r\n<p>When I got back it had started raining, with thunder and lightning. I sat in the outdoor bit of the pool for half an hour, watching the sky light up.</p>\r\n\r\n<p>Today (22nd) I went into town at lunchtime, and made the <em>first</em> stop Leaf, for coconut oil. I was accompanied by two new guests in my AirBnB, P and A; ship engineers from Poland. Apparently ship engineering isn't as exciting as it sounds. We ate at Woodlands vegetarian Indian. Service was frustratingly slow, but the food was good and cheap. While we were there the sky opened and the lightning commenced again. I headed home, and they went off to explore town some more. It rained heavily, intermittently, but I mostly stayed in the cover of the archways that line most buildings here. I stopped at Mydin, a giant supermarket and department store, and finally bought more kitchen stuff. I got a blender for less than $12. It's probably not good quality, but it only needs to last two more months.</p>",
  "http://www.w3.org/ns/activitystreams#generator": {
    "id": "https://rhiaro.co.uk/sloph"
  },
  "http://www.w3.org/ns/activitystreams#name": "George Town wandering",
  "http://www.w3.org/ns/activitystreams#published": {
    "type": "xsd:dateTime",
    "@value": "2016-12-22T23:13:00+08:00"
  },
  "http://www.w3.org/ns/activitystreams#tag": [
    {
      "id": "https://rhiaro.co.uk/tags/weather"
    },
    {
      "id": "https://rhiaro.co.uk/tags/malaysia"
    },
    {
      "id": "https://rhiaro.co.uk/tags/shopping"
    },
    {
      "id": "https://rhiaro.co.uk/tags/georgetown"
    },
    {
      "id": "https://rhiaro.co.uk/tags/penang"
    },
    {
      "id": "https://rhiaro.co.uk/tags/food"
    },
    {
      "id": "https://rhiaro.co.uk/tags/travel"
    }
  ]
}

Special feeds

  • calendar
  • travel
  • stuff
  • likes
  • bookmarks
  • reposts

(etc)

Improve links between posts and places

Some posts are tagged with a place name like /tags/edinburgh but now I have Place objects like /location/edinburgh. Do some manual wrangling to update post tags to use the Place object, and also link on Place pages to all posts tagged with them (and travel plans to/from them).

Use graphs

  • Add param to queries to set ?g
  • Only insert my own posts into my graph
  • Select from <http://blog.rhiaro.co.uk#> by default (will fix #14)
  • Cleanup: remove all other peoples' posts from my graph (will fix #14)

Cache location information

Travel plan posts are painfully slow due to parsing two dbpedia resources for location names and lat/lons. Cache these in my database at create time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.