Posts

git - Is there any way to get Phabricator to push diffs to a repository? -

our team has started experimenting using phabricator code reviews. apart phabricator, have test-system automatically builds , tests code pushed specific branch on our main git repo. there way arc diff automatically push diff specific branch? tests take couple of hours, , prefer if possible people review code while being tested. somehow integrated unit test not have complete before diff sent fo review? the purpose of arc diff allow tests/code review performed without landing code on branch. here through herald rules, harbormaster build plans, , jenkins. when diff created/updated, herald rule watching repo triggers harbormaster build plan triggers jenkins via http post request. try detail out basics but, recommend looking @ additional materials build process, if choose go route. please note - harbormaster listed "prototype". meaning, there limited support it. but, aside writing own custom code, there no other way i'm suggesting here. i hope have...

java - Making the getX() and getY() methods to get the locations of the panel, not the frame -

i'm using getx() , gety() methods in mouselistener class location of panel, it's getting location of frame instead, , includes top of title bar , sides, it's not getting location want. have the: @override public dimension getpreferredsize() { return new dimension(300, 300); } method in paint class override frame when paint in graphics, , set paint location of x, , y, sets panel location, , not frame location, don't know how make mouselistener class same. please help. thanks. code mouselistener class: package events; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class events implements actionlistener, mouselistener, mousemotionlistener { static events events = new events(); int x; int y; public void actionperformed(actionevent e) { } public void mousepressed(mouseevent e) { } public void mousereleased(mouseevent e) { } public void mouseentered(mouseevent e) { } public ...

java - Generate a random interger within a case: in a Loop() -

i have functioning script game, uses java client. i trying generate random number upon loop each time case: comes up. public int onloop() throws interruptedexception { switch (getstate()) { case attack: entity seagull = npcs.closest("seagull"); if(seagull.exists()) { seagull.interact("attack"); sleep(random(1500, 2000)); } break; case attacking: int decide = random(1, 3); if(myplayer().isanimating()) { getskills().hoverskill(skill.strength); log("checking stats..."); sleep(random(1000, 9000)); }else if(decide == 3) { getmouse().moveoutsidescreen(); sleep(random(5000, 30000)); log("afking"); } break; here using generate random int: i...

How to make a SignalR connection *after* the page loads and reconnect after timeout -

i have been using signalr while in current versions of chrome, ie , ios safari. i've noticed "spinner" indicates page loading continues spin. we doing further testing , seeing signalr connect running until times out. /signalr/connect?transport=serversentevents&clientprotocol=1.5&connectiontoken=xxxx&connectiondata="%"5b"%"7b"%"22name"%"22"%"3a"%"22chathub"%"22"%"7d"%"5d&tid=1 in older browsers, looks user if page has not finished loading. moreover, when connect times out, application stops working (or in cases throws error). i've been able reproduce tutorial ms in both version provided , after upgrading tutorial signalr 2.2.0 , jquery 2.1.3 via nuget here's link tutorial: http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr 1) there best practices making connection signalr such connection doesn't ...

javascript - angularjs ng-repeat determine what item is clicked -

im loading objects clickable boxes using ng-repeat . want return objects title when user has clicked item-box put in ng-model since im using ng-repeat model reused in every created box... i searching way check selected objects title. , put in ng-model re-use later on. code now: creation of object boxes in html: <div class="row form-group product-chooser"> <a href="#drop"> <div id="catagories" ng-repeat="catagories in main.catagories" class="col-xs-12 col-sm-12 col-md-4 col-lg-4" value="{{catagories.title}}"> <div class="product-chooser-item"> <img src="{{catagories.image}}" class="img-rounded col-xs-4 col-sm-4 col-md-12 col-lg-12" alt="catagories"> <div class="col-xs-8 col-sm-8 col-md-12 col-lg-12"> <span class="title">{{catagories.tit...

java - How to see GHResponse on map by using GraphHopperWeb -

i trying use graphhopperweb in order see route response on web. not know how use it, don't wrong. using following code (in java) in order find path 1 point other point following: ghrequest req = new ghrequest(32.070113, 34.790266, 32.067103, 34.777861). setweighting("fastest") .setvehicle("car"); graphhopperweb gh = new graphhopperweb(); gh.load("http://localhost:8989/route"); gh.setinstructions(true); ghresponse response = gh.route(req); system.out.println(response); i following print screen: nodes:24: (32.07012,34.79021), (32.07011,34.7902), (32.07006,34.79019), (32.07028,34.78867), (32.07029,34.78852), (32.07029,34.78847), (32.06994,34.78814), (32.06942,34.78761), (32.06931,34.7875), (32.06912,34.78731), (32.06862,34.78667), (32.06756,34.78546), (32.06627,34.78391), (32.06617,34.78375), (32.06604,34.7836), (32.06622,34.78317), (32.06768,34.78009), (32.06769,34.77998), (32.06767,34.77992)...

java - Jdbc sql syntax error for date -

resultset resultobj = statementobj.executequery("select employee_id job_history start_date > convert(datetime, '2001-01-13' )"); i error while iam executing program: java.sql.sqlsyntaxerrorexception: ora-00904: "datetime": invalid identifier if using oracle, use oracle syntax: select employee_id job_history start_date > date '2001-01-13'; the date keyword allows use iso-standard syntax date constants.