Posts

javascript - jQuery dialog box and fancy box conflict -

i using fancybox in same page have used jquery dialog box $(document).ready(function () { jquery.noconflict(); $(".fancybox").fancybox( $("#productquickview").css("display","") ); $("#fbclose").click(function () { $.fancybox.close(); }); }); but unable use dialog box <script src="../javascript/jquery-1.8.0.min.js"></script> <script src="../javascript/jquery.fancybox.js"></script>

ibeacon - Android Altbeacon Library BeaconSimulator on release version of application -

i want ask if there way use beaconsimulator simulate ibeacon on release version of application. displaying content based on ibeacon user sees , want show information application , example user needs turn on bluetooth etc. i want have kind of ibeacon visible (also when bt turned of) instruct user. there way achieve ? thanks regards juraj the android beacon library 's beaconsimulator automatically disabled release builds of applications. intended safety check, keep accidentally releasing code simulator active if forget disable in code. this safety check based on applicationinfo.flag_debuggable, automatically gets set false gradle when doing release build. if want allow simulator run in release build, can try setting debuggable flag true release builds in build.gradle file this: android { ... buildtypes { release { debuggable true } }

javascript - Split the string using regex -

this question has answer here: how remove <br /> tags , more string? 6 answers i have innertext <div contenteditable="true"> hi</br> multiple line</br> code </div> i want make single line , instead of take space , split comma.. tried stextbox.split(/[\s,]+/); include new line please suggest me solve problem updated expected output : hi multipleline code .. have calculate stextboxsplit[stextboxsplit.length - 1] , gives stextboxsplit = ["hi", "this", "is", "multiple","line","code" ""], , in give "" last index last index code . want work in c# mvc.. you can use following regex : >([^<]*?)< demo this regex use negated character classes match thing between > , < except < .

retrieving data from list in c# -

i trying retrieve data list of data. each element has following structure (not actual code): class pathpatternstringswithddv { list<string> pathpatternstring; list<point> ddv_xy; string fromstate; } i need compare first element of pathpatternstring , last element of ddv_xy , using following line of code: (list<pathpatternddxy_withprobability>) rtnlist = allpathpatternddxy_withprob.where(a => a.pathpatternstring[0] == ptrn && a.fromstate == fstate && a.ddv_xy[a.ddv_xy.count - 1].x == _x && a.ddv_xy[a.ddv_xy.count - 1].y == _y this gets me error ("delegate not take 1 element"). ideas? change line to: ienumerable<pathpatternddxy_withprobability> rtnlist = allpathpatternddxy_withprob.where(a => a.pathp...

javascript - how to signup user using google-plus integradation in web? -

hi i'm trying integrate google plus in web application. have added google-plus button using link page instructed.when click on button open window access user accept or cancel. how use object user login application? function signincallback(authresult) { if (authresult['status']['signed_in']) { // update app reflect signed in user // hide sign-in button user authorized, example: document.getelementbyid('signinbutton').setattribute(); } else { // update app reflect signed out user // possible error values: // "user_signed_out" - user signed-out // "access_denied" - user denied access app // "immediate_failed" - not automatically log in user console.log('sign-in state: ' + authresult['error']); } }

ios - Sending message to Singleton Object -

i have singleton class perform web service operations. suppose have created method -(void)getprofileswithname:(nsstring *)profilename profile information. using block objects response web service operations class. since web service operations singleton many objects can send same [self getprofileswithname:@"john"] messages @ time. in scenario first object makes web service request not receive data . what proper way perform web service operations using singleton class ? can use nsoperationqueue ? nsoperationqueue 1 possibility. queue.addoperationwithblock(_ block: () -> void) method adds new block. think without queue. not set block instance variable, use directly in success method or block.

excel - Option Explicit - Not sure how to dim this -

i have existing macro use format columns. i've been using without problems. now, i'm looking learn how use option explicit , running problem defining variable. what should dim'ing level as? tried dim level string didn't work. i'm trying better understanding feedback appreciated. option explicit sub adviseformat() dim form worksheet set form = sheets("formatting") form level = worksheetfunction.match("level", .rows("1:1"), 0) .columns(level).delete .columns("d:e").delete .range("u:u").value = range("e:e").value .columns("e").entirecolumn.delete .columns("f:i").delete .columns("i").delete .columns("l").delete .columns("m").delete form.range("a:b").entirecolumn.insert form.range("a1").value = "owner" form.range("b1").value = "comment" form.range("a1").interior.color = 65535 form.rang...