Using chart.js in .jspx files - chart.js

I want to put a line graph on a webpage using .jspx files. I was advised to use chart.js which I installed with NPM but now what should I do to use it in my .jspx script ?
The integration code on Chart.js documentation doesn't seem to work in jspx.
Thanks

Related

Can't Inspect in Typesafe Activator

I am new to the use of typesafe-activator.
I installed it using homebrew on my Mac and tried out the hello-akka tutorial.
Following said tutorial, at the end there is a section about Inspecting the App, for monitoring actor status and other things.
Now I can't seem to find the option to inspect the app in my activator web client (as shown in the image below), while googling for the problem hasn't given me any results.
Now the question is: do I need to install some plugin or something, or the homebrew version of activator is missing some functionalities?
It looks like they have decided to discontinue it:
https://github.com/typesafehub/activator/issues/1067

LIBLINEAR with Weka

I'm using Weka 3.6.11 and I want to use its LibLinear wrapper.
I get the message that "Liblinear classes not in CLASSPATH"
I am on Windows. I create the CLASSPATH to the system variables, and wrote the path to the liblinear.jar file which happens to be
C:\Program Files (x86)\Weka-3-6\LibLINEAR.jar
So now, I'm not sure what the problem is. Any ideas?
I haven't exactly resolved my issue but when I used Weka 3.7 instead of 3.6 and used the Weka Package manager to install LibLinear and LIBSVM, they worked just fine.

Setting up Nodejs for WebStorm

I've been trying all say to get syntax and autocomplete working in WebStorm. I've installed WebStorm 7 EAP. Right now, I'm trying to get this simple script to highlight properly:
How do I get WebStorm to accept app.listen(3000)?
I think the best solution which became available in one of the recent EAPs is to download library via Setting | JavaScript | Libraries | Download. Select TypeScript community stubs there and add express.js. TypeScript library file will improve completion and highlighting in pure JavaScript project. Also please see WEB-8801.

Template requires newer script versions than project contains

I try to use the breeze/angular template for MVC 4. However, during start up I get this:
Package installation error
Could not add all required packages to the project. the following packages failed to install from .../asp.net mvc 4\packages
jquery.ui.combined.1.9.2 unable to find version 1.9.2 of package.
Now I see that the folder contains jQuery.UI.Combined.1.8.24, so I was wondering:
Is there a way to edit the project so that it (maybe always) uses the latest versions of the packages by default?
Should I just press OK and afterwards install jquery.ui through nuget afterwards?
Is there a clever way to fix this?
I know there has to be a solution due to the uglyness of getting an error by default when using a custom template. I've been googling my ass off without any results :(
Hope to update the templates soon and get MS to republish. You can't update the template easily yourself.
Fortunately, this particular issue is easy to workaround by adjusting your code to use latest jQuery or rollback to 1.8.x.
I can't use the latest verison of jQuery so I manually updated the jQuery files to 1.9. Also, check your nuget manager for updates. Breeze released 1.3.6 which will update the appropriate dependent project libraries (my jQuery files were untouched).
As of Visual Studio 2012 Update 3, the Breeze/Angular SPA template is totally broken. The jQuery update fix worked with VS2012 Update 2, but some change or another in Update 3 has made VS not play nice with the sample.
It isn't ideal, but given that Update 4 is just around the corner, we might need to hold our breaths in anticipation of a post-Update 4 fix. :(

Liblinear not in CLASSPARH, on linux with weka

I download liblinear.1.92 from http://liblinear.bwaldvogel.de/ , put the .jar file under
$HOME/lib/liblinear-1.92/liblinear-1.92.jar
and start weka as
java -classpath $CLASSPATH:weka.jar:$HOME/lib/libsvm-3.16/java/libsvm.jar:$HOME/lib/liblinear-1.92/liblinear-1.92.jar weka.gui.GUIChooser
every thing was fine until I wanted to use liblinear classifier, weka shows "liblinear not in CLASSPATH". What could be the problem? Thanks.
That's because the liblinear.jar you downloaded is not the original one. The creator of that jar uses his own package structure, his classes are placed in
de.bwaldvoge.liblinear
but the standard weka classifier looks for Linear in
liblinear
On the bottom of bwaldvogels website that you linked, he gives a link to a Weka wrapper that points to his package.
The Weka package manager is available from version 3.7.2 or later, so you have to download the developer version, since the latest stable is 3.6.9.
Then, simply start the Weka package manager and install LibLINEAR. It worked for me this way. Note, that this will create a "wekafiles" directory in $HOME.