Top Banner
24

NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

Jul 13, 2015

Download

Social Media

Marat Zhanikeev
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals
Page 2: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

NiceCover v1 (failed)

• LOIS presentation 01

• too complicated◦ a tree/mesh of context nodes◦ unclear pull/push design

01 myself+0 "NiceCover: A Serverless Webapp for ...on Top of Scientific Portals" LOIS研 (2013)

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 2/24...

2/24

Page 3: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

NiceCover v2: Still Wanted?

• SNS Today: content distribution network◦ the target is to get more people visit the product page

• NiceCover: context sharing network◦ content is converted into context (content is not essential)◦ context is shared, discussed, rated, etc.

• merit: any format/protocol can be applied to context and its handling◦ most SNSs today have a fixed framework

• example: one cannot use Twitter hashtags for scientific context/discussion02

02 myself+0 "A New Practical Design for Browsable Over-the-Network Indexing" ISEEE (2014)

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 3/24...

3/24

Page 4: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Tradition (left) vs Nicecover (right)

Content

Context

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 4/24...

4/24

Page 5: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Example Usecase: A Research Team

• team leader PUSHes all its context to team members

• team members TRUST all PUSHes from team leader, but also PUSHtheir own context to him/her

• team leader aggregates all PUSHes from one team members anddistributes them to others

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 5/24...

5/24

Page 6: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Definitions

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 6/24...

6/24

Page 7: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Serverless WebApp

.Serverless Webapp..

.... runs from a static HTML and uses cloud APIs for storage

• indexing (database) in cloud drives 02

• large-scale crowdsourcing: the Maps2Graphs project 04

• various browser-based apps like crawlers 03, etc.

02 myself+0 "A New Practical Design for Browsable Over-the-Network Indexing" ISEEE (2014)

04 myself+0 "Maps2Graphs: A Socially Scalable Method for Generating High-Quality GIS Datasets.." ITS研 (2013)

03 myself+0 "Reverse Engineering Twitter Hashtag Algorithm" NLC研 (2014)

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 7/24...

7/24

Page 8: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Serverless WebApp: 2 Designs

• Standalone: static HTML put in a cloud drive and shared◦ JS/jQuery is inside the HTML file◦ merit: any browser, any device◦ demerit: no autoparse

• Browser Extension◦ Chrome is the easiest to write, has floating (panel), inpage (autoparse) andbackground JS scripts

◦ merits: autoparse, flexibility, ...◦ demerit: local to your Chrome browser

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 8/24...

8/24

Page 9: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Social Networks : Push vs Pull

• PUSH: A can post in B's space (facebook)◦ participation cost: B has to accept A as a friend

• PULL: A can listen to B's broadcasts (twitter)◦ participation cost: A has to find B

• ... there are PUSH and PULL hybrids (facebook wall)

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 9/24...

9/24

Page 10: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Useful Features

1. autoparse: parse context automatically from pages on certain portals

◦ example: Mendeley

2. autosync: sync context between A and B, automatically

3. .. both features have direct effect on participation cost

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 10/24...

10/24

Page 11: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Private, Public, Readonly

• PRIVATE: read-write access, normally A's own context

• PUBLIC: A's space made public, can be accessed (written) by B• READONLY: A's space made public which cannot be written to or replaced

• ... plus the TRUST parameter which can create multiple modes for each of theabove

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 11/24...

11/24

Page 12: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

NiceCover: Basic Usage

• content travels as context from left to right

FIRST SECOND

Private Public Readonly

… … …

Content

Parse Store

Make public Register

Sync

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 12/24...

12/24

Page 13: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

NiceCover: More Modes

Private Public Readonly

………

ParseStore

MakepublicTrust

AutoSync

………

ParseStore

Check

ConfirmSync

• autotrust: autosyncsB's public into yourown private

• manual trust: checkand confirm

• zero trust: personaluse

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 13/24...

13/24

Page 14: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Participation Cost

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 14/24...

14/24

Page 15: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Participation Cost

PULL PUSH

Public (autosync )

Private

Trust

Sync

No push

Public

Sync

Trust

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 15/24...

15/24

Page 16: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Participation Cost Optimization• action is both the qualitative and, when in |action| form, the quantitative unit

• C is unit cost of action(s), E is overall cost estimation

• C|action| is the cost of a given action times (not the power) the count

• Epull,first the total cost for a given interaction

• A = FIRST, B = SECOND

Epull,first = Cpublic (1)

Epull,second = Cprivate + C|sync−trust|sync (2)

Epush,first = Cpublic + C|sync−trust|sync (3)

Epush,second = C|nopush|nopush (4)

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 16/24...

16/24

Page 17: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Cloud APIs

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 17/24...

17/24

Page 18: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Cloud APIs and Automation

• Dropbox is the best Storage API◦ full automation possible -- see the process below◦ also full isolation -- permanent set of keys

• Google Drive API is more restraining, but can be worked out

• all the others are even worse than Google Drive API

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 18/24...

18/24

Page 19: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Dropbox API Keys (1/4)

Create a Dropbox API app and get your keys. 1 private

Your own library. Only writable by your NiceCover . DO NOT share these keys!

public A copy of your information for others to get. Readable/writable both ways, by design.

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 19/24...

19/24

Page 20: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Dropbox API Keys (2/4)

Drag -n-Drop dboxkeys.html into Firefox 2

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 20/24...

20/24

Page 21: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Dropbox API Keys (3/4) Copy -paste your Dropbox keys , authorize, and get keys. 3

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 21/24...

21/24

Page 22: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

Dropbox API Keys (4/4) Register your full key with NiceCover Chrome Extension 4

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 22/24...

22/24

Page 23: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

DEMO...

1. Chrome Extension

2. autoparse

3. ...

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 23/24...

23/24

Page 24: NicerCover v2: A Serverless Webapp for Social Networking on Top of Scientific Portals

.

That’s all, thank you ...

M.Zhanikeev -- [email protected] -- NicerCover v2... Social Networking on Top of Scientific Portals -- http://bit.do/150115lois -- 24/24...

24/24