Posts

backbone.js - Marionette router not triggering controller method on route -

i'm trying upgrade application marionette 1.* > 2.4.2. biggest part of change shifting away marionette modules using browserify/watchify commonjs style modules. i've hit roadblock while trying router/controller , running. no error thrown, reason routes arent triggering controller methods. doc_router.js: var $ = require('jquery') , _ = require("underscore") , backbone = require("backbone") , marionette = require("backbone.marionette") , app = require("../../app.js") var router = marionette.approuter.extend({ approutes: { "docs": "listdocs" } }); // map controllers var api = { listdocs: function () { console.log("listdocs") // doesnt log console app.docapp.list.controller.listdocs(); } }; // update url when controller event // requires triggered, call // appropriate controller via api. app.on("docs:list", function () {...

android - Transfer data between smartwatch using nfc -

is possible transfer data between smart watch 3 using nfc api. have checked development , sdk api . can have api or sdk smartwatch3 can transfer data between 2 smartwatch3 using nfc?

php - Variables in javascript while keeps resetting -

this question has answer here: what difference between client-side , server-side programming? 4 answers i have while loop in code: while (i < 5) { var pos = new google.maps.latlng(<?php echo json_encode($lat[$b]); ?>,<?php echo json_encode($lon[$b]);?>); var marker = new markerwithlabel({ position: pos, draggable: true, raiseondrag: true, map: map, icon: 'icon.png', labelcontent: <?php echo json_encode($unidad[$b]); $b=$b+1;?>, labelanchor: new google.maps.point(22, 0), labelclass: "labels", // css class label labelstyle: {opacity: 0.75}, }); google.maps.event.addlistener(marker, "click", function (e) { iw1.open(map, this); }); i++; } now, let me explain code , happening. first of using javascript , php because need info db, , add map (google maps) need use javascript...

c# - Connection string with ASP.Net -

i have solution 3 projects: a web application (wa) a data model layer (dml) using code first, , a data access layer (dal) the wa’s web.config , dml's app.config each have connection string section specifying connection string database. i've noticed dml connection string doesn't matter. safe remove section app.config file? also, why string unused? finally, i'm guessing when application run, connection database established using connection string in web.config file , database definition managed dml/dal? is because other projects aren’t being run per se, methods , properties being referenced? thanks yes, can remove connection string dml's app.config. unused because starting web application , it's config matter @ runtime.

sails.js - How to use bigserial for primary key id with Sails js -

i have following model definition: module.exports = { attributes: { id: { type: 'bigserial', primarykey: true }, email: { type: 'email', required: true, unique: true } } when lifed sails, didn't give me warning "bigserial" data type, though not officially documented. however, on table created on postgresql, column "id" has type "text". how have bigserial primary key? you can use command in db `alter table your_table add column key_column bigserial primary key; in sails model can use somethin this: module.exports = { connection: yourconnection, tablename: yourtablename, attributes: { id: { type: 'integer', autoincrement: true, primarykey: true }, email: { type: 'email', required: true, unique: true } } note: need set db connection config on config/connections.js somepostgresqlserver: { adapter: 'sails-postgresql...

java - Get a NoSuchMethodError:Spring Framework when I am not using Spring -

Image
i running normal automation case error : java.lang.nosuchmethoderror: org.springframework.util.classutils.iscglibproxyclass(ljava/lang/class;)z @ org.apache.cxf.common.util.springaopclasshelper.getrealclassinternal(springaopclasshelper.java:86) @ org.apache.cxf.common.util.classhelper.getrealclass(classhelper.java:55) @ org.apache.cxf.jaxrs.provider.providerfactory.setcommonproviders(providerfactory.java:513) @ org.apache.cxf.jaxrs.client.clientproviderfactory.setproviders(clientproviderfactory.java:91) @ org.apache.cxf.jaxrs.provider.providerfactory.initbasefactory(providerfactory.java:138) @ org.apache.cxf.jaxrs.client.clientproviderfactory.initbasefactory(clientproviderfactory.java:81) @ org.apache.cxf.jaxrs.client.clientproviderfactory.createinstance(clientproviderfactory.java:56) @ org.apache.cxf.jaxrs.client.jaxrsclientfactorybean.initclient(jaxrsclientfactorybean.java:364) @ org.apache.cxf.jaxrs.client.jaxrsclientfactorybean.createwebclient(jaxrsclientfactorybean.java:212)...

Qt Visual Studio Community Add-in -

does qt visual studio addin support visual studio 2015 community edition? i try instal in vs say: https://wiki.qt.io/visual_studio_add-in these instructions refer visual studio 2012. replace references vs2012 appropriate file vs version (2008, 2010 , 2012 supported). qt 5.6 has not shipped , first support vs 2015. @ least officially built it. don't know if add-on available @ time. edit september, 2016: there visual studio add-in qt vs tools (beta) . in meantime, there this add-on emulates official add-on in vs 2015.