Posts

linux - How to run docker rmi $(docker images -a -q) in Jenkins as part of ssh script -

i building jenkins jobs build docker container on aws ec2 instance , sample of jenkins script giving errors: #!/bin/bash -e # not giving ip here guess can understand host = ip address of ec2 instance in aws # current project workspace # download source code , create tar , scp in aws ec2 # code copied in aws ec2 instance ... # ssh , run script on aws ec2 instance ssh -o stricthostkeychecking=no -i mysecrets.pem ec2-user@$host \ "tar xvf pc.tar && \ cd my_project_source_code && \ docker stop $(docker ps -a -q) && \ docker rmi $(docker images -a -q) && \ sh -c 'nohup docker-compose kill > /dev/null 2>&1 &' && \ docker-compose build --no-cache && \ sh -c 'nohup docker-compose > /dev/null 2>&1 &' " when build job in jenkins, fails following error on output console : "docker stop" requires @ least 1 argument(s). see 'docker stop --...

Can anyone explain use of Joblet in Talend -

can please give me brief description , uses of joblet in talend. i have tried information in google it's bit confusing. a joblet specific component replaces job component groups. joblets can reused in different jobs or several times in same job. at runtime, joblet code integrated job code itself. no separate code generated, same java class being used. unlike trunjob component, joblet code automatically included in job code @ runtime, using less resources. uses same context variables job itself, joblet easier maintain. to use group of components standalone job, can use trunjob component. unlike joblet, trunjob has own context variables. click here more usage of it

r - how to write code for a given mathematical model using lpSolve -

Image
i have following mathematical model: and following r code above model: library(utils); library(xlsx) library(lpsolve) datadea<- structure(list(dmus = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22), input1cash = c(5, 6, 4, 8, 5, 8, 4.4, 2.6, 3.4, 3.6, 2, 3, 3, 2.6, 4, 5, 6, 4, 7, 6, 8, 9), input2lev = c(4, 5, 5, 5, 6, 3, 4.4, 8, 8, 4.4, 7, 7, 5.6, 5, 4, 3.2, 4, 3.5, 3, 2.5, 2, 2), output1eps = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), output2roa = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), members = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)), .names = c("dmus", "input1cash", "input2lev", "output1eps", "output2roa", "members" ), row.names = c(na, 22l), class = "data.frame") effcrs<- structure(c(0.846153846153846, 0.6875, 0.838461538461538, 0.611111111111111, 0.685534591194969,...

semantic versioning - semver and what should be written in UPGRADE file -

i have project @ version 1.2. i've added new feature , means need pass version 1.3. marked methods deprecated. in version 2.0 i'll remove old methods. is correct, compiling upgrade-2.0 file, add old version (method available in 1.* versions) , new? is version 1.2 right moment put in upgrade-2.0 file?

powershell - Writing multiple cmdlet xml-based help files to a single xml file -

the resources writing xml files advanced functions seems limited. i'm hoping use xml-based files, seems requires me have 1 xml file per cmdlet, huge number of xml files. each cmdlet uses .externalhelp assign xmlfile it. is there way put many cmdlets 1 file , point each cmdlet correct part of file? help links on writing powershell xml topics scripts/cmdlets/functions: guidelines on writing help creating cmdlet file (i suggest reading linked topics @ bottom of page) more on writing help

python - Deleting rows in CSV files using Pandas -

relatively new pandas apologize in advance if redundant. have sorted data in csv file, delete rows no longer need. example here, keep rows trade date , settle date same delete rows different. trade date settle date security 8/15/2017 8/15/2017 9/7/2017 9/11/2017 b 8/31/2017 9/6/2017 c i guessing need add true false booleans code used try did not seem work me. appreciated. booleans=[] length in df_new: if 'trade date'=='settle date': booleans.append(true) else: booleans.append(false) df = df[df['trade date'] == df['settle date']] df trade date settle date security 0 8/15/2017 8/15/2017

vba - Why do I get an error that the database connection is still open when I load the second userform? -

i creating couple userforms in order pull data small local microsoft access database , create dynamic invoices (and other forms) in excel. in first userform, pull information out of database in order populate comboboxes data validation (user can select available options). close of connections after using them, when click button triggers second userform, error userform_initialize() cannot run because connection still open. i'm not sure how correctly close previous connection before opening new 1 in initialization subroutine. cnn , rst set in module global variables , getbrand , getcustomer global functions return value of variables in order pass values sql queries. else should in these blocks of code. code first userform: private sub userform_initialize() dim cnn new adodb.connection dim rst new adodb.recordset cnn.cursorlocation = aduseclient cnn.connectionstring = "provider=microsoft.jet.oledb.4.0; data source=c:\users\user\desktop\test.mdb" cnn.open rst.active...