Posts

java - The project was not built due to "Could not delete '/Help/build/classes/exportFile'.". -

when imported project in eclipse oxygen, gave below error. "the project not built due "could not delete '/help/build/classes/exportfile'.". fix problem, try refreshing project , building since may inconsistent" googled , got delete contents of bin folder , clean project. there's no bin folder. tried cleaning, still same error. else can done you found solution yourself, here more informations error. first, said, search brought answers deleting bin -directory manually solves don't have directory. reason configured project write classes classes -directory ( bin default). the "cannot delete" message appears on windows systems if there process keeping lock on directory or files within. classic reason run application or have explorer window open shows content of directory. closing application/explorer window solves problem. lock keeps staying. way find culprit using sysinternal's processexplorer. allows search using find -...

amazon web services - Create AMI when EC2 instance shuts down -

Image
i need create ami when instance terminated/shuts down up. setup cloudwatch rule on ec2 instance state changed event create ami via ssm run command (target document aws-runshellscript(linux)). works fine, if provide hardcoded instance id command parameter. /home/ec2-user/createimage.sh i-123456 this rule needs applied instances. need instance-id dynamically source , send target. tried input transformer not getting data source. dynamic parameters {{variable name}} not working. suggestions. thanks. you can configure amazon cloudwatch events rule: you can have rule trigger aws lambda function triggers snapshot. when lambda function triggered, following information passed function: { "version": "0", "id": "01345791-08ce-baaf-78f5-437aca50f13c", "detail-type": "ec2 instance state-change notification", "source": "aws.ec2", "account": "123456789012", "ti...

netbeans - How to display an image chosen with filechooser Javafx FXML -

this question has answer here: how convert file image display in imageview in java? 2 answers passing parameters javafx fxml 6 answers i have gotten program allow me browse file select using file chooser. see method in code below. problem not know next. want assign file chosen image file. want display image(only image files used in program). since using scene builder, contains actual application(paint) class fxml controller class, believe have add code both classes. have attached both clarity sake. public class fxmldocumentcontroller implements initializable { @fxml private menuitem open; private menuitem exit; private anchorpane pane; private imageview imgv; private stage primarystage; @fxml private void handleopenaction() { filechooser filechooser = new filechoos...

php - Laravel Blade: extend multiple views and adding more content -

i have following scenario: view shows data (let's call "cars"), view shows other data (let's call "motorbikes") , view must show data of "cars" , "motorbikes" in addition of content (let's call "vehicles"). the 3 views have sense , can shown separatelly. the problem can't find way build "vehicles" view without repeating code because don't know how use laravel's blade templating in order extend multiple views ('cars' , 'motorbikes') , add more content . each view divided 3 sections ('styles', 'scripts' , 'content') because html content of each view needs specific css , js files. layouts/master.blade.php (simplified version) <html> <head> @yield('styles') @yield('scripts') </head> <body> @yield('content') </body> </html> cars.blade.php (simplified version) @extends('layouts.ma...

angular - ngx-loading Toggling from another component -

i'm using ngx-loading , want able trigger it's showing/hiding children components. here have: app.component import { component, injectable } '@angular/core'; @injectable() export class appcomponent implements oninit{ public loading = false; constructor() { } loader() { this.loading = !this.loading; console.log(this.loading); } } child component import { appcomponent} '../app/app-component'; import { myservice } '../service/my-service'; @component({ selector:'child-component', templateurl: './child.component.html', providers: [appcomponent, myservice] }) export class childcomponent implments oninit { constructor(private loader: appcomponent, private service: myservice) {} ngoninit(): void { this.getdata(); } getdata() { this.loader.loader(); this.service.getdatafromservice().then(res => { this.mymodel = res; this.loader.loader(); } } } if check logs this....

php - URL Rewriting for Wordpress -

i working on wordpress project , add region code on url. similar one: link i applied code mentioned , tweaked fit needs. did redirect add region code url: i.e. example.com/category redirected example.com/us/category. works on pages , product categories, however, it's redirect loop on hompage, product pages , posts. just mention, using wpml website in english , not using language translations. need show region-specific content.

autohotkey - #InputLevel bug? Impossible to use custom combination with #InputLevel set to 1 -

i'm using latest version of ahk (1.1.26.01) , following script fails send space key active window when release space key. space key gets disabled. #inputlevel 1 space & lalt:: outputdebug, %a_thishotkey% return space:: outputdebug, %a_thishotkey% send, {space} return without #inputlevel directive works fine. described in ahk file (search "custom combinations"). what want able trigger hotkeys use space in ahk script running, that's why need #inputlevel set 1 consequently sets sendlevel 1. if run script without #inputlevel 1 following in keyhistory after hitting space . , gets sent active window. vk sc type up/dn elapsed key --------------------------------------------------- 20 039 s d 0.76 space 20 039 h u 0.08 space 20 039 d 0.05 space 20 039 u 0.00 space but #inputlevel 1 the following , space not sent though hotkey triggered (as ...