Posts

Git Tower - how to overwrite master with a previous commit -

somehow i've created git mess latest commit wrong previous commit right. i tried revert previous commit in tower (right click) created kind of merge didn't fix issue , things messier ever. i've created new branch commit know correct , have tested , looks great. question : possible replace master branch new branch? i want avoid creating bigger mess know if possible or if idea? search results scary don't understand they're going do. for life of me don't know went wrong repo contained 1 branch. ok, if you'd replace master commit in tower/github, here's worked me: click on master branch , find commit you're going use replace master right click , choose "create new branch ..." name branch 'master-new' publish branch github login github , click settings button administer repo make sure 'options' selected in left subnav under repository name field, find 'defaualt' dropdown menu change defaul...

Facebook API For Wall Post -

i trying post on facebook wall through fb api , getting error in console. error object { message="(#200) user hasn't a... perform action", type="oauthexception", code=200} code 200 message "(#200) user hasn't authorized application perform action" type :"oauthexception" i trying way. <div id="fb-root"></div> <script type="text/javascript"> (function() { var e = document.createelement('script'); // replacing older version until fb fixes cancel-login bug e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; //e.src = 'scripts/all.js'; e.async = true; document.getelementbyid('fb-root').appendchild(e); }()); window.fbasyncinit = function() { fb.init({ appid : 'xxxxxxxxxxxxxxxxxxx', status : true, // check login status cookie : true, // enable cookies allow server ...

javascript - How to hide and show multiple div(s)? -

i have multiple div(s) in code when click on of div hidden division shown want on click of particular div hidden division of slide down , on clicking outside hides the link code http://jsfiddle.net/evgd6/89/ $(document).ready(function(){ $('.click').click(function(event){ event.stoppropagation(); $(".showup").slidetoggle("fast"); }); $(".showup").on("click", function (event) { event.stoppropagation(); }); }); $(document).on("click", function () { $(".showup").hide(); }); body{margin:50px;} .showup{width:100px;height:100px; background:red; display:none;} .click{cursor:pointer;} <div class="click">click me</div> <div class="showup">something want show</div> <div class="click">click me</div> <div class="showup">something want show</div> <div class=...

java - MQJE001: Completion Code '2', Reason '2495 -

i want receive messages ibm mq based on java. write simple code test want. here sample code below. const.mq_qmanager = "qm.creditweb3t.pc"; const.mq_queue_receive = "mq.airports"; mqsimpleconnectionmanager myconnman = new mqsimpleconnectionmanager(); myconnman.setactive(mqsimpleconnectionmanager.mode_auto); mqqueuemanager qmgr = new mqqueuemanager(const.mq_qmanager, myconnman); when new mqqueuemanager . it’s throw error message. error message mqje001: completion code '2', reason '2495' may me figure out what’s wrong here? lot. (1) 1st posting requesting connection queue manager in "bindings mode". means must run code on same server queue manager running. (2) 2nd posting requesting connection queue manager in "client mode" (over network i.e.tcp/ip). means can run code on remote server , connect remote queue manager using network.

excel - How to modify numbers at the end of a cell using a formula -

i have cells in excel containing data of form v-1-2-1, v-1-2-10, v-1-2-100. want convert v-1-2-001, v-1-2-010,v-1-2-100. have 2000 entries if of data follows format shown use find return position of '-'. there 3 instances of character , need find third 1 use position given first instance start position parameter of second find , again third (essentially nesting find). once have position of third '-' know final set of numbers (from returned third position+1 len of string) , use substitute or combination of other excel string functions configure final portion need it. i'm assuming excel has data formatted text. if need further assistance i'm happy knock formula in excel i'm off work , won't able around 9 hours.

c# 4.0 - getdatasourcerowindex nullreference after filter using gridview (Devexpress Winform)? -

i'm using gridview devexpress. after use filter on component, there error nullreference. if don't using filter. there isn't error on code. (int = 0; < gridview1.rowcount; i++) { datarow dr; dr = gridview1.getdatarow(gridview1.getdatasourcerowindex(i)); messagebox.show(dr[0].tostring()); } that code. solution datarow value gridview after filter? maybe problem using rowcount. datasourcerowindex based on index underlying datasource holds. thats not same. if grouping or sorting rowhandle of gridview changing. , rowcount shows how rows in gridview. must not equivalent datasourceindex. try following datarow: 1. foreach (datarow row in ((datatable)gridcontrol1.datasource).rows) { //here can access row via row variable } you have know rowcount property cant used accessing rows safely! if need further dont hesitate asking.

NULL equality in SQL Server 2008 R2 -

i know default null = null not true, so if null = null select 1 else select 2 will give 2 then can change behaviour by set ansi_nulls off and result 1 my question why after setting ansi_nulls off, following select still returns nothing? select * (select 'a', null) ta (c1, c2), (select 'b', null) tb (c1, c2) ta.c2 = tb.c2 i can't answer why behavior documented. from set ansi_nulls (transact-sql) set ansi_nulls on affects comparison if 1 of operands of comparison either variable null or literal null. if both sides of comparison columns or compound expressions, setting not affect comparison. and completeness. in future version of sql server, ansi_nulls on , applications explicitly set option off generate error. avoid using feature in new development work, , plan modify applications use feature.