These are chat archives for linkeddata/dokieli

6th
Oct 2018
TorontoBoy
@TorontoBoy
Oct 06 12:15
Hello All, I'm very new to Dokieli and started because Solid has a Dokieli option. I started a Dokieli document and can save it to my Solid. I have been muddling through the various formatting such as tables, lists, bold, etc. How do I control font, such as size, colour? How do I control the link colour. Right now when I highlight text I receive the long options bar in black, but I just don't see a font option? Here's my doc: https://dontai.inrupt.net/public/solid-id-list-from-google-search/ where I cannot control my font options.
Nick Bell
@newmedicine
Oct 06 13:22
I would like to know how to apply a heading - the h2...h3 etc buttons don't work (Dokeili on solid.inrupt.net)
TorontoBoy
@TorontoBoy
Oct 06 13:41
On solid I just used bold! I could not get the h2, h3, h4 to work
@csarven How does the h2, h3, h4 work? On solid it seems to do nothing?
Sarven Capadisli
@csarven
Oct 06 14:55
@TorontoBoy All styles are handled through CSS. dokieli doesn't have features to change CSS. It only applies what's available or let's you switch between the stylesheets (if it detects multiple as part of the document). So, for example, instead of 'bold'ing anything, it has a button for 'B' which actually just updates the DOM to wrap <strong>around some selected text</strong>. If you want to change the styles, either take eg. basic.css and update, or better copy it, and change that version (you can also import the basic.css and apply your own styles on top if you're only adding a few things).
@newmedicine @TorontoBoy Go into 'Edit' mode.. Type some text, highlight that text, click h2-h4.
Nick Bell
@newmedicine
Oct 06 14:57
@csarven precisely nothing happens!
Sarven Capadisli
@csarven
Oct 06 14:57
I did however just notice a bug that you're probably encountering.
Quick fix.. if you're willing ot update the HTML manually:
Add this inside <article>:
<section id="foo" inlist="" rel="schema:hasPart" resource="#foo">
  <h2 property="schema:name">Foo</h2>
  <div datatype="rdf:HTML" property="schema:description">
    <p>Hello world. Edit me. Select text. click h3</p>
  </div>
</section>
I should really fix this.. quite annoying.
What's happening is that, the selection is looking for a parent node with <section> I think and it probably doesn't find it.
Tim Berners-Lee
@timbl
Oct 06 15:01
Do you have an issue s list for these bugs?
Sarven Capadisli
@csarven
Oct 06 15:01
I think <section><p>asdfasdfas</p></section> will make it work too.
@timbl Yea, ther eis at least linkeddata/dokieli#95
and one of hte comments covers the issue here.
I think you've raised this as well in the past :S
TorontoBoy
@TorontoBoy
Oct 06 15:03
@csarven What do you mean "add this inside <article>? In my Dokeili document I see no <article> tag
Nick Bell
@newmedicine
Oct 06 15:03
@csarven Works for me, although then can't change heading to anything else
Sarven Capadisli
@csarven
Oct 06 15:05
@TorontoBoy I see <article about="" typeof="schema:Article"> on line 18 of your document.
Youan place it just before </article>
@newmedicine h3 works but h2 and h4 doesn't?
Nick Bell
@newmedicine
Oct 06 15:06
@csarven all three work but then I can't change the heading to different level
Sarven Capadisli
@csarven
Oct 06 15:07
(btw, thank you both for testing things! feedback is really useful)
Oh, you mean like once a heading is applied, can't update that. Good point.
Nick Bell
@newmedicine
Oct 06 15:09
Yes
Sarven Capadisli
@csarven
Oct 06 15:09
@newmedicine Would you mind taking the opportunity to add a comment at linkeddata/dokieli#95 based on what you tried/expected/would like to see.
Nick Bell
@newmedicine
Oct 06 15:09
Also - how to show the toolbar to e.g. insert a table without having a selection?
Sarven Capadisli
@csarven
Oct 06 15:10
there is an option for that in medium-editor, and in dokieli the default is set to off.
That's another issue we can create.. the on/off should be controllable from config.js
Nick Bell
@newmedicine
Oct 06 15:11
Now commas are inserted every time I press newline. Also, frequently when opening a document directly from URL, Edit is selected but I can't actually edit - have to toggle.
Sarven Capadisli
@csarven
Oct 06 15:11
so, the default is what's shipped with dokieli, but people can change their own to whatever.
hmm, that's weird. i don't recall encountering anything like that.
Nick Bell
@newmedicine
Oct 06 15:12
Also saving only works about 20% of time in solid on inrupt but I know that's not your issue!
Sarven Capadisli
@csarven
Oct 06 15:12
which browser are you using? are you able to replicate? again, if you can file issues based on what you've tried, expected, or want to achieve, that'd really help to shape the software.
Nick Bell
@newmedicine
Oct 06 15:13
The "edit button" issue is I think just Firefox
Sarven Capadisli
@csarven
Oct 06 15:14
re saving.. not sure, but I would like to know. We can always file things in dokieli and then identify whether it is dokieli-centric or Solid/LDP ect.. We've done that quite a lot in the past.. and it also helps to indirectly do a QA on Solid.
Nick Bell
@newmedicine
Oct 06 15:15
OK I'll try - but tbh so many issues!
Still think this is the killer app for Solid though!
Does medium use dokieli?
Sarven Capadisli
@csarven
Oct 06 15:21
'medium' what exactly?
dokieli uses the Medium Editor library. It is not related to Medium.com .. just inspired.
Nick Bell
@newmedicine
Oct 06 15:24
Thanks. Sorry Sarven not being rude about many issues - just tricky trying to evaluate Solid and Dokieli at the same time!
Sarven Capadisli
@csarven
Oct 06 15:24
The initial idea was to allow any editor to be used, so we can swap ME with sometihng else... I'm open to using other editors as default, provided that the HTML/DOM treatment is squeaky clean
@newmedicine On the contrary, I'm not offended. I'm thankful for the feedback! So, if you're willing to put up with the issues, and report, and bug me/people enough, we can get through them.
TorontoBoy
@TorontoBoy
Oct 06 15:25
@csarven I added the code, just before the </article> but still cannot get headings. Bold and other things still work though.
Sarven Capadisli
@csarven
Oct 06 15:26
TorontoBoy
@TorontoBoy
Oct 06 15:28
@csarven no, a test document: https://dontai.inrupt.net/public/Hello-Dokieli/
Sarven Capadisli
@csarven
Oct 06 15:29
@TorontoBoy It works for me.
I selected 'Select text.' and then the menu came up. I clicked h3
TorontoBoy
@TorontoBoy
Oct 06 15:30
@csarven I can select text and hit h2 but nothing happens
Sarven Capadisli
@csarven
Oct 06 15:30
Just aside: I hate all editors. ME was the most decent one out there as far as DOM handling circa 2015. I want to revisit the drawing board on this..
TorontoBoy
@TorontoBoy
Oct 06 15:31
When you select a h2 should not there be a change of font to larger? or some other feedback?
Sarven Capadisli
@csarven
Oct 06 15:31
@TorontoBoy IThat works as well. notice that the new section is added just below.. scroll down a bit?
Kingsley Idehen
@kidehen
Oct 06 15:31

@newmedicine re :point_up: October 6, 2018 11:15 AM:

Yes! Dokie.li is a powerful tool for understanding and exploiting the Read-Write Web value prop of Solid, no doubt about that!

Links:

[1] https://twitter.com/search?q=dokie.li%20%40kidehen&src=typd -- Tweet collection that lead to demos of insight posts

[2] https://youtu.be/xTPRMol6u4k -- Watch how a static doc is brought to life using dokie.li

There more live demos on my channel :)

/cc @csarven

TorontoBoy
@TorontoBoy
Oct 06 15:32
@csarven I see your edits and it looks like it works for you, but it does not work for me.
Sarven Capadisli
@csarven
Oct 06 15:34
@newmedicine Yes, @kidehen has created a number of great demos.
TorontoBoy
@TorontoBoy
Oct 06 15:34
I tried editing your edits and did something odd, and deleted your edits, sorry
@csarven Is it possible for you to do a video on how to use dokieli? This is unlike any other editor I have used.
Sarven Capadisli
@csarven
Oct 06 15:36
@TorontoBoy I don't have write access to your document, so it is definitely not me doing any edits.
@TorontoBoy Yes, always interested in screencasts/demos.. some are on the website, perhaps you've seen them already? but they are short and just highlights the feature. not a walk-through.
and as mentioned above.. Kingsley has some.
TorontoBoy
@TorontoBoy
Oct 06 15:39
@csarven I have seen those vids. They show capability, which is great, but not how to use the tool. I am on solid, which uses Dokeili, so I want to learn how to use it. This has been a bit difficult. I sense something is wrong with the software installed on Solid?
Nick Bell
@newmedicine
Oct 06 15:39
I'm trying the dokieli Chrome plugin
Sarven Capadisli
@csarven
Oct 06 15:40
@TorontoBoy I agree, we should have how-to vids.
Nick Bell
@newmedicine
Oct 06 15:41
Should I be able to take an arbitrary html file, dokie.li it and save to my Solid pod?
Sarven Capadisli
@csarven
Oct 06 15:41
One of the aims (out of a million) is to get its editor work like Google Docs or something.
In terms of quality..
@newmedicine Yes. Technically any URL that loads dokieli..
heads-up re: authentication though.. if your Solid is on WebID-OIDC mode, it might not go through.. if WebID-TLS, it should be okay (AFAIK.. unless things changed on solid..) .. if where you're writing to is public write (for testing purposes!) it should be fine.
Nick Bell
@newmedicine
Oct 06 15:45
@csarven OK https://medipod.inrupt.net/public/CF/mydoc saved but not rendered as html
can only open at all via datastore
but hmm possibilities
Sarven Capadisli
@csarven
Oct 06 15:46
Sigh.. that's Solid issue. Rename file to mydoc.html
:-)
Sarven Capadisli
@csarven
Oct 06 15:48
@TorontoBoy I'll check again.. not sure off the top of my head if the Solid's data browser is using the live dokie.li resources or if it has its own copy.
Nick Bell
@newmedicine
Oct 06 15:48
@csarven https://medipod.inrupt.net/public/CF/mydoc.html I can even make rude annotations!
Sarven Capadisli
@csarven
Oct 06 15:48
@newmedicine Hey hey! Something is working :P
@newmedicine Go right ahead! That's your copy :)
Nick Bell
@newmedicine
Oct 06 15:49
The Chrome extension is a nice way of diving in.
Sarven Capadisli
@csarven
Oct 06 15:49
Good feedback!
It is under-explored. Soooo much to do there.
Nick, what's your WebID? Can you edit your profile and add foaf:knows <http://csarven.ca/#i> ?
How comfortable are you with Turtle? I'll show you something with the browser extension that will let you in on more possibilities on decentralisation.
Sarven Capadisli
@csarven
Oct 06 15:54
Great, I see you've added alreayd.
Are you sitting down? :P
Nick Bell
@newmedicine
Oct 06 15:54
yes
........
BTW that photo isn't me, I added it having googled "Random Bloke"!!
Sarven Capadisli
@csarven
Oct 06 16:00
@newmedicine Do this in private-mode so that we can maybe narrow down the issues later if something goes wrong.
  1. Go to https://www.w3.org/DesignIssues/CloudStorage
  2. Activate dokieli
  3. Go into dokieli menu, and Sign-in with your WebID
  4. Click on 'Activities' from the dokieli menu
My annotation should come up.
Nick Bell
@newmedicine
Oct 06 16:05
I can see the annotation!
Sarven Capadisli
@csarven
Oct 06 16:05
w00t
hover on the annotation's date (the link of the annotation)
open that in new tab
so, that's a resource on its own.. i've created that when i've annotated Tim's article.
Nick Bell
@newmedicine
Oct 06 16:07
Socially_aware_cloud_storage_-_Design_Issues.png
Sarven Capadisli
@csarven
Oct 06 16:07
That particular article doesn't have anything dokieli, inbox or annotationService..
Nick Bell
@newmedicine
Oct 06 16:07
Where do I hover - can't see an annotation date
Sarven Capadisli
@csarven
Oct 06 16:07
all that happen was that because you know me, dokieli was able to discover my annotation/storage .. and annotations that I've made which match the URL you're at.
Nick Bell
@newmedicine
Oct 06 16:08
So the annotations are on your POD?
Sarven Capadisli
@csarven
Oct 06 16:08
Oh.. hmm. scroll to the right
The annotation is on my server, yes.
Nick Bell
@newmedicine
Oct 06 16:08
Socially_aware_cloud_storage_-_Design_Issues.png
Yay!
Can't get anything by hovering over 2018-01-03
Sarven Capadisli
@csarven
Oct 06 16:10
That's not acting like a hyperlink?
Nick Bell
@newmedicine
Oct 06 16:11
DevTools_-_www_w3_org_DesignIssues_CloudStorage.png
Sarven Capadisli
@csarven
Oct 06 16:11
Are you in 'edit' mode by any chance?
because my lastname is underlined.. and im guessing the spellchecker is on
Nick Bell
@newmedicine
Oct 06 16:12
I'm an idiot! yes
Sarven Capadisli
@csarven
Oct 06 16:12
refresh the URL
try again..
Nick Bell
@newmedicine
Oct 06 16:12
works
Sarven Capadisli
@csarven
Oct 06 16:12
kewl
Nick Bell
@newmedicine
Oct 06 16:13
Is linkedresearch.org your server?
Sarven Capadisli
@csarven
Oct 06 16:13
So.. let's recap: you have your WebID on your own jurisdiction, you know me.. my WebID is under my jurisdiction.. you come across an article and curious to know if your friends had anything to say about it. Your social graph is not something Tim knows about.. you didn't share that with him or anyone. You were able to see something that's on my server at the click of a button.
Yes.
Nick Bell
@newmedicine
Oct 06 16:14
Genius. Are you running a SOLID server?
Sarven Capadisli
@csarven
Oct 06 16:15
LR is a community initiative.. chat at https://gitter.im/linkedresearch/chat . It has to do with scholarly communication, open science stuff.. and well, encouraging decentralisation, interop etc.. so that researchers control their own stuff and express their works as best as the medium allows.
I'm running it locally. linkedresearch is not at this time. I have my own LDP-based server that I use to experiment with: https://github.com/csarven/mayktso . So LR uses maytkso for inbox/annotation stuff.
dokie.li has an inbox that runs node-solid-server
but it is based on an earlier version.
there is a todo for dokieli which is important: getting WebID-OIDC working so that it can read/write to recent Solid version..
@newmedicine The real genius work is that, the whole mechanism is based on Web standards. There is nothing proprietary there.
The data that dokieli generates should be reusable by other conforming implementations. So, you can in fact, completely ditch dokieli today and use something else. The generated data is not branded with dokieli at all.
Nick Bell
@newmedicine
Oct 06 16:20
So will dokie.li not allow me to save to SOLID unless the folder is totally public?
Sarven Capadisli
@csarven
Oct 06 16:21
As you were testing earlier.. I've added hasPhoto to the list of possible places to look for an photo/avatar. I've pushed an update to Chrome store.. a new version should be up sometime soon. When yuou sign in, it should show your avatar beside your name. Eralier it probalby didn't
Nick Bell
@newmedicine
Oct 06 16:22
Better get rid of the sputum picture then!
I have tested and indeed I can't save to Solid unless globally writable
Sarven Capadisli
@csarven
Oct 06 16:23
(right now dokieli takes the first parsed image from profile)
Yes, at the moment, I suspect that it will only write if the Request URI is public write.
There is a long history of using WebID-TLS and that was working pretty sweet... well, it sorta/kinda still does.. but I won't get into the details now.
Going forward, we are going to handle both -TLS and -OIDC.
Nick Bell
@newmedicine
Oct 06 16:28
OK my profile pic is now CXR2.jpg - how do I share just it?
Sarven Capadisli
@csarven
Oct 06 16:29
Share?
Nick Bell
@newmedicine
Oct 06 16:30
sorry make it public which is what you want for profile pic thing? https://medipod.inrupt.net/profile/CXR2.jpg
Sarven Capadisli
@csarven
Oct 06 16:30
You need to change the access contols on that
right..
I'm not sure what hte current ACL UI is in Solid. @timbl @kidehen @dmitrizagidulin , what's the current preferred way of updating ACL for resources?
Sarven Capadisli
@csarven
Oct 06 16:35
@newmedicine Does https://medipod.inrupt.net/profile/CXR2.jpg,acl or osmething like that exists?
Nick Bell
@newmedicine
Oct 06 16:36
I'm ashamed to say I don't know how to view the contents of /profile/
Sarven Capadisli
@csarven
Oct 06 16:37
Don't be! It might not even exist.
How did you upload your photo any way?
Nick Bell
@newmedicine
Oct 06 16:38
Drag and drop onto the default graphic
Sarven Capadisli
@csarven
Oct 06 16:39
Go to /profile/ and click on that radiating icon.. 'Sharing'
That's probably where it is possible form
I htnk you want 'Viewers' to be 'Everyone'
Nick Bell
@newmedicine
Oct 06 16:40
The whole profile? Is that safe?
Sarven Capadisli
@csarven
Oct 06 16:41
no, sorry.. hmm
I'm not sure... because I suppose if you go to the jpg URL, it will show the URL and have nothing to dow ith the data browser
Does /profile/ list the contents? card is there at least I take it?
Not to ignore this but maybe this is sometihng you can resolve in solid/chat? I have to go soon any way.
Nick Bell
@newmedicine
Oct 06 16:43
yep thanks very much Sarven I will persist!
\out
TorontoBoy
@TorontoBoy
Oct 06 16:49
Here's how to add people to a chat. It also talks about how to change access control ACL. For an image you drag it to wherever you want, such as a created folder. Default for solid is world read http://dontai.com/wp/2018/10/01/playing-with-solids-pod-documentation/#addingpeople In this section I created a subdir, pulled in some images, then did a web page. It shows how to handle inages http://dontai.com/wp/2018/10/01/playing-with-solids-pod-documentation/#createwebpage
Sarven Capadisli
@csarven
Oct 06 19:08
@newmedicine New dokieli version is in Chrome store.
Did you try @TorontoBoy 's suggestion?
@newmedicine Check your inbox. Sent you a notification. Let me know what it says ;)
Sarven Capadisli
@csarven
Oct 06 19:19
Cool.. just noticed what some people tried to annotate near: http://csarven.ca/dokieli-rww#epilogue .. ie. note on a note . The end goal is precisely this feature: linkeddata/dokieli#187 that needs to be implemented. That'll be the right way of connecting annotations. The way they've done it though while works, it is not reliable. If the first note (the one that has a reply) is fetched after the second note, the second note will not find the first note, so it won't work. So, the way to do this is that when someone annotates or replies to another annotation, on send, dokieli should check to see if that annotation has an inbox and so forth.
@BigBlueHat ^ I think you'll find that exciting =)
dokieli needs 'reply' buttons though in addition to selection based annotations.
There is a reply button in dokieli menu but that's for the whole document.
Kingsley Idehen
@kidehen
Oct 06 19:42

@csarven ,
Re :point_up: October 6, 2018 12:30 PM:

I edit ACLs directly using any combination of:

  1. ssh and edit ".acl" special file associated with a folder or doc
  2. Text editor applet component of Tabulator Data Browser

What I haven't been able to do (just yet) is use the "rainbow" applet/pane to create ACLs .