Posts

sql server - sql agent job run_status = 0 even if "Quit the job reporting success" -

Image
we using ms scom monitor result of ms sql agent jobs. currently error if step of job failed. developers says wrong , should alert if whole job fails, if steps not working ok i create test job 1 step result error. lets find job , results: select j.name, j.job_id, jh.step_id, jh.step_name, jh.run_status, case jh.run_status when 0 'failed' when 1 'succeeded' when 2 'retry' when 3 'canceled' when 4 'running' else 'unknown' end run_statusstring, j.enabled, jh.message, msdb.dbo.agent_datetime( case when jh.run_date = 0 null else jh.run_date end, case when jh.run_time = 0 null else jh.run_time end) last_runtime msdb.dbo.sysjobhistory jh inner join ( select distinct jh.job_id, max(jh.instance_id) instance_id msdb.dbo.sysjobhistory jh jh.step_id != 0 group jh.job_id ) on jh.job_id = a.job_id , a.instance_id = jh.in...

Notification after subscription through authorize.net -

i developer , set authorize.net subscription. suppose subscribed 12 months january. can transaction id , payment status , other necessary information on january or after first payment. how can transaction id , payment status , other necessary information on 2nd, 3rd, 4th payment , on. you information inside authorize.net merchant interface : https://account.authorize.net under recurring billing option, inside the transaction status report page find monthly transaction status dashboard which contains subscriptions transaction details there arb email notifications options transactions in email, under recurring billing option

ios - pass argument in selector for scheduleTimerwithTimeInterval -

in swift, have uitableviewcell has double tap , single tap implemented. double tap works. however, having bit of trouble single tap. due present of double tap, implemented single tap timer. following code prints out "single tapped" func tableview(tableview: uitableview, didselectrowatindexpath indexpath: nsindexpath) { var = nsdate().timeintervalsince1970 if (now - lastclick < 0.3) && indexpath.isequal(lastindexpath) { // double tapped on cell if let cell = discovertableview.cellforrowatindexpath(indexpath) as? commentcell { cell.doubletapcellactive({ (addbumpstatus, success) in }) } singletaptimer?.invalidate() } else { singletaptimer = nstimer.scheduledtimerwithtimeinterval(0.31, target: self, selector: #selector(discovervc.singletapped), userinfo: nil, repeats: false) } lastclick = lastindexpath = indexpath } func singletapped() { print("single tapped"...

html - How do I change the arrow in the select with Chosen plugin? -

Image
so can't figure how change dropdown arrow, need change arrow: original how want like i using chosen plugin, don't know if effects in general edits on <select> . heres php: <div class="paistofill"> <select class="form-control bfh-countries chosen-select " data-country="pt"> <option value="pt">portugal</option> <option value="af">afghanistan</option> <option value="al">albania</option> <option value="dz">algeria</option> <option value="as">american samoa</option> <option value="ad">andorra</option> <option value="ao"...

Subviews disappears while performing Flip Transition second time? -

i'm performing flip view transition on 2 views, bounded in container view. flippng them first time working fine. on second time views frame goes out of view. like [<uiview: 0x7fc2316aa030; frame = (-154 -529; 0 0); autoresize = rm+bm; layer = <calayer: 0x7fc2316aa1a0>>] after flipping again, shows container view. it's working fine if uncheck "use autolayout" in project. but wwhat if using autolayout??? here code: @ibaction func flipviews() { if a==false { uiview.transitionfromview(new, toview: old, duration: 1, options: .transitionflipfromleft, completion: {(isfinished : bool) in print(self.view_effects.subviews) // self.old.frame=self.view_effects.frame }) a=true } else { uiview.transitionfromview(old, toview: new, duration: 1, options: .transitionflipfromleft, completion:{(isfinished : bool) in print(self.view_effects.s...

Android Dragging and Scaling in FrameLayout -

recently have been trying implement dragging , scaling on picture place in framelayout. want achieve simple: able drag picture around , zoom it. went android developer website , followed guide there . then following code examples on website wrote mycustomview : public class mycustomview extends imageview { private static final int invalid_pointer_id = 0xdeadbeef; private scalegesturedetector mscaledetector; private float mscalefactor = 1.f; private float mlasttouchx, mlasttouchy; private int mactivepointerid = invalid_pointer_id; private layoutparams mlayoutparams; private int mposx, mposy; public mycustomview(context context) { super(context); mscaledetector = new scalegesturedetector(context, new customscalelistener()); mlayoutparams = (layoutparams) super.getlayoutparams(); if (mlayoutparams != null) { mposx = mlayoutparams.leftmargin; mposy = mlayoutparams.topmargin; } else { mlayoutparams = new layoutparams(300, 300); m...

java - LMAX Disruptor as a blocking queue? -

is there way can have both in 1 structure - semantics of blockingqueue, ie - non blocking peek, blocking poll , blocking put. multiple providers 1 consumer. ringbuffer, works object pool, instead of putting new object in ring buffer, want reuse existing object there, copying state. functionality lmax disruptor has out of box. is there works already? guess can try , use disruptor that, can use blocking queue blocking put(if ring buffer "full") if understand correctly. has "reusable objects" semantics need. problem how create client able pull objects(instead of using callbacks), i'm not familiar internal disruptor structure - can done? sequencers, creating new eventprocessor or that? and no, obvious solution of having blocking queue on client side , getting not ideal solution, breaks whole point of using disruptor object pool - you'll need have new pool now, or create new objects in callback before putting in blocking queue etc, , don't want h...