About basicLTI java implementation (basiclti-util-java), ¿documentation? - java

I've as objective to create a simple "Hello World" as an LTI app. To do so, I would like to use JSP, so I look for a Java implementation of LTI to make it.
After looking for it, I found this github repository: https://github.com/IMSGlobal/basiclti-util-java
Where they've created some utils implementating LTI 1.0. The only problem about it, it's that I can't found any example nor documentation about how to use it.
The only way I think I can understand a bit about how to use it, is looking the Test classes they've created, but this only helps me in the methods way, and leaves me still without knowing how must I create the "app" (servlet? JSP? any special methods? What should be used first?
I'm a bit lost with all this. Can anyone give my a piece of advice or a way to start?
Thank you in advance
(PS: tried to tag it as LTI, but I've no reputation enough..)

I'm one of the maintainers of that project, and I'm glad you're interested in LTI!
There are many different aspects of LTI, but the main thing people are referencing when they talk about LTI is the oauth launch. You can read more about that here.
Here's a sample java lti app I wrote with the spring framework which uses basiclti-util-java, which might get you started.

Related

Evernote: Get a list of all edits

I am trying to develop a simple statistics tool to analyse various behaviours of collaborators within an Evernote Notebook using the Evernote Java API.
I need the informations which user edited which note and when.
Even though the documentation is quite good, I am still unable to find the required functionality inside the api.
(TLDR:)
Is there a way to access a list of edits of a evernote note using the API?
I am not bound to using the Java SDK so if there is a way, which is limited to using another language, it would be no problem to switch.
Andreas - Did you look into these methods in the API?
NoteStore.GetNote and NoteStore.getNoteApplicationData
It sounds like this would be a decent place to start at the very least. I cannot say for certain if this will return everything you are looking for though.
I hope this helps!
I'm not exactly sure what you are looking for but NoteStore#listNoteVersions might be the one you want. You can get a list of NoteVersionId and then use another API called NoteStore#getNoteVersion to get metadata to see which note is updated when.
Note that the API is probably only for premium accounts.

How to reuse/extend closed java webapp (.ear)?

I've got webapp project written in java (.ear).
It is running under glassfish-3 server.
I really have to extend its functonality. but there is no way to change even a line of it.
Is it possible to wrap that webapp or anything else (it has no API, only html for user)?
I know it's very generic, but i cannot provide a code or other useful things.
A similar situation to mine would be (expect my case needs much SECURITY because of sensitive data)...
Let's have a blog application (this would be the java closed webapp), which allows everything You expect from an blog app, BUT one instance handles one user.
You would like to allow new user to create blog (new instances of blog app?). The instances should be isolated each other.. but it's simple to achieve. Different instance different db and so on..
I do not expect solution (because of my generic description) but direction where to go.
I'm java novice, but i can read and reason so.. :)
.ear is just a zipped file, see doc http://en.wikipedia.org/wiki/EAR_(file_format). You can always unzip it and get hold of all files. JSP and config-files can be altered but not the java-classes (unless you decompile them).
This not a complete solution but hopefully a hint in some direction...

Service similar to Airbrake.io for java applications?

We made our own api for airbrake.io in java. This works fine but airbrake is displaying parameters and stacktraces in some kind of Rails style. This is somewhat annoying. Anyone know of similar services made for java?
Example of how data is displayed:
Parameters
{"controller"=>"", "action"=>""}
Stacktrace
/testapp/app/models/user.rb:53:in `public'
/testapp/app/controllers/users_controller.rb:14:in `index'
UPDATE 2015-02-13: This service no longer exists. The GitHub account linked below is gone, as is the company website.
Have you tried using Coalmine https://github.com/coalmine/coalmine_java Its meant to be used with the Coalmine service: https://getcoalmine.com/
I work at Coalmine and we have been using this internally for some time now. We just open sourced the java connector this week and I would be happy to help you get started with it. You can send me an email at brad#builtfromsource.com
Have you tried using http://code.google.com/p/hoptoad/ . It's a little out of date, but it should just need to update an endpoint to http://api.airbrake.io .
A quick google lead me to http://logdigger.com/ which is designed specific for JAVA specific sites.
I work at Airbrake, and I would be happy to work with you to make our site more JAVA friendly. Please get in touch ben#airbrake.io, and I'll see how we can better display java specific information.
Just adding to the others suggested here, but Raygun (http://raygun.io) has first class support for Java.
Read more here: http://raygun.io/java
I work for Mindscape who built Raygun so can answer any questions you may have about it: jd#mindscape.co.nz. We already have a large number of organizations using Raygun with their Java apps, although Raygun does support other platforms (.NET, Node, Rails, PHP, etc)

Call js webscript from Java webscript in Alfresco

I have a problem. I need execute js webscript from Java webscript. I know, how do it:
req.getRuntime().getContainer().getRegistry().getWebScript("com/home/testJs/testJs.get").execute(req, res)
, but how to construct the new WebScriptRequest object? I need do it for rewrite request path. It's a really problem for me.
Thank you.
In general, you should use WebScriptRequestURLImpl. Without any other detail, it's hard go any deeper.
That said, it's in general a bad idea to go through yet another HTTP call to yourself to fix your problem, it's basically an indication of poor modularization or lack of code reuse.
I'd rather move the piece of code that's common in both the JS and Java web scripts flows to be an Action, which you could invoke from both places without having to repackage the input parameters, or worse send them via HTTP.
Of course skuro is correct saying it is a bad idea going through the HTTP layer twice.
But in fact, executing both, a script controller and a java method is supported by Alfresco right out of the box - without ugly hacks, and without passing the entire HTTP layer twice.
You may do this:
Put your script code in the corresponding .js file.
Make sure your Java class is a subclass of DeclarativeWebScript, override executeImpl and put your custom logic there.
Sure, you can still argue that having two controllers is bad style. :)

Convert clauses to CNF

I want to transform my clauses to conjuctive normal form. Clauses are changed each time i run my program, so i guess i need to built-in a tool in my program to do this for me. Is there any suggestionn how to implement this?? i also found some libraries like:
Orbital library. I am new to logic programming and i have never used them so, its quite difficult to get through them. I also tried to find an example to clear things up, but nothing came up. I am builting my program in java language. Please help...
Thanks in advance!
can you use some of this code?
http://aima-java.googlecode.com/svn/trunk/aima-core/src/main/java/aima/core/logic/fol/CNFConverter.java
# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://aima-java.googlecode.com/svn/trunk/ aima-java-read-only

Categories