Posts

reactjs - react css animation when component mounts -

here's fiddle of want do: https://jsfiddle.net/s7s07chm/7/ but want react instead of jquery. basically, put classname of element in state, , on componentdidmount update classname initiate transition. but isn't working. component rendering transitioned state. in other words, instead of sliding down, appears @ bottom beginning am doing wrong? if so, there way accomplish this? here's actual code getinitialstate: function() { return { childclass: 'child' }; }, componentdidmount: function() { this.setstate({ childclass: 'child low' }); }, the reason won't work because dom won't updated until component mounted. class you're assigning getinitialstate never appear in dom, 1 set componentdidmount will. ray mentioned, should take @ reactcsstransitiongroup.

List jenkins plugins and dependencides (with graph) -

i have added many plugins jenkins. how can list plugins , dependencies ? plugins depend on 1 ? 1 orphan, etc. ideally, explain how make graph (graphviz/dot...) ? copy-paste groovy snippet list of plugins (this snippet based on this exemple zendesk.com ): note: groovy must pasted in _manage jenkins >> script console def plugins = jenkins.model.jenkins.instance.getpluginmanager().getplugins() plugins.each { println "${it.getshortname()} (${it.getversion()}) => ${it.getdependencies()}" } to produce graph, execute snippet generate dot graph (graphviz) file... def plugins = jenkins.model.jenkins.instance.getpluginmanager().getplugins() println "digraph test {" plugins.each { def plugin = it.getshortname() println "\"${plugin}\";" def deps = it.getdependencies() deps.each { def s = it.shortname println "\"${plugin}\" -> \"${s}\";" } } println "}...

haskell - Prefix lenses for a type -

i have following data declared: data = { self :: string , id :: string , description :: maybe string , name :: string } deriving (generic, show) instance fromjson makelensesfor [ ("self", "somethingself") , ("id", "somethingid") , ("description", "somethingdescription") , ("name", "somethingname") ] ''something is possible automate lenses creation naming convention following simple rules. after peek @ source code, can see there's lensrules instance, called abbreviatedfields, but, sadly, using makelenseswith abbreviatedfields ''something generates no lenses @ all. doing wrong? here's source code: https://hackage.haskell.org/package/lens-4.14/docs/src/control.lens.th.html#abbreviatedfields

spring-cloud-stream producer transactionality -

i've done little testing kafka binder , appears spring-cloud-stream producers don't participate in spring-managed transactions. given code @requestmapping(method = requestmethod.post) @transactional public customer insertcustomer(@requestbody customer customer) { customerdao.insertcustomer(customer); source.output().send(messagebuilder.withpayload(customereventhelper.createsaveevent(customer)).build()); if (true) { throw new runtimeexception("rollback test"); } return customer; } the customerdao.insertcustomer call rolled back, kafka message still sent. if have consumer on customer event inserts customer data warehouse, data warehouse , system of record out of synch on transation rollback. there way make kafka binder transactional here? the kafka binder not transactional, , kafka not support transactions in general. we intend address transaction management spring cloud stream 1.1: htt...

sql - How can I call a function in another CFC file from within a query of a function in one cfc file? -

i have 1 cfc file (info.cfc) multiple functions shown below. <cfcomponent output="true" extends="datefunctions"> <cffunction name="getstatuses" access="remote" returntype="any" output="true" returnformat="plain"> ... </cffunction> <cffunction name="viewdate" access="remote" returntype="any" output="true" returnformat="plain"> <cfquery name="records"> select dbo.tickets.incident, dbo.tickets.start_date, dbo.tickets.days_due dbo.tickets </cfquery> </cffunction> </component> and other cfc file (datefunctions.cfc) containing function 2 arguments , returning date. datefunctions.cfc file follows: <cfcomponent output="true" name="datefunctions"...

How to apply a text file with multiple variables to the batch console -

okay have batch program writes character's stats txt file when save game. unable load stats properly. thought maybe if saved them console commands , syntax use type command , run commands setting variables on console ones in txt file. there simple way writing of variables txt file reverse? sample code of variables being written: if not exist "%~dp0\users" md "users" ( echo set charname=%usercharacter% echo set level=%level% echo set health=%health% echo set expcap=%expcap% )> "%~dp0\users\%usercharacter%.txt" see wrote text file thinking load file , set variables file had. didn't work. if have questions ask. can't post pictures right think got point across. you're close. instead of type , run text file through loop. for /f "usebackq delims=" %%a in ("%~dp0\users\%usercharacter%.txt") %%a the set commands have automatically run. how works for /f loop takes in command, file, or string (in c...

delphi - concurrency between OS processes -

this question has answer here: how ensure single instance of application runs? 2 answers the problem over-complicated. straightforward solution redesign uwe , david suggested: (1) worker app. (2) long-running tcpserver, awaits clients , calls workers (3) clients. ======================== i build sampleapp functions as: when started, checks if there sampleapp running; if not, starts tcpserver , tcpclient , passes command tcpclient tcpserver , work, closes tcpserver , , quits; if yes, starts tcpclient , passes command other's tcpserver , quits. (the other's tcpserver work.) there may multiple sampleapp started when first 1 still running. i have no idea how solve problem practically, example : which architecture start ? ( reputed omnithreadlibrary seems deal thread-based concurrency instead of os-process-based concurrency. ) there no s...