Posts

svm - Box constraint in libsvm package (compare MATLAB fitcsvm and libsvm options) -

these options of libsvm package: options: -s svm_type : set type of svm (default 0) 0 -- c-svc 1 -- nu-svc 2 -- one-class svm 3 -- epsilon-svr 4 -- nu-svr -t kernel_type : set type of kernel function (default 2) 0 -- linear: u'*v 1 -- polynomial: (gamma*u'*v + coef0)^degree 2 -- radial basis function: exp(-gamma*|u-v|^2) 3 -- sigmoid: tanh(gamma*u'*v + coef0) -d degree : set degree in kernel function (default 3) -g gamma : set gamma in kernel function (default 1/num_features) -r coef0 : set coef0 in kernel function (default 0) -c cost : set parameter c of c-svc, epsilon-svr, , nu-svr (default 1) -n nu : set parameter nu of nu-svc, one-class svm, , nu-svr (default 0.5) -p epsilon : set epsilon in loss function of epsilon-svr (default 0.1) -m cachesize : set cache memory size in mb (default 100) -e epsilon : set tolerance of termination criterion (default 0...

Angularjs, value coming in token from backend not working in client side -

what wrong code it's not working, trying request call web service backend written in spring, value passing backend token wrapped, trying run code on client side form not passing value. auth.js 'use strict'; angular. module('app') .factory('auth', [ '$http', '$rootscope', '$window', 'session', 'auth_events', function($http, $rootscope, $window, session, auth_events) { var authservice = {}; this.isloggedin = function isloggedin(){ return session.getuser() !== null; }; //the login function authservice.login = function(user, success, error) { $http.post('url: http://xxx.xxx.x.xx:xxxx/xxxx/authenticateuser').success(function(authdata) { //user returned data db var users = data.users; if(users[user....

angular - How to add jquery plugins using webpack? -

i using webpack angular 2 web appllication need add jquery slider app , using jquery plugin . my webpack config jquery new provideplugin({ jquery: 'jquery', $: 'jquery', jquery: 'jquery' }) above provideplugin gives $ , jquery on app , need import jquery plugin app in main.ts include import 'jquery'; once. then in webpack config new provideplugin({ jquery: 'jquery', 'window.jquery': 'jquery', $: 'jquery', 'window.$': 'jquery' })

how to check if any item is modified by list of people through work flow in sharepoint 2013 -

i new sharepoint workflow. have requirement in list, if item modified other set of people(sharepoint group) notification set sharepoint group. able check if modified single user not multiple not if give group not working. if currentitem:modified notequals groupname not working please on how check if item modified list of people in sharepoint 2013 can find if user member of group using rest api : http://your.site.collection.url/_api/web/sitegroups/getbyname('you group name')/cancurrentuserviewmembership the response true or false. in sharepoint 2013 workflow can add activity call service. then able know if user part of group or not. hope help.

excel - Google sheets - Get all cells in a sheet with A1 notation when the sheet's name conflicts with a cell -

using new v4 google sheets api, possible range of cells in spreadsheet when conflicts cell in a1 notation ? for example, have sheet called a001 . a001!a1:d3 - range a1-d3 sheet named a001 some-other-sheet - cells sheet called "some-other-sheet" a001 - instead of getting cells sheet called a001, gets cell a1 first visible sheet. so i'm asking case #3. possible range of a001 ? (not knowing range in advance of course) unfortunately, parsing cell or named range take precedence on sheet name. can workaround choosing suitably large range , requesting that, e.g: a001!a:zzz -- request rows in column a through column zzz in sheet a001 . response include last row/col data exists.

jpa - java.lang.String cannot be cast to [Ljava.lang.String; -

i have following , error java.lang.string cannot cast [ljava.lang.string; i have changed object[] string[] because faced next error: java.lang.object cannot cast [ljava.lang.string; any idea? private collection querystatement(string selectstatement) { int colcount = 0; int rowcount = 0; int rowcounter = 0; arraylist = new arraylist(); query query = getentitymanager().createnativequery(selectstatement); list<string[]> resultlist = (list<string[]>) query.getresultlist(); if (!resultlist.equals(collections.emptylist())) { rowcount = resultlist.size(); } if (rowcount > 0) { colcount = ((string[]) query.getresultlist().get(0)).length; } rows = rowcount; cols = colcount; string[][] array = new string[rowcount][colcount]; (string[] obj : resultlist) { string[] record = new string[colcount]; (int colcounter = 0; colcounter < colcount; colcounter++) { ...

Is there a way to move pages with the onenote API? -

i trying reorganise large onenote file imported evernote. because of different ways 2 programs handle tags, import ended conceptual mess. so find , select notes (around 2,000) have particular tag , move them fresh notebook. think can see how find pages particular tag through api. can't see anyway move found page somewhere else. is there way want? or have copy content of every found page new 1 , delete old one? there no move api. follow 2 step process - copy api (for page) - https://msdn.microsoft.com/en-us/office/office365/howto/onenote-copy delete api (for page) - https://blogs.msdn.microsoft.com/onenotedev/2015/07/08/now-in-production-delete-page/