Posts

reactjs - Redux relation between component, container and mapDispatchToProps,mapDispatchToProps -

i read presentational , container components , smart , dumb components in react and concept : components “dumb” react components ; containers “smart” react components ; but did not mention mapdispatchtoprops , mapdispatchtoprops is means should state , action container , not use mapdispatchtoprops , mapdispatchtoprops in components??? or means can use mapdispatchtoprops not use mapdispatchtoprops in components??? i felt confused component, container concept a presentational component defines how things , shouldn't connected store. here example of presentational/dumb component: import react "react" import styles "./styles.css" const todolist = ({ todos, removetodo }) => ( <div classname={ styles.todolist }> { ... } </div> ) export default todolist a container defines how things work , shouldn't put dom markup or styles in kind of component. it's connected store , provides data presentatio...

apache spark - Number of executors in local mode and difference between client and cluster modes -

i have simple question spark configuration, in local mode, number of executors 1, there 1 working node? another question have difference between deploy modes client or cluster mode? documentation mention in client model, driver initiated outside cluster, can not statement.. if remember correctly, 1 executor in local mode, if not specify otherwise. the difference between client , cluster mode driver runs. in client mode runs on machine deploy job. in cluster mode, driver run on node in cluster. in client mode have easy acces whatever driver outputs stdout , stderr. go client mode if in doubt.

JMeter: do not measure the connection establishment by the first call -

i want automatically test web api service, measurement not correct because of connection establishment, takes long time, , want run short test. is possible make first sampler, because of , not include it's result summary? you can use different name first request want emit , exclude results (report). you can in setup thread group using 1 threads, way run @ start of test , real test can start.

browser - Behavior of Enter key when pressed in address bar with URL containing '#' -

i have link this: http://....../index?spid=1#tid=2&cmno=17 render index page , move window position top of comment no.17 (cmno=17). works normally. in other browser ie, firefox, when in page, , focus mouse on address bar press enter again without changing url, page not refresh. while in chrome, when same thing, page refreshed. normal behavior , difference between chrome vs ie, firefox? or it's website's source code problem? please me. lot. i asked chromium , answer: https://bugs.chromium.org/p/chromium/issues/detail?id=12952 intentional ui design.

Sharepoint 2007 workflow vs powershell script -

in sharepoint 2007 document list, have need have column expiry date, column indicator if expiry date has passed. i have spoken end user , having additional views show documents have expired not enough - want column show word "expired". i can achieve having workflow on item created event waits date less today. run workflow , work flow remain in "in progress" state until item expires (which 5 years) i can via powershell , run scheduled task every night iterate items in list , manually set column text if criteria met. my question best document list have on 100,000 documents. there impact on having workflows run 5 years.. , lots of them @ that? having ten thousand workflows paused , waiting 5 years bad idea . not put unnecessary load on workflow timer service, you'd run risk of ten thousand workflows entering error state if workflow timer service stops unexpectedly @ point within 5 years, force terminate , restart 10,000 workflows keep process g...

database - How to check if record is exist based on some Id in db using mule esb -

how check existing customerid in db using mule esb. inserting data customer table in db, in customerid unique. when insert data unable find existing customer id using mule flow. please suggest on this. getting data json format rest api. pass select query database connector . if there existing record getting value out of query or else returning empty . use choice router check emptiness. if result empty there no record exist. based on can proceed further. cheers!

mysql - Rails Joins Query on Multiple Association Search -

i have 2 models user , roles lets have 3 users "a", "b" , "c" , have 3 roles "x", "y", "z" , relation users has_many roles lets assume have role x, b have x , y , c have role x how should modify query b alone have both x , y role this query returns users either x or y user.joins(:roles).where("roles.name in (?)", ["x", "y"]) i think work on after implement below query, seeing code & implemented. user.joins("left join roles on roles.name = name").where(["name = 'x', 'y'"]) note: not tested