Posts

Spring Data JPA deleteInBatch -

while delete(list) working fine, if try delete deleteinbatch(list), thowing exception below org.springframework.dao.dataintegrityviolationexception: not execute statement; sql [n/a]; constraint [dept_details_f_key1]; nested exception org.hibernate.exception.constraintviolationexception: not execute statement @ org.springframework.orm.jpa.vendor.hibernatejpadialect.converthibernateaccessexception(hibernatejpadialect.java:248) @ org.springframework.orm.jpa.vendor.hibernatejpadialect.translateexceptionifpossible(hibernatejpadialect.java:214) @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.translateexceptionifpossible(abstractentitymanagerfactorybean.java:417) @ org.springframework.dao.support.chainedpersistenceexceptiontranslator.translateexceptionifpossible(chainedpersistenceexceptiontranslator.java:59) @ org.springframework.dao.support.dataaccessutils.translateifnecessary(dataaccessutils.java:213) @ org.springframework.dao.support.persistenc...

cloudera cdh - CDH 5.4 upgrade to HUE to 3.8 -

i using cdh 5.4 . see version of hue 3.7 . i want use spark notebook feature in hue 3.8 not know how upgrade hue 3.8 i find instruction how update hue @ hue wiki page . removed place update bash script here #!/bin/bash cdh_lib=/opt/cloudera/parcels/cdh/lib # download tarball wget https://dl.dropboxusercontent.com/u/730827/hue/releases/3.8.1/hue-3.8.1.tgz # backup old version sudo mv $cdh_lib/hue $cdh_lib/hue-3.7 # install libs sudo apt-get -y install python2.7-dev sudo apt-get -y install libxslt1-dev sudo apt-get -y install libmysqlclient-dev sudo apt-get -y install libsqlite3-dev sudo apt-get -y install make sudo apt-get -y install libkrb5-dev sudo apt-get -y install libxml2-dev sudo apt-get -y install libssl-dev sudo apt-get -y install libldap2-dev sudo apt-get -y install python-pip sudo apt-get -y install libsasl2-dev sudo apt-get -y install python-ldap tar -zxvf hue-3.8.1.tgz cd hue-3.8.1/ #sudo rm -rf /opt/cloudera/parcels/cdh/lib/hue # build sudo prefi...

scala - Class file for android.support.v4.widget.DrawerLayout not found - Intellij (UI 14.141.1192.2) -

when compiling gradle can't find android.support.v4 , though correctly declared in build.gradle . i'm using android-scala plugin don't think issue because various other posts seem have same issue. intellij displays libraries under sidebar: "project view", @ compile time library " android.support.v4 " not available, not after clean compile. have tried suggestions find on stackoverflow without success. any appreciated thanks adam error message: error:scalac: error: class file android.support.v4.widget.drawerlayout$lockmode not found java.lang.assertionerror: class file android.support.v4.widget.drawerlayout$lockmode not found @ scala.tools.nsc.symtab.classfile.classfileparser$$anonfun$enterowninnerclasses$1$$anonfun$12.apply(classfileparser.scala:1050) @ scala.tools.nsc.symtab.classfile.classfileparser$$anonfun$enterowninnerclasses$1.apply(classfileparser.scala:1049) @ scala.tools.nsc.symtab.classfile.classfileparser$$anonfun$en...

c# - Are there better ways for updating an execution timer every second than using a background worker that checks every 150 ms? -

to show timer how long specific process runs i'm using background worker update execution time label. naturally should done every second user sees increases consistently. after trying around bit , failing utterly went down road i'm checking every 150 milliseconds if next second there , update display. private void executiontimerbackgroundworker_dowork(object sender, doworkeventargs e) { stopwatch executiontime = new stopwatch(); double lastupdateatseconds = 0; executiontime.start(); while (!executiontimerbackgroundworker.cancellationpending) { thread.sleep(150); // sleep while give other threads time stuff if (executiontime.elapsed.totalseconds > lastupdateatseconds + 1) // update execution time display once per second { executiontimerbackgroundworker.reportprogress(0, executiontime.elapsed); // update execution time display lastupdateatseconds...

html - why width is not working in table-cell? -

Image
i need following output given html, used display:table property ul ul , display:table-cell property li childeren, every ul ul has 4 child expect last ul ul , set width of every li child of ul ul , not working last raw, dont want edit html, please me, why happening. in advance jsfiddle expect output : - result getting:- html:- <div> <ul> <li> <ul> <li><a href="#">11</a></li> <li><a href="#">12</a></li> <li><a href="#">13</a></li> <li><a href="#">14</a></li> </ul> </li> <li> <ul> <li><a href="#">21</a></li> <li><a href="#">22</a></li> <li><a href="#">23</a></li>...

global properties command line configuration of soap ui pro maven plugin -

i wanted know if there way override global properties values in soapui-settings.xml file passing values command line parameters. reference using soapui pro maven plugin , not in using command line version of soapui. you have use maven properties intermediary. definite soapui plugin like: <plugin> <groupid>com.smartbear.soapui</groupid> <artifactid>soapui-pro-maven-plugin</artifactid> <version>.....</version> <executions> <execution> <configuration> <projectfile>.....</projectfile> <projectproperties> <value>property1=${soapui.value1}</value> </projectproperties> </configuration> </execution> </executions> </plu...

ios - Size class does not works -

Image
i need create app adaptive ui. use auto layout , size class. can't expected result. displays different uis different screen sizes. kindly guide me create adaptive ui(for screen sizes). in advance. this indeed problem constraints mentioned in comments question. using size classes allows set constraints iphones @ lowest level (that's why screen size size class compact x regular same iphones in xcode). it difficult you, without knowing of constraints. advice is, use preview assistant, can see of devices , generated ui. opening preview assistant, tap on bottom "+" symbol , add device wish inspect. as can see on screenshot, in storyboard, there margins around middle view, on iphone 4, width smaller, these margins lower (they have lower priority constraint), while view retains it's width/height.