GithubHelp home page GithubHelp logo

hasanatkazmi / nopsa-ribbon-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 28.3 MB

API for HIIT's NOPSA which is currently used by MS Office Ribbon / addin

License: MIT License

C# 67.35% JavaScript 0.94% Python 31.71%

nopsa-ribbon-api's Introduction

This is RESTful API interface for NOPSA plugins for Word Processors etc.

http://nopsa.hiit.fi/
Project website: link_to_ec2_instance


HOW TO INSTALL

Note: These set of instructions assume that you are running Debian (Lenny). 
It might also work for other systems as well.
It is also assumed that you have sql server installed.


1) changing sources.list temporarily:
	create a backup of source.list:
	cp /etc/apt/sources.list /etc/apt/sources.list.backup
	rm /etc/apt/sources.list
	echo "deb http://ftp.debian.org/debian/ squeeze main" > /etc/apt/sources.list

2) update apt-get:
	sudo apt-get update

3) install tornado, sqlalchemy, simplejson:
	sudo apt-get install python2.6 python-tornado python-sqlalchemy python-simplejson

4) undo changes in source.list which we did in step 1:
	rm /etc/apt/sources.list
	cp /etc/apt/sources.list.backup /etc/apt/sources.list
	rm /etc/apt/sources.list.backup

5) update apt-get:
	sudo apt-get update

Please don't skip step 4 and 5 as it will update other installed binaries which may harm other servers running on machine.


6) now tornado is installed but tornado version is 1.0.1 (we need atleast 1.2.1) and doesn't support all features are used in ribbon API.
	So lets manually update tornado.
	(we installed old tornado at first place so that all depedences can be installed):
	wget -O tornado.tar.gz https://github.com/downloads/facebook/tornado/tornado-1.2.1.tar.gz
	tar -xvvf tornado.tar.gz
	cd tornado-1.2.1
	python2.6 setup.py install

7) run tornado tests to confirm install:
	cd tornado/test
	python2.6 runtests.py

	confirm that all tests run successfully

8) download the server code:
	(cd into the directory you want server code to reside)
	wget -O ribbon.tar.gz https://github.com/hasanatkazmi/NOPSA-Ribbon-API/tarball/master
	tar -xvvf ribbon.tar.gz
	cd hasanatkazmi*
    cd serverside
	python2.6 tornado.py


By now server must be up and running. Visit http://localhost:8000 in a web browswer

DEBUG:
    0)  Use aptitute to install if apt-get creates problems 
	1) 	Confirm database connectivity string in config.py
	2)	Confirm that line 137 of web/demp.htm conforms to the exact server address

nopsa-ribbon-api's People

Contributors

hasanatkazmi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yefengcn paba

nopsa-ribbon-api's Issues

Installer does not update all necessary DLLs

In many computers, the installer fails to install the Ribbon correctly, and this causes errors when an image is double-clicked. The reason is supposedly in the old DLLs and Windows Service Pack update. The installer should take this into account.

Vertical scrollbars are not visible

Often the plugin computes its horizontal space incorrectly, and the vertical scrollbar becomes unreachable because it is drawn outside the program's viewport. Resizing the window helps.

Addin not integrated with all color schemes on Office

Addin must adopt UI colors as per color schemes chosen by user for Office. Currently, it looks very unpleasant wien e.g. blue color is chosen.
(nIn power point, go to option -> General and choose different "color scheme" . you would feel what I mean)

Support for multi-word searches

Currently the search does not handle the use of multiple keywords very well. A more flexible tag matching would be useful.

Add licensing information

The project is an open source project. However, it is missing the licensing information on the project page.

No user feedback on search progress

The spinner does not communicate enough to the user about the progress of the search. It should help the user understand which of the 3 alternatives will be the result:

  1. search returns 0 images (sometimes this is communicated so that the spinner disappears, and a blank screen shows, but that is not enough)
  2. search is still in progress and some results have already been found, and the user should wait
  3. search is not going to terminate or there are unexpected delays, and no images will be returned

Add a licensing information

The project is an open source project. However, it is missing the licensing information on the project page.

Attribution slide should have more information

The last slide with attributions should have:

  1. a small thumbnail of the image placed next to the CC information. This way it is possible to know which image is related to which attribution.

  2. there could be an URL to the page where the user can download or read more about the Ribbon.

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.