Wednesday, June 21, 2017

Using JSRender to render a CSS grid layout

This was produced by this code: https://gist.github.com/bshambaugh/c17ff5b1efc8065517bedc398a0c4483

Thursday, June 15, 2017

Link to 2011 Require.js MVC tutorial


From the example below, showing local storage:

http://verekia.com/requirejs/build-simple-client-side-mvc-app-require-js/


Addition (June 17, 2017):




See also jquery templates: https://github.com/BorisMoore/jquery-tmpl ,https://github.com/borismoore/jsrender , https://github.com/janl/mustache.js ... and other template mentioned on http://verekia.com .

Tuesday, June 6, 2017

won: apples to apples - 2nd try

This is an example of one user publishing a need, and another user satisfying it. Screenshots, which become larger upon clicking upon them, are shown. Apples are used for the example.


A client side certificate is asked for. For the meantime, I believe this should be ignored (canceled) as none are valid. However, chosing one could be okay too based on visiting the data folder (and perhaps documentation somewhere). I believe solid.mit.edu uses a similar authentication scheme, although the chosen cert matters to solid (but maybe less so in the future since they are emphasizing OpenIDConnect).


Interestingly, later when I try to download a need with wget, I get complaints about a self signed certificate, so an in-browser complaint does not seem that peculiar. See this gist for an in-browser example:
Note: Apples to Apples is a trademark for a game.

won : want apples & give apples (apples to apples .. 1st try)

Attempted Reconstruction...
 







Monday, June 5, 2017

WoN screenshots (cont 2):


Plan to compile web of needs with maven

Get Java Ready:

Download it:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install it:
https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html#BJFJJEFG
(I suppose this means extract and move it)

https://www.cyberciti.biz/faq/linux-unix-bsd-extract-targz-file/
tar -zxvf {file.tar.gz}

Dynamic Link it:
ln -s /usr/lib/jvm/jdk1.8.0_121/bin/javac javac


Edit: Or try not downloading from the browser page...since you are using a headless server:
(https://stackoverflow.com/questions/10268583/downloading-java-jdk-on-linux-via-wget-is-shown-license-page-instead)

Get Maven Ready:

Download it:
wget  https://archive.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip | sudo tee $(echo `md5sum apache-maven-3.3.3-bin.zip`)

Extract it:
unzip apache-maven-3.3.3-bin.zip

Move it:
cp -r apache-maven-3.3.3/ /usr/local/

/usr/bin/



Dynamic Link it:
cd /usr/bin
ln -s /usr/local/apache-maven-3.3.3/maven/bin/maven mvn

External (possibly unneeded) resources:
Install it:
http://maven.apache.org/install.html

Put together the web of needs with Maven:

Install git: sudo apt-get install git-all
(https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)



Clone the repository:
git clone https://github.com/researchstudio-sat/webofneeds

cd into the webofneeds/webofneeds directory

run: mvn install

If trouble is encountered see:
https://github.com/researchstudio-sat/webofneeds/blob/master/documentation/building-with-maven.md

and:
https://github.com/researchstudio-sat/webofneeds/blob/master/documentation/troubleshooting.md

=================================

Results without skipping tests (mvn install):
https://gist.github.com/bshambaugh/3114658a4ec029b45e77d033b86c7ef4

Results when skipping tests (mvn install -DskipTests -DskipITs):
https://gist.github.com/bshambaugh/bdd5d4f70afde3abc2ea513c9fc2e69e

WoN screenshots (cont.)