Posts

r - How to display (advanced) customed popups for leaflet in Shiny? -

i using r shiny build web applications, , of them leveraging great leaflet features. i create customed , advanced popup , not know how proceed. you can see can in project created post on github , or directly in shinyapp.io here the more complex popup is, weirdest code is, sort of combining r , html in strange way (see way define custompopup'i' in server.r ).. is there better way proceed? practices build such popups? if plan display chart depending on marker being clicked, should build them in advance, or possible build them 'on fly'? how can that? many in advance views on this, please not hesitate share answer here or directly change github examples! regards i guess post still has relevance. here solution on how add possible interface output leaflet popups . we can achieve doing following steps: insert popup ui element as character inside leaflet standard popup field. character means, no shiny.tag , merely normal div . e.g. classic uiou...

java - Start tomcat7:run maven plugin within eclipse and debug -

i want debug webapp in eclipse. point tomcat , webapp ran inside of eclipse in debug mode, breakpoints in webapp code have no effect. details webapp maven artifact , use m2e plugin in eclipse bridge between maven , eclipse. i've managed start tomcat server within eclipse. webapp started in tomcat nicely, in debug mode if choose so: in eclipse, right-click project run > maven build... (not "maven build") a window opens. in text field "goals", enter "tomcat7:run" click apply click run the tomcat server starts running , stdlog printed window within eclipse. can stop conveniently , start again in debug mode. far, that's want , expect. problem set breakpoint in code of webapp , restart tomcat in debug mode within eclipse. now, breakpoint isn't active: doesn't have little tickmark active breakpoints have , know code executed, doesn't stop @ breakpoint. there can 2 ways fix , need 1 or both of them. open run c...

java - how to create instance from an inmutable objects? -

i trying create new instance inmutable object. in case, list, , getting error: java.lang.instantiationexception: java.util.collections$unmodifiablerandomaccesslist @ java.lang.class.newinstance(class.java:364) @ com.example.movies.domain.transformer.domainentitytransformer.transformentityarray(domainentitytransformer.java:32) @ com.example.movies.domain.service.client.impl.clientserviceimpl.getclients(clientserviceimpl.java:58) @ com.example.movies.service.controller.clientcontroller.getclients(clientcontroller.java:50) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.springframework.web.method.support.invocablehandlermethod.doinvoke(invocablehandlermethod.java:221) @ org.springframework.web.method.support....

How to Bundle and render scripts in mvc 4 -- asp.net? -

i recenly learnt can bundle scripts js/css better , optimized performance. tried implement mvc project scripts aren't rendering. added bundleconfig class under app_start below. public class bundleconfig { public static void registerbundles(bundlecollection bundles) { bundles.add(new scriptbundle("~/content/bundles/js").include( "~/content/js/jquery.min.js", "~/content/js/bootstrap.min.js", "~/content/js/jobwebsite.js", "~/content/js/bootstrap-datetimepicker.min.js", "~/content/js/bootstrap-filestyle.min.js" )); bundles.add(new stylebundle("~/content/bundles/css").include( "~/content/css/style.css", "~/content/css/bootstrap.min.css", ...

axapta - AX 2012 initFrom methods -

i understand these initfrom(tablename) methods initialize fields in table related tables. called from? want follow pattern call method? every documentation on pattern tells me said above , no examples of using them. see examples of them being created. maxim lazarev made point using cross-reference tool. ignorantly did not realize had update on table , can see calls on method. lead me examples of being used in overridden table methods modifiedfield. i'm starting play around looks can use these initfrom methods fill in specific data need in forms whether it's directly in table or in actual form itself.

javascript - jQuery Div Scrolling Function: Issue in IE -

i'm developing website that has fixed banner div centered, , i'm using jquery below ensure scrolls correctly though fixed positioned div. jquery: $(window).scroll(function() { $('#top-content').css('left', -$(this).scrollleft() + "px"); }); however, have come across issue within ie(version 9). issue when user scrolls website (creating minus left margin on "top-content" div, give effect of scrolling) , if maximize webpage, left margin still present causing div not centered. i have attempted remedy jquery below, of yet no luck $(window).resize(function() { if ($("#top-content").width() < $(window).width()) { $('#top-content').css('left:0px'); } }); any ideas? you better do $('#top-content').css('left', '0px'); in resize event.

onsen ui - How does one navigate between pages while maintaining state whilst using <ons-navigator>? -

i have 3 main pages: list (of businesses), search, , favourites. list page users can drill down details business. i using <ons-navigator>. navigating list details , list working expected since using <ons-back-button>. list page state maintained since onsen-ui doing poppage(). my question how navigate list favourites or search while maintaining list state? right using pushpage() keeps adding pages stack. don't think that's how it's supposed work , practically speaking if push page page stack , exists... shouldn't added rather should moved top. idea. my code: <ons-navigator var="app.navi" page="list.html"></ons-navigator> <ons-template id="list.html"> <ons-page id="list-page"> <ons-toolbar> <div class="center">near me</div> </ons-toolbar> <ons-list></ons-list> </ons-page> </ons-template...