Posts

Showing posts from September, 2013

c# - ReportExecutionService not honoring timeout -

i using .net reportexecutionservice render ssrs reports. rendering many reports in rapid fire , randomly getting reports timeout. somewhere around 1 out of 1400 reports hang. when check hanging report in executionlog3, see report status of rssuccess, , total time of around 3s. looks report finishes response never gets seen render call, , times out after 5 minutes following exception: system.invalidoperationexception: there error in xml document (1, 2655). ---> system.net.webexception: operation has timed out. @ system.net.connectstream.read(byte[] buffer, int32 offset, int32 size) @ system.io.streamreader.readbuffer(char[] userbuffer, int32 useroffset, int32 desiredchars, boolean& readtouserbuffer) @ system.io.streamreader.read(char[] buffer, int32 index, int32 count) @ system.xml.xmltextreaderimpl.readdata() @ system.xml.xmltextreaderimpl.parsetext(int32& startpos, int32& endpos, int32& outorchars) @ system.xml.xmltextreaderimpl.parsete...

validation - Cannot resolve reference in JSON Schema using AJV - CLI -

i'm trying build json schema (draft-06) existing json data file. schema has gotten big fit in single file , trying break multiple files. keep getting error can't resovle refrence sectiontableschema.txt id http://somesite/section i've made following files , placed them in same directory. these files not hosted on webserver. settingsschema.txt: { "title":"settings", "$schema":"http://json-schema.org/draft-06/schema#", "$id":"http://somesite/settingsschema.txt", "properties":{ "section":{ ... ... ... "$id":"/section", "items":{ "oneof":[ {"$ref":"#/sectiontableschema.txt"}, {"$ref":"#/sectionnontableschema.txt"} ] }, "type":"array" } }, "type":"object" } sectiontablesche...

c# - How to dd alternate text for wingdings/symbols programmatically-Openxml -

i want add alternate text wingdings/symbols programmatically using openxml msword. basically, requirement programmatically(c#) create readable(tagged) pdf saved ms word document has symbols. currently, symbols created when read acrobat reader, symbols not read , need alternate text reader read text instead of symbol.

r - Spliting then plotting uneven vector lengths to a single graph -

Image
i'm using data in format shown: actual data set longer. column labels are: date | variable 1 | variable 2 | failed ? i'm sorting data date order. dates may missing, ordering function should sorting out. there, i'm trying split data sets new sets denoted far right column registering 1. i'm trying plot these sets on single graph number of days passed on x-axis. i've looked using ggplot function, seems require frames length of each vector known. tried creating matrix of length based on maximum number of days passed sets , fill spare cells nan values plotted, took ages data set quite large. wondering whether there more elegant way of plotting values against days past sets on single graph, , iterate process additional variables. appreciated. code reproducible example included here: test <-matrix(c( "01/03/1997", 0.521583294, 0.315170092, 0, "02/03/1997", 0.63946859, 0.270870821, 0, "03/03/1997", 0.698687101, ...

reactjs - React-router and redux manual URL enter error -

i have problem of undefined props redux store. here routehandler file function organisationsfromstore(store) { const { router, organisations } = store; return { organisations } } function organisationfromstore(store) { const { router, organisations } = store; const { organisationid } = router.params; return { organisation: organisations.get(parseint(organisationid)) } } export const organisationroutehandler = connect(organisationfromstore)(organisation); export const accountsconfigurationroutehandler = connect(organisationsfromstore)(accountsconfiguration); this hooked getroutes.jsx file handles routes: <route path="accounts" component={accountsconfigurationroutehandler}> <route path=":organisationid" component={organisationroutehandler}></route> </route> in organisation.jsx (which gets organisations prop it's parent accountsconfiguration ) component have: render() { return ( <div ...

VBA userform 2 commandbuttons + attribute value to variable -

i have basic vba knowledge. trying find way make user choice between 2 value "internal" or "external" depending on results run 1 part of code or part. what best way achieve this? i have started create user form, how can value type_trade sub , use if statement? private sub external_click() dim type_trade string type_trade = "external" end sub private sub internal_b2b_click() dim type_trade string type_trade = "internal_b2b" end sub private sub userform_click() end sub one way achieve follows: private type_trade string private sub external_click() type_trade = "external" end sub private sub internal_b2b_click() type_trade = "internal_b2b" end sub private sub someotherpoint() if type_trade = "internal_b2b" 'do end if end sub

hadoop - Apache Nifi and OPC integration issue (GetValue processor) -

i have integrated nifi opc ua [ https://github.com/wadesalazar/nifi-opcua] process apache knife 1.3.i following url [ https://community.hortonworks.com/articles/90355/collect-data-from-opc-ua-protocol.html] started. have installed simulation opc server press on windows. i able pull messages getnodeids processor on nifi, , splittext processor being used reading messages line line , sending getvalue processor shown in example, getvalue processor continuously throwing below error. i tried set "starting node" property in getnodeids processor, not able make out node property should set, please find below sample data simulation server. sample data received simulation opc server: nsu=http%3a%2f%2fopcfoundation.org%2fua%2f;i=61 nsu=http%3a%2f%2fopcfoundation.org%2fua%2f;i=85 - nsu=http%3a%2f%2fopcfoundation.org%2fua%2f;i=61 - nsu=http%3a%2f%2fopcfoundation.org%2fua%2f;i=2253 - - nsu=http%3a%2f%2fopcfoundation.org%2fua%2f;i=2004 - - - nsu=http%3a%2f%2fopcfoundation.org%2...

angular - How to specify the path when importing service into service and component? -

i know in service , component need use import {myservice} '../my-service' if want import service. but question is: is there quick way specify path service is? use '../' , use './' . have use '../parentfolderofmyservice' , have use '../parentfolderofmyservice/my-service' . p.s. using visual studio 2017. ./ refers current directory (the directory of file writting) ../ refers parent directory the names names of directories to avoid having write name of file can use barrels

web.xml - Download Excel as xlsx instead of zip format in Scalatra -

i'm writing excel workbook created using apache poi response object directly follows without creating file: val outputstream: bytearrayoutputstream = new bytearrayoutputstream() workbook.write(outputstream) excelok(response.getoutputstream.write(outputstream.tobytearray)) but once size of response exceeds 8kb, starts getting downloaded zip file in chrome , octet-stream in firefox. my excelok object looks this: object excelok { def apply(body: = unit, headers: map[string, string] = excelcontenttype, reason: string = "") = { halt(actionresult(responsestatus(200, reason), body, headers )) } } and excelcontenttype (i.e, response headers) below: val excelcontenttype = map( "access-control-allow-credentials" -> "true", "access-control-allow-methods" -> "get, put, post, delete, options", "access-control-allow-origin" -> "*", "access-control-max-age" -> "17280...

excel - Delete all columns containing partial value -

i'm trying create vba code using row 1 header , deleting columns contain "s2" in header. need code search s2 partial search because have other headers labeled xyz s2, abc s2, etc. so, want search contains s2 , delete columns criteria. help, thx cpnsider: sub dural() dim n long, long, r range, v variant n = cells(1, columns.count).end(xltoleft).column = n 1 step -1 set r = cells(1, i) v = r.value if instr(1, v, "s2") > 0 r.entirecolumn.delete next end sub

continuous integration - .gitlab-ci.yml Syntax Error -

i'm working following .gitlab-ci.yml config: image: node:latest stages: - build - test build: stage: build script: - npm install test: stage: test script: - ./testing/test.js when pushing gitlab, 'your pipeline failed' error , when @ failed, yaml error: status: syntax incorrect error: (<unknown>): did not find expected key while parsing block mapping @ line 1 column 1 as far can see, image: node:latest correct. great. the problem indentation of test job. problem making whole yml break therefore raising error on line 1. remove excessive whitespaces code below , fine. image: node:latest stages: - build - test build: stage: build script: - npm install test: stage: test script: - ./testing/test.js note in yaml indentation used denote structure. important pay attention it.

reactjs - Render component when receive props ans styled it inline -

i try render component when parent receives props. catch error: element type invalid: expected string (for built-in components) or class/function (for composite components) got: object. use material ui, when icon props true need render element inside floatingactionbutton. in case use <icon /> catch error, in case use icon - wroks, how apply styles. const iconbutton = ({color = 'normal', icon, ...props}) =>{ let icon = icon console.log(icon) return <floatingactionbutton disabletouchripple mini zdepth={1} {...props} {...getstyle(color, props.disabled, props.icon)} > {!!icon && <icon />} </floatingactionbutton> } <iconbutton color='hightligted' icon={<add />} /> this variant works, how set style in case icon : {!!icon && icon}

BaseFragmentActivityApi16.startActivityForResult(intent, int, Bundle) throwing error when targeting Android O -

i started targeting android o in project error when calling startactivityforresult(intent, int, bundle) error saying can called group id com.android.support. gradle: compile 'com.android.support:design:26.0.0' compile 'com.android.support:cardview-v7:26.0.0' compile 'com.android.support:support-v13:26.0.0' edit: as per link , bug. workaround, add comment above line of code gives warning: //noinspection restrictedapi old ans: i hope not importing wrong library. fragment support library supports fragment devices running versions prior android3.0. as per post in so also remember use activity if using android.app.fragment; use fragmentactivity if using android.support.v4.app.fragment. never attach android.support.v4.app.fragment android.app.activity, cause exception thrown. android.app.fragment different android.support.v4.app.fragment . the support library 1 annotated @restrictto(library_group) , , @hide - it's not meant ...

mvvm - Swift - How to use a closure to fire a function in a view model? -

i watching video series swift talk #5 connecting view controllers url: https://talk.objc.io/episodes/s01e05-connecting-view-controllers in video series remove prepareforsegue , use app class handle connection between different view controllers. i want replicate this, in current view model; don't how connect view controllers through view model (or if you're meant to) in code, @ github: https://github.com/objcio/s01e05-connecting-view-controllers/blob/master/example/appdelegate.swift they use within view controller var didselect: (episode) -> () = { _ in } this runs; func showepisode(episode: episode) { let detailvc = storyboard.instantiateviewcontrollerwithidentifier("detail") as! detailviewcontroller detailvc.episode = episode navigationcontroller.pushviewcontroller(detailvc, animated: true) } in same way, want use viewcontroller use viewmodel menu button press (relying on tag). my code follows; struct mainmen...

php - Codeigniter Automatic welcome email on registration -

how can send welcome email registration system? function register() { if(isset($_post['register'])){ $this->form_validation->set_rules('username','username','required|is_unique[accounts.username]'); $this->form_validation->set_rules('email','email','required|is_unique[accounts.email]'); $this->form_validation->set_rules('password','password','required'); // if($this->form_validation->run () == true){ echo 'form validate'; $data = array( 'username'=>$_post['username'], 'email'=>$_post['email'], 'password'=>strtoupper(hash('whirlpool',$_post['password'])) ); $this->db->insert('accounts',$data); ...

javascript - Automatically convert string concatenation to template literals -

i have code base many strings built via string concatenation. there automated method replacing instances of string concatenation templates ? example: const = 'b ' + c; // becomes: const = `b ${c}`; a script-based solution awesome. editor plugin better. (i using visual studio code.) this can done eslint. see rule: http://eslint.org/docs/rules/prefer-template .

scala - Break big spark sql query into smaller queries and merge it -

i have big spark sql statement i'm trying break smaller chunks better code readability. not want join merge result. current working sql statement- val dfs = x.map(field => spark.sql(s" select ‘test’ table_name, '$field' column_name, min($field) min_value, max($field) max_value, approx_count_distinct($field) unique_value_count, ( select 100 * approx_count_distinct($field)/count(1) tempdftable ) perc tempdftable ”)) i'm trying take below query out of above sql (select 100 * approx_count_distinct($field)/count(1) tempdftable) perc with logic - val perce = x.map(field => spark.sql(s"(select 100 * approx_count_distinct($field)/count(1) parquetdftable)")) and later merge val perce first big sql statement below statement not working - val dfs = x.map(field => spark.sql(s" select ‘test’ table_name, '$field' column_n...

sql - UNION SELECT after fetch and offset -

i have following stored procedure: @offset int, @fetch int select col1 col tab1 union select col1 tab2 order col offset @offset rows fetch next @fetch rows now want add third table union, after offset , fetch has been executed. possible? union select top 1 col1 tab3 order newid() @offset int, @fetch int cte1 (select top 100 percent col1 col tab1 union select top 100 percent col1 tab2 order col offset @offset rows fetch next @fetch rows only) select * cte1 union select top 1 col1 tab3 order newid()

redux-form wizard with ant.design or antd Steps -

i want use redux-form antd normal components can handled via renderfield component want use antd steps https://ant.design/components/steps/ redux-form. how implement this? can guide me?

angular - Typescript - stringify class without dynamically added properties -

i have set of typescript objects has been initiated, in code need dynamically add properties object. if need serialize object stingifying - how can won't include dynamically added properties? have loads of classes , inner classes looking generic approach rather 1 one case. so example have class defined in following way: export class car { public colour: string = ''; public model: string = ''; public diesel?: boolean = false; constructor () {} } now in code setting above car 1 drive @ moment: let car: car = new car(); car.model = 'modela'; car.colour = 'black'; car['active'] = true; and somewhere in code have take active car , serialize object can i.e. send data server: json.stringify({'data': car}); what looking string representation of object without dynamically added properties, approach generic don't have describe want remove. all wanted ;-) you can maintain list of "known keys...

Android studio camera parameters -

i made camera app need add area on surfaceview camera capture part of hole surfaceview, qr code surface view when have squar area put qr code in camera. here code private camerasource camerasource; private surfaceview cameraview; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); cameraview = (surfaceview) findviewbyid(r.id.surface_view); textblockcontent = (textview) findviewbyid(r.id.text_value); camerasource = new camerasource.builder(getapplicationcontext(), textrecognizer) .setfacing(camerasource.camera_facing_back) .setrequestedpreviewsize(1280, 1024) .setrequestedfps(2.0f) .setautofocusenabled(true) .build(); cameraview.getholder().addcallback(new surfaceholder.callback() { @override public void surfacecreated(surfaceho...

eclipse - Python desired capabilities error -

after setting desired capabilities ( desired_caps ), getting error script. error is if desired_capabilities none: ^ indentationerror: unexpected indent here code: import unittest selenium import webdriver appium import webdriver appium import webdriver selenium.webdriver.common import desired_caps webdriver import webdriver remote class cnnendtoend(unittest.testcase): desired_caps = {} desired_caps['platformname'] = 'android' desired_caps['platformversion'] = '6.0.1' desired_caps['devicename'] = 'samsung' #desired_caps['app'] = path('../../../apps/selendroid-test-app.apk') desired_caps['apppackage'] = 'com.android.vending' desired_caps['appactivity'] = '.assetbrowseractivity' print desired_caps self.driver = webdriver.remote('http://localhost:4723/wd/hub', desired_caps) def testacnninstallandlaunch(self): print ...

fortran - MPI_COMM_SPAWN causing a dead lock -

i have mpi program needs spawn wait different mpi program b finish. need spawn , wait program b second time. program a if (rank .eq. 0) call mpi_comm_spawn('prog_b', mpi_argv_null, size, & & mpi_info_null, 0, mpi_comm_self, & & child_comm, mpi_errcodes_ignore, status) write (*,*) 'parent 1 before' call mpi_barrier(child_comm, status) write (*,*) 'parent 1 after' ... change things ... call mpi_comm_spawn('prog_b', mpi_argv_null, size, & & mpi_info_null, 0, mpi_comm_self, & & child_comm, mpi_errcodes_ignore, status) write (*,*) 'parent 2 before' call mpi_barrier(child_comm, status) write (*,*) 'parent 2 after' end if program b ... wait finished ... ...

javascript - Should I use immutability for objects with functions only? -

i use immutable.js in project , try not use plain js structures. but i'm not sure if makes sense convert objects contain functions immutable ones. let's have mathutility.js : export default { sum (a, b) { return + b }, min (a, b) { return - b } //etc. more utils methods } is sense instead: export default immutable.fromjs({ sum (a, b) { return + b }, min (a, b) { return - b } //etc. more utils methods }) from pov it's not data object (hard split data functions in js time time) there no point that, i'm not sure. thanks no, don't see value in converting these immutable objects. in fact, there's big drawback: can no longer call these utility functions directly. using example: var utils = immutable.fromjs({ sum (a, b) { return + b; }, min (a, b) { return - b; } }); utils.sum; // => undefined utils.get('sum'); // => function utils.get('sum')(1, 2) // => 3 that...

html - Div is not expanding with text -

Image
.row { display: flex; } .col { flex: 1; } .container { display: flex; align-items: center; background-color: blue; font-size: 12px; color: #87909a; width: 275px; margin-top: 20px; margin-left: 20px; height: 70px; } .textview { height: 50px; line-height: 35px; padding-left: 13px; position: relative; border-bottom: 1px solid #cfd4d9; background-color: #fff; color: #5c6570; padding-right: 13px; margin-left: 20px; vertical-align: middle; display: inline-block; } .middle { vertical-align: middle; } <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="event.css"...

How to write the Array.prototype.every() method in Javascript -

as practice, want write function all() works similar array.prototype.every() method. function returns true if predicate supplied returns true items in array. array.prototype.all = function (p) { this.foreach(function (elem) { if (!p(elem)) return false; }); return true; }; function isgreaterthanzero (num) { return num > 0; } console.log([-1, 0, 2].all(isgreaterthanzero)); // should return false because -1 , 0 not greater 0 somehow doesn't work , returns true . what's wrong code? there better way write this? you can't break out of array#foreach loop returning. use loop instead. note: partial implementation of array#every demonstrate return issue. array.prototype.all = function (p) { for(var = 0; < this.length; i++) { if(!p(this[i])) { return false; } } return true; }; function isgreaterthanzero (num) { return num > 0; } console.log([-1, 0, 2].all(isgreaterthanzero)); ...

.htaccess - Leverage browser caching (htaccess apache) -

i trying fix leverage browser caching warning gtmetrix . this .htaccess file: <ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access 1 year" expiresbytype image/jpeg "access 1 year" expiresbytype image/gif "access 1 year" expiresbytype image/png "access 1 year" expiresbytype text/css "access 1 month" expiresbytype application/pdf "access 1 month" expiresbytype application/javascript "access 1 month" expiresbytype application/x-javascript "access 1 month" expiresbytype application/x-shockwave-flash "access 1 month" expiresbytype image/x-icon "access 1 year" expiresdefault "access 2 days" </ifmodule> when analysing site gtmetrix says files expires after 23 hours , 30 minutes. however, when analysing response headers in devtools files has correct expire length. gtmetrix , devtools comparison can ignore gtmetrix warning or doing wrong? ...

android - Screen pinning by startLockTask -

i'm building android 5.1 app , have found useful method startlocktask enter kiosk mode. works well. have 2 small problems, afterwards should perfect. when in kiosk mode ( startlocktask called) messages printed telling how exit kiosk mode (when navigation bar tapped). don't want such messages. how can disable that? second, unfortunately power button not blocked. there possibility lock power button (so power button has no functionality anymore)?

arm - how to obtain a 100 hz square signal using pwm timer in lpc1114/333 -

i need please. new on arm. work on embedded project. in project using lpc1114 microchip , drv8821 drive stepper motor, need timer pwm square signal 100 hz. have been reading user manual lpc1114 , wrote code failed. code below please analyze code , me. stuck in project. abmotor step data sheet , project schematic pin 27 (pin 0_8) #include "lpc11xx.h" int main(void) { //set 16 bit timer pwm operation lpc_iocon->pio0_8 = (lpc_iocon->pio0_8 & ~(0x3ff)) | 0x2; //set pin pwm use (sec 7.4.23) lpc_syscon->sysahbclkctrl |= (1<<7); //enable clock signal 16 bit timer0 (sec 3.5.14) lpc_tmr16b0->pr = 0x0; //set prescaler max value, not used here (sec 18.7.4) lpc_tmr16b0->mcr = 0x10; //set reset on counter match (sec 18.7.6) lpc_tmr16b0->emr |= 0x20; ...

python - Exporting Many BigQuery Tables to One -

we kicking off bigquery queries pull data many tables , write single table. we're using python run jobs parameters: job = bq_client.run_async_query(jobname, select_query) job.destination = bq_table job.write_disposition = 'write_append' 500 jobs are kicked off 20 @ time. unfortunately, periodically run error: exceeded rate limits: many table update operations table. more information, see https://cloud.google.com/bigquery/troubleshooting-errors questions: is due many writes single destination table bigquery jobs/query? if so, surprised google not throttling write throughput of bigquery jobs internally. if case, have hard time gauging how many jobs can executed in parallel because there large differences in dataload each select query. can avoid or handle these errors? backoff , retry? edit : the queries against google analytics 360 data. example: select ... [{datasetname}.ga_sessions_{date}]; where each dataset different dataset, , querying ...

c# - Implementing reading when there are asynchronous writes -

i have stream can read , write @ same time. msdn documentation says should return 0 read(buffer, offset, count) method when end of stream reached. as reading , writing asynchronous reading needs wait until write happens if internal buffer empty. i'm struggling how writing method can signal has been written. best can think of dispose() (or close() ) method signal end of writing feels wrong. my stream class implemented as: public class continuousstream : stream { private readonly iproducerconsumercollection<byte> _buffer; public continuousstream() => _buffer = new concurrentqueue<byte>(); public override int read(byte[] buffer, int offset, int count) { var maxbytecount = offset + count > buffer.length ? buffer.length : count; var actualbytesread = 0; (var = offset; < maxbytecount && _buffer.trytake(out var b); i++) { buffer[i] = b; actualbytesread++; } ...

vba - Extract keywords from Excel or Google spreadsheet column -

Image
i have list of interview responses , want extract keywords(from defined list of keywords) , list them(delimited commas) in column next interview questions. see image reference. can use formula? or vba? or google sheets script/add-on? thank help! in excel: =textjoin(",",true,if(isnumber(search($a$8:$a$11,a1)),$a$8:$a$11,"")) as array formula. needs confirmed ctrl-shift-enter instead of enter when exiting edit mode. if not have access textjoin() in excel, put in module , use formula described above. function textjoin(delim string, skipblank boolean, arr) dim d long dim c long dim arr2() dim t long, y long t = -1 y = -1 if typename(arr) = "range" arr2 = arr.value else arr2 = arr end if on error resume next t = ubound(arr2, 2) y = ubound(arr2, 1) on error goto 0 if t >= 0 , y >= 0 c = lbound(arr2, 1) ubound(arr2, 1) d = lbound(arr2, ...

osx - Vagrant looking for Java in the wrong directory -

i running vm using vagrant. when try start (provision) vm, keeps giving me following error: ==> default: following packages have unmet dependencies: ==> default: openjdk-8-jdk : depends: openjdk-8-jre (= 8u141-b15-2~14.04) not going installed ==> default: depends: openjdk-8-jdk-headless (= 8u141-b15-2~14.04) not going installed ==> default: e: unable correct problems, have held broken packages. ==> default: update-java-alternatives: directory not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64 ssh command responded non-zero exit status. vagrant assumes means command failed. output command should in log above. please read output determine went wrong. what mean because have java 1.8 on machine. under /library/java/javavirtualmachines/jdk1.8.0_91.jdk/contents/home which found running command in terminal $ /usr/libexec/java_home -v 1.8 how fix this? the problem not because looking in wrong directory. vagrant trying install openjdk8 , re...

node.js - JS change socket namespace from client when click on button -

i'm developping simple app nodejs , socket.io. created 2 channels , want client connect 1 of channels when click on button. problem don't response server this code : // server side var app = require('express')(); var http = require('http').server(app); var io = require('socket.io')(http); var namespaceweek = io.of('/week'); var namespaceday = io.of('/day'); app.get('/', function(req, res){ res.sendfile('mdc.html'); }); io.on('connection', function(socket){ console.log("user = " + socket.id) }); namespaceday.on('connection', function(socket){ console.log('someone connected on namespace day'); namespaceday.emit('hiday', 'hello on namespace day!'); }); namespaceweek.on('connection', function(socket){ console.log('someone connected on namespace week'); namespaceday.emit('hiweek', 'hello on namespace week!'); });...

c# - Proper way to extend class/method functionality - using NLog as example -

i'm using nlog .net logging library here example; question isn't specific nlog. typical nlog logging looks this: private static logger log = logmanager.getlogger("logger_name"); log.info("some log message"); i want add functionality info() method. perhaps want timestamp added log message. the way i've accomplished absolutely horrendous , stinks of code smell. i created helper class holds logger instance, implements it's own (but named same) getlogger() , info() methods (ugh, terrible), , includes custom functionality in info() . public static class nloglogmanagerhelper // can't derive logmanager because it's sealed { public static string _loggername; public static nlog.logger _log; public static nlog.logger getlogger(string loggername) { _loggername = loggername; _log = logmanager.getlogger(loggername); return _log; } public static void info(string message) { va...

vue.js - Pushing data into object not working in Laravel Pusher -

after saving data database, pushed $message->user = auth::user()->name , return $message . returns right object. expecting user inserted in message . { "message": { "id": 46, "channel": 1, "by": 1, "body": "saddla", "created_at": "2017-07-25 18:46:31", "updated_at": "2017-07-25 18:46:31", "user": "clyde santiago" } } but when passing $message pusher , returns original object. not including user . here's data in debug console in pusher { "message": { "id": 46, "channel": 1, "by": 1, "body": "saddla", "created_at": "2017-07-25 18:46:31", "updated_at": "2017-07-25 18:46:31" } } this messagecontroller <?php namespace app\http\controllers; use illuminate\http\request; use app\message...

error handling - Eclipse Mars Tomcat 8 server disappeared -

Image
i'm trying define tomcat 8.5.16 server everytime use 7 error , when go preference use newer server tells me v8 installation expecting 8 server although pointing tomcat 8. please help. i click ok , "the apache tomcat installation @ directory version 8.5.16. tomcat 8.0 installation expected." under windows->preferences-> adding server. i think tomcat 8.5.16 cannot added tomcat 8.0. see also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=494936 you may have upgrade eclipse or apply patch, example, https://bugs.eclipse.org/bugs/attachment.cgi?id=262418&action=edit

ubuntu - Flask wsgi python Import Error: no module named catalog -

i have been following along tutorials digitalocean , flask set flask wsgi python application served on ubuntu amazon lightsail, , i'm getting following error: error [tue jul 25 16:09:14.573839 2017] [wsgi:error] [pid 19081:tid 140056986322688] [remote 65.102.85.13:26759] catalog import app application [tue jul 25 16:09:14.573903 2017] [wsgi:error] [pid 19081:tid 140056986322688] [remote 65.102.85.13:26759] importerror: no module named catalog [tue jul 25 18:11:00.019707 2017] [wsgi:error] [pid 19082:tid 140056977929984] [client 91.196.50.33:42031] target wsgi script not found or unable stat: /var/ this current file structure root@:/var/www/catalog# ls -la total 24 drwxr-xr-x . drwxr-xr-x .. drwxr-xr-x catalog drwxr-xr-x catalog.egg-info -rw-r--r-- catalog.wsgi -rw-r--r-- setup.py and root@:/var/www/catalog/catalog# ls -la total 120 drwxr-xr-x . drwxr-xr-x .. -rw-r--r-- 1 client_secrets.json -rw-r--r-- 1 database_setup.py -rw-r--r-- 1 fb_client_secrets.js...

How can I apply correctly a radio button in a grid extjs? -

Image
i working locally. used function display radio button inside grid, , call function in renderer . know it's wrong, show want. i don't know how apply radio button work each row. i use extjs 3.4. sorry english , disorder. this array: var data_metas = [['ingrese meta n°1','','','','','','100%','100%'], ['ingrese meta n°2','','','','','','100%','100%'], ['ingrese meta n°3','','','','','','100%','100%']]; this arraystore: var store_grid_metas = new ext.data.arraystore({ fields: [ {name: 'meta'}, {name: '100%'}, {name: '75%'}, {name: '50%'}, {name: '25%'}, ...

android - Take picture from streaming video -

i need take picture mobile phone while camera open. actually, need picture face recognition. take picture, detect face , post web api (i using ayonix webapi 1.3 https://market.mashape.com/felx/ayonix-webapi-1-3 ) on android application can invoke service images on storage. service part ok. need image while camera open. is possible, , if how? not find tutorials.