Posts

influxdb - Difference between time series database and streaming analytics engine like spark streaming -

can time series database streaming analytics system (like spark streaming / flink / kinesis analytics) can? does 1 subsume other? not looking 1 better. understanding different use cases support. time series database: based on batch time limit data consume database. spark streaming : based on micro batch time data consume. spark streaming micro batch streaming system:

curl succeeds with oath2 but fails with node.js request -

the following curl request works properly, returning authentication token should curl post -s -d "grant_type=password&username=someusername&password=somepassword&client_id=someid&client_secret=somesecret&response_type=token" "someurl" when equivalent request in node.js fails let url = someurl var datastring = 'grant_type=password&username=somename&password=somepassword&client_id=someid&client_secret=somesecret&response_type=token'; var options = { url: url, method: 'post', body: datastring, allow_redirects : true }; function callback(error, response, body) { if (!error && response.statuscode == 200) { console.log(body); } console.log(error) console.log(body) } request(options, callback); the error is {"error":"unauthorized","error_description":"an authentication object not found in securitycontext"} which...

javascript - One form by row (fields for every column) with buttons for each: how to manage the dirty state? -

i handle dirty state every single row have in table. unfortunately, adding form around break table, , can't create inside since have field every different column. last column each row contains buttons: delete , update. update appears if 1 of field of row has been made dirty. somehow, works checking each .pristine every field on row ( #name="ngmodel" ). rows created through *ngfor="let row of rows" . believe better check .dirty or .pristine on form rather on every single element. also, if update, there no way can remove .dirty status (i tried replacing data row removing array , re-adding still dirty). is there technique go around that? you use ngmodelgroup around each of rows. can check dirty flag group.

c++ - Is better to think of the '=' operator as morphing? -

this trivial question. i have minimal background in c++ , if remember correctly have been told think of operator way: int x = 1,y = 2; x = y; //put whatever in y x; but after reading lvalues , rvalues, think more suitable think of way: morph (change) whatever in x whatever in y. reason think because object referenced x semantically still same object right? not sure if makes difference data type int whether view replacement of it's value "put whatever in x y" or "morphing". anyway, online c++ standard draft concerning assignment operator describes process follows: 5.17 (2) in simple assignment (=), value of expression replaces of object referred left operand. not sure if answers question, taking formulation 1 "the value of object replaced, object remains same".

Updating WebPack 1 to WebPack 3 -

Image
i concept behind this boilerplate of separating frontend backend. trying update whole boilerplate starting webpack. version included in boilerplate webpack 1. tried upgrading version 3. apparently need upgrade version 2 since upgrading version 3 smooth , done through command line via updating webpack only. followed official guide , other separate ressources of course try modify webpack.config.js file. ended followong webpack.config.js file: still when run npm start fron client side following error: this debug file npm. var sgrid = require('s-grid'); var rupture = require('rupture'); var autoprefixer = require('autoprefixer'); var path = require('path'); var webpack = require('webpack'); var htmlwebpackplugin = require('html-webpack-plugin'); module.exports = { devtool: 'eval', entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', ...

java - Does Spring Security require the use of Spring Session? -

we looking externalize our sessions in memcached, various reasons specific our architecture, spring session not choice us. do, however, want utilize spring security secure application. do security-related features in spring security require spring session? features concurrent session control or csrf protection come mind features might require spring session. or, spring session not required @ all? no , spring security not depend on spring session library. have used spring security in several projects , never seen requirement of spring session. per default spring security uses standard httpsession in servlet api. framework highly customizable say, without have tested it, part switched out custom code stores state.

amazon web services - Output of sqoop verbose cannot be seen when run as a step in AWS EMR -

when run sqoop command script directly on cluster , redirect output file, files show proper , full content of sqoop logs. for example : sqoop import -libjars ...entire command &> sqooptest.log when open sqooptest.log shows entire map reduce log , how many records did , sqoop out. whereas when run command step in emr, sqooptest.log has first 4 lines , no mapreduce logs. please set $accumulo_home root of accumulo installation. slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. slf4j: actual binding of type [org.slf4j.impl.log4jloggerfactory] note: /tmp/sqoop-hadoop/compile/f4ce67a476aa74d3d1a3e754a52582f2/queryresult.java uses or overrides deprecated api....