Posts

maven - Intellij cannot run Spring app with a certain dependency -

i'm working on webapp spring , maven , want able run application within local tomcat server , intellij. dependency seems culprit. <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-tomcat</artifactid> <scope>provided</scope> </dependency> when remove dependency application runs fine in intellij because of other dependency can't run on tomcat. <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> </dependency> can set automatically use right dependency intellij? you can setup maven profile in pom.xml, use specific profile intellij. intellij allows select profile while running build. <profiles> <profile> <id>intellij</id> … <dependencies> <dependency>…</dependency> </dependencies> … </pr...

entity framework - PostgreSql EF, navigation property is always null when querying -

i stumbled upon unexpected behaviour when using entity framework postgresql. when query context navigation property inside clause, null , fails. if add there include method pointing navigational propery it's working this work context.garages.include("postalcode").where(f=>f.postalcode.regionid == regionid) this not (postalcode null , fails on nullreference) context.garages.where(f=>f.postalcode.regionid == regionid) i don't think had add query when using mssql. can anybdoy explain me. if want navigation properties lazy loaded , need declare them virtual : public garage { //... public virtual postalcode postalcode {get;set;} } in link find conditions must follow entities if want enable lazy loading entities , have entity framework track changes in classes changes occur. if navigation property virtual , other option think cause behavior if turn off lazy loading on context: public class yourcontext : dbcontext { public your...

CMake convert unix to windows path -

i'm trying convert unix style msys path such /c/my/path/to/a/folder windows path, or cmake understand, e.g c:/my/path/to/a/folder . i'd work on path correct. is there proper way ? note : please not mention cygwin's cygpath. edit: file(to_cmake_path mypath result) not working there's no built-in cmake functionality this, can write function/macro it: macro(msys_to_cmake_path msyspath resultingpath) string(regex replace "^/([a-za-z])/" "\\1:/" ${resultingpath} "${msyspath}") endmacro() set(mypath "/c/my/path/to/a/folder") msys_to_cmake_path(${mypath} result) message("converted \"${mypath}\" \"${result}\".") having said that, agree antonio's comment in seems unusual need in first place.

javascript - Minimize Safari on iPad when installing an IPA in iOS 8 -

i use adhoc deployment , supply url install ipa file on ipad. in ios 7 (and previously) safari auto minimize , user see app installing. in ios 8, safari remains open , appears user nothing happening. javascript / html techniques have explored not work close safari. such window.top.close();

asp.net - Stop IIS From Reloading Web.Config File -

my organization runs rather complex application web-based front end. i'm being told 1 of our security products (unknown 1 yet) reading web.config file , apparently simple reading of config file enough trigger iis think web.config file changed. this causes reload of app pool , loss of session state causes users lose of data , "kicked out". how can prevent short of adding exclusions our scanning software? realize that's option, i'm hoping 1 i'm not having make exceptions security systems. clear don't want hear/see answer saying "just add exception scanning software". i'm wanting know of alternatives first. in iis, have ability disable automatic app pool recycling when web.config changes. this, go application pools listing, right-click app pool in question, select "advanced settings", way @ bottom, in "recycling" section, set "disable recycling configuration changes" true. that being said, reading...

Alternative way to left join in SQL ORACLE DB -

if run query below query: select day.m_cmp_typo m_cmp_typo, day.m_sptcv m_sptcv, day.m_cnt_vs2 m_cnt_vs2, day.m_cnt_org m_cnt_org, day.m_pl_cgr2 m_pl_cgr2, day.m_pl_cgu2 m_pl_cgu2, day.m_pl_csfi2 m_pl_csfi2, day.m_pl_ftfi2 m_pl_ftfi2, day.m_pl_rvr2 m_pl_rvr2, day.m_pl_rvu2 m_pl_rvu2, day.m_trn_fmly m_trn_fmly, day.m_trn_grp m_trn_grp, day.m_trn_type m_trn_type, day.m_cnt_vs2 m_cnt_vs2, day.m_c_cur_pl m_c_cur_pl, day.m_instrlabel m_instrlabel, day.m_nb m_nb, day.m_pl_inscur m_pl_inscur, day.m_tp_cntrplb m_tp_cntrplb, day.m_tp_pfolio m_tp_pfolio, day.m_eco_pl m_eco_pl, day.m_cnt_id m_cnt_id, day.m_eco_pl_usd m_eco_pl_usd, day.m_pos_curr2 m_pos_curr2, day.m_curr2 m_curr2, day.m_tp_qtyeq m_tp_qtyeq, day.m_tp_uqtyeq m_tp_uqtyeq, day.m_tp_lqty32 m_tp_lqty32, day.m_tp_uqty m_tp_uqty, --...

java - Invalid deployment descriptor web.xml -

whenever create new servlet on netbeans 8.0.2 shows, invalid deployment descriptor web.xml and there cross sign on web.xml too. web.xml <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <session-config> <session-timeout> 30 </session-timeout> </session-config>