Posts

java - spring boot multiple modules multiple property files @Propertysource not working -

i have 1 main project , 1 dependent project auditmodule. auditmodule has own datasource , , database properties in auditapplication.properties. main application has own application.properties.main project depends on audit project auditing stuff. when run main application , it's not detecting auditapplication.properties in audit module. below databaseconfiguration classes in main project , in audit project: main project: @configuration @enablejparepositories(basepackages = "com.staples.mpe.repository", entitymanagerfactoryref = "mpeentitymanager", transactionmanagerref = "mpetransactionmanager") @enabletransactionmanagement public class databaseconfiguration implements environmentaware {} audit project: @configuration @enablejparepositories(basepackages = "com.staples.em.magnus.audit.repository", entitymanagerfactoryref = "auditentitymanager") @en...

jquery html replace page with $(document).ready code -

i using jquery replace html in site. html getting inserted has "$(document).ready" function @ bottom of page. code not getting run when html gets replaced. guess makes sense because whole page not loading. replacing html. best way make sure code runs? here code doing replacing: function procview(url, e) { var data = $('.checkout form').serialize(); $.ajax({ url: '/shop/' + url, data: data, success: function (result) { $('.rightpane').html(result); $('#dvsummary').load('/shop/_summary'); validatecc(); }, error: function (result) { alert(result.responsetext); } }); } it .html(result) line. if matters, using asp.net mvc5. and here document.ready code validatecc() function: $(document).ready(function () { alert("out of function!"); //$.validator.setdefaults({ ignore: ":hidden, ....

c# - Where is the bin/Release folder located for ClickOnce Deployment applications? -

i have solution in visual studio 2013 use xcopy in post build events copy necessary files bin\debug folder. post build event works , when run application in visual studio application can find necessary files copied bin\debug folder. xcopy "$(solutiondir)packages\nunit.runners.2.6.3\*.*" "$(outdir)..\..\nunitrunners\" /e /i /y /f xcopy "$(solutiondir)productionsmoke\bin\debug\productionsmoke.exe" "$(outdir)..\..\" /e /i /y /f xcopy "$(solutiondir)productionsmoke\bin\debug\productionsmoke.exe.config" "$(outdir)..\..\" /e /i /y /f however, when publish solution using clickonce application throws exception cannot find files. private void buttonproductionsmoke_click(object sender, eventargs e) { var pathtonunitgui = appdomain.currentdomain.basedirectory + "nunitrunners\\tools\\nunit.exe"; var pathtoproductionsmoke = appdomain.currentdomain.basedirectory + "productionsmoke.exe"; process...

Bootstrap Clockpicker CSS in web2py -

Image
i trying create widget input field using jquery clockpicker plugin. working style of plugin off. supposed this . link of current working code. is because of customized bootstrap css web2py use? if so, how can overide without affected current css creating admin panel of app around current css? extending default 'layout.html' provided web2py. also, correct way of using bootstrap css in web2py application. i using web2py 2.9.11 version the problem not due customizations of bootstrap due standard bootstrap 2 css rules, include following: [class*="span"] { float: left; min-height: 1px; margin-left: 20px; } the hours , minutes displayed in clockpicker have classes "clockpicker-span-hours" , "clockpicker-span-minutes", respectively, both of contain string "span" , therefore trigger float: left rule shown above. presumably clockpicker designed bootstrap 3, not include above rule. you'll either have upgrade s...

How to read a gzip netcdf file in python? -

i have working python program reads in number of large netcdf files using dataset command netcdf4 module. here snippet of relevant parts: from netcdf4 import dataset import glob infile_root = 'start_of_file_name_' infile in sorted(glob.iglob(infile_root + '*')): ncin = dataset(infile,'r') ncin.close() i want modify read in netcdf files gzipped. files gzipped after creation; not internally compressed (i.e., files *.nc.gz). if reading in gzipped text files, command be: from netcdf4 import dataset import glob import gzip infile_root = 'start_of_file_name_' infile in sorted(glob.iglob(infile_root + '*.gz')): f = gzip.open(infile, 'rb') file_content = f.read() f.close() after googling around maybe half hour , reading through netcdf4 documentation, way can come netcdf files is: from netcdf4 import dataset import glob import os infile_root = 'start_of_file_name_' infile in sorted(glob.iglob(infile_root ...

Can I detect changes in a node's markup text using dojo? -

i have bunch of nodes contain markup in unpredictable structure. want able watch these nodes , see if html of of child nodes or descendants change, no matter how slightly. if do, want fire event. can through dojo? i'm using 1.10, latest one. thanks. it sounds you're looking dom mutations. far i'm aware dojo not provide api this, they're pretty simple set up. problem different browsers have different ways of doing this. var observenode = document.getelementbyid('observeme'); // check vendor-specific versions of mutationobserver. mutationobserver = (function() { var prefixes = ['webkit', 'moz', 'o', 'ms', '']; (var i=0, il=prefixes.length; i<il; i++) { if (prefixes[i] + 'mutationobserver' in window) { return window[prefixes[i] + 'mutationobserver']; } } }()); // sniff mutationobserver support if (mutationobserver) { var observer = new mutationobserver(function(mut...

android - NDK is looking into wrong directory -

i using awesome library ffmpegmediametadataretriever . library requires me add platform specific native libraries. convenience have library project code , separate project free , paid version of app. package name of library project com.vidanalysis , paid version has got same name , free version's name com.vidanalysis.free . ffmpegmediametadataretriever library included in library project. paid version working fine, problem free version trying find library in com.vidanalyis , doesn't exist when haven't installed paid version. how can solve problem?