Posts

Adding maven dependency gives a specific error during my spring batch -

i working on batch , face problem. have identified cause of issue not able solve it. as add dependency in pom start error the maven dependency <dependency> <groupid>org.springframework.data</groupid> <artifactid>spring-data-jpa</artifactid> </dependency> my pom shown below <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.edf.fr.batch</groupid> <artifactid>edf-batch</artifactid> <version>0.0.1-snapshot</version> <parent> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-parent</artifactid> <version>1.5.6.release</version> </parent> ...

html - PHP: Passing Foreach Data Values to Input Boxes while incrementing the number of their ID and Name -

Image
hi guys summarize problem here hope understand. main goal: main goal have foreach of datas , pass designated input boxes while, in same way i'm appending number of id , name already accomplished: have forloop of x can increment , pass values array in input boxed id , name html code: <table class="table table-bordered" id="addsubpaymenttable"> <thead> <tr> <th>particulars</th> <th>balance</th> <th>payment amount</th> </thead> <tbody> <?php $arraynumber = 0; for($x = 1; $x < 2; $x++) { ?> //this make loop increment x supply diffrent number values same id , name have input boxes. <tr id="row<?php echo $x; ?>" class="<?php echo $arraynumber; ?>"> //increment rows <td class="form-group"> <input type="text" class="form-control" name=...

java - Is there some way to call a class which is defined by String or a similar way? -

i have program where, if user enters "1" "assignment01" class called , if user enters "14" "assignment14" class called , on. currently, using switch case statement call function according user's number input shown on code. if there 100 of classes needs called per user's input? it frustrating have create case calling every single class. so, there way make short , efficient? for example: // assume user inputs "10" 'userinput = 10' string classvariable = "assignment" + userinput + ".main(args)"; classvariable; // result in 'assignment10.main(args);' unfortunately, can't done string there similar way define string class can called that? edit: want when user enters integer "30" class "assignment30" should called can done "assignment30.main(args);" through switch case statement can't create every single case. it better if put "assignment...

python - Using the %cd magic command in Jupyter Notebooks -

i have jupyter notebook use %cd magic command. @ top of notebook set bookmark ( %bookmark 'base_dir' ) can return starting directory (via %cd -b 'base_dir' ). is there easier way return starting directory (i.e. directory running *.ipynb exists)?

angular - Angular4: Component reference inside ng-template -

i new angular 4. want handle of component(validation-alerts) inside ng-template <ng-template #content let-c="close" let-d="dismiss" size="600px" > <validation-alerts [formgroup]="requesttypeform"></validation-alerts> <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix head" tabindex="-1"> <span id="ui-id-6" class="ui-dialog-title popup-title">client name </span> <button (click)="d('cross click')" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"> <span class="ui-button-icon-primary ui-icon ui-icon-closethick popup-close-icon"></span><span class="ui-button-text">close</span> ...

swift3 - Swift 3 SpriteKit Detecting Contacts -

i'm new swift , have been trying figure out how use bitmasks , didbegin(_ contact: skphysicscontact) detect when 2 spaceships touch each other. can't seem figure out how. here have far: import spritekit import gameplaykit class gamescene: skscene, skphysicscontactdelegate { let puffercategory: uint32 = 1 << 0; let enemycategory: uint32 = 1 << 1; var spaceship1: skspritenode! var spaceship2: skspritenode! override func didmove(to view: skview) { spaceship1 = skspritenode(imagenamed: "spaceship"); spaceship1.setscale(cgfloat(0.1)) spaceship1.position = cgpoint(x: self.frame.width / 2, y: (self.frame.height / 2)); spaceship1.name = "spaceship1"; spaceship1.physicsbody = skphysicsbody(circleofradius: spaceship1.size.width / 2); spaceship1.physicsbody?.isdynamic = true // apply gravity, friction, , collision spaceship1.physicsbody?.affectedbygravity = false; spaceship1.physicsbody?.allowsrotation = false ...

qml - Can i use quick controls in a qt widgets application? -

i need material styled replacements of standard widgets , it's kind of hard implement them using custom widgets. wondering if there's way include widgets quick control module , use them regular widgets? if application qt5.1 , above, answer yes can. you have use qquickview object , pass static function createwindowcontainer of qwidget , takes qwindow in paramater. qquickview derived qquickwindow derived qwindow . so can pass qquickview input createwindowcontainer . below rough code. //create qquickview object. qquickview *view = new qquickview(); //add qquickview object qwidget::createwindowcontainer qwidget *container = qwidget::createwindowcontainer(view, this); //add source view->setsource(qurl("your.qml")); //add container layout. ui->verticallayout->addwidget(container);