how to explain attribs string in etherpad? - etherpad

In the etherpad database, I saw each pad has a structure like this
{"atext":{"text":"\n*aaa\n*bbb\n*ccc\n*ddd\n\n","attribs":"*4|1+1*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4+3|2+2"},"pool":{"numToAttrib":{"0":["author","a.bdUV2ZBYrjvQXE0D"],"1":["edanz","div"],"2":["insertorder","first"],"3":["lmkr","1"],"4":["author","a.Bjh7YjuSzfu8Y8C4"]},"nextNum":5},"head":39,"chatHead":-1,"publicStatus":false,"passwordHash":null,"savedRevisions":[]}
Anyone could explain the attribs string like above?
*4|1+1*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4+3|2+2
I think there is a relationship between attribs and numToAttrib, but I don't know what it is, I will read the source code to find it.

The Etherpad Changeset Library documentation should help

Related

Setting up many to many assocations with Sequelize and Sqlite3

I have this code here, that I would like to initiate a Many to many connection with, I have the associations set. I do not have foreign keys, as from what I read that is not needed. Where I am stuck here, is how to actually connect the “book” to the “library”. I really would like someone to teach me how to do this instead of just giving me the answer, if that is all possible? Link to the Repo: https://github.com/Corey-Miller85/ManyToMany, The guide I am using to try to teach myself this is, https://sequelize-guides.netlify.com/many-many-associations/
The main part where I get stuck adding a book to the library, according to this article I should now have a method that would allow me to use “Library.addBook()” I have tried this, “Book.addLibrary” and so on with no luck. Does anyone have somewhere I can learn this better, or have someone explain it to me?
why do you think you don't have to set up any keys or foreign keys exactly? Plus this is an issue... when you use as: library_Book and name it the same on both sides of the relationship.. that doesn't really make good sense... in Book the as might make more sense like as: LibrariesForBook and in Library maybe something like as:BooksInLibrary so that your getters make sense... i think you should set up your primary keys and foreign keys and get the parent create working with models.Book.create() or whatever.. and then come back and show what you've done and we can help out with the include for that or another working method

Extracting a url from a hotspot

I've got a collection of url hotspots in a Notes document. I'd like to extract the urls associated with the hotspots. Any hints on how to approach this?
thanks
clem
I recommend using the DXL export features and then walking the resulting XML to find the URLs. Try it, and if you have issues, come back and ask questions about the specific piece of code.

Node.jar : release status and expected roadmap

Ive been looking arround stackoverflow for informations about nashorn lately and node.jar too. But i noticed there is still nothing covered about node.jar.
Does anyone have a document or extended resource about current project status as well as its roadmap ?
p.s: i suggest someone creates a node.jar tag
Oracle decided not to use node word in this project name because of legal reasons. Current name of this thing is Project Avatar. Most like Avatar.js is exactly that you're looking for.
You can find more details here https://avatar.java.net/
Cheers,
Vik
Update: here is another similar SO question with detailed answer

How to convert forms to xpages programatically?

I need to convert Notes Form to Xpage programatically ?
If anyone knows , please help me .
Thanks in advance..
There is a transformer from GBS that does this:
http://www.gbs.com/en/GBS-Xcelerator-Suite
Or an article (not programmatic) on how to do it:
http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPages_with_large_notes_forms
However i'd look at articles like the following which are arguing whether doing something like this is missing the point of XPages or not and whether it would be a benefit to re write and gain the full advantages of XPages instead of a hybrid.
http://www.geniisoft.com/showcase.nsf/archive/20090101-0857

How to write input method mim file for ibus-m17n?

I want to write a new input method for iBus. Specifically for ibus-m17n.
Can somebody point me to some web pages that help to understand the format of mim files used for ibus-m17n?
Well there is the doc and look at layout already created MIMs. They also have a mailing list.
Its some form of lisp, I havent done anything more than simple keymappings myself.

Resources