batch-processing

Broken results on batch convert with ImageMagick command line on Linux

时光总嘲笑我的痴心妄想 提交于 2019-12-10 10:35:16
问题 This is my IM command: /usr/bin/convert 'src.tif' -limit memory 0 -limit map 0 -limit file 0 -alpha transparent -clip -alpha opaque -resize 800x600 'end.png' 2>&1 So this will remove the white background of my TIFF by clipping the path that is given in the file. It will be resized and saved as transparent PNG. I got no errors from IM running this. But if I run this command with PHP to execute it on about 13000 files - I sometimes get these errors: sh: line 1: 25065 Killed /usr/bin/convert \

Batch renaming in PowerShell

柔情痞子 提交于 2019-12-10 09:52:16
问题 I'm trying to update a bunch of .jpg images so that they refresh on my website. They're currently stored on my PC like this: media +- random-project | +- 1.jpg | +- 2.jpg | +- 3.jpg | `- thumb.png +- another-random-project | +- 1.jpg | `- thumb.png I'm trying to batch rename all 1.jpg, 2.jpg etc. to 1a.jpg, 2a.jpg . I'm thinking using Windows PowerShell and something like Get-ChildItem -Recurse -Filter "[0-9]+.jpg" | foreach { $_.FullName} Dir *.jpg | Rename-Item -NewName { $_.Name -replace "

Spring Batch how to process list of data before write in a Step

╄→尐↘猪︶ㄣ 提交于 2019-12-10 09:40:58
问题 I am trying to read client data from database and write processed data to a flat file. But I need to process whole result of the ItemReader before write data. For example, I am reading Client from database rows : public class Client { private String id; private String subscriptionCode; private Boolean activated; } But I want to count and write how many user are activated grouped by subscriptionCode : public class Subscription { private String subscriptionCode; private Integer

Sox batch process under Debian

倾然丶 夕夏残阳落幕 提交于 2019-12-10 09:25:20
问题 I want to resample a bunch of wav files that I got on a folder. My script is this: for f in *.wav; do sox “$f” -r 48000 “${f%%%.wav}.wav”; done The console give me this error: "sox FAIL formats: can't open input file `“90.wav”': No such file or directory" and so on with the 300 files that are placed on that folder. How can I batch processing right this files? Why is it giving me this error? Thanks a lot! Solution: for i in *wav; do echo $i; sox $i -r 48000 ${i%%.wav}r.wav; done 回答1: Summary:

Why Spring Boot Batch job is running just one time?

孤街浪徒 提交于 2019-12-10 08:44:05
问题 I'm using spring boot. I have a batch job which I've implemented with these classes : My main class is : @SpringBootApplication @ComponentScan("com.batch") @PropertySource("classpath:application.properties") public class Application { public static void main(String[] args) { SpringApplication.run(Application.class); } } My scheduler is : @Component @EnableScheduling public class JobScheduler { @Scheduled(fixedRate = 10000) public void runJob() { SpringApplication.run(MyBatchConfig.class); } }

Spark Streaming: long queued/active batches

冷暖自知 提交于 2019-12-10 07:33:41
问题 could anyone please point out what's the cause of this active batches hanging there for many weeks and never being processed? Thanks a lot. My guess is not enough executors, and more workers/executors will solve the problem? Or Spark assign priority on different batches within its task scheduler? But the situation here is, very recent batches (end of June) got processed successfully, but batches in May still being queued. I just checked my Spark setting, scheduler policy is FIFO spark

in Oracle JDBC is it possible to batch stored procedure calls and retrieve OUT parameters?

拥有回忆 提交于 2019-12-10 02:47:11
问题 I have a stored procedure in an Oracle 11g database like f(a IN, b IN, c OUT). I want to call it from JDBC in batch mode and then read all the OUT variables. Is this possible? I have this so far CallableStatement statement = connection.prepareCall("f(?, ?, ?)"); for(Item i : items) { int i = 0; statement.setString(++i, item.getA()); statement.setString(++i, item.getB()); statement.registerOutParameter(++i, Types.NUMERIC); statement.addBatch(); } statement.executeBatch(); int[] answers = ?

How do I execute a batch file in administrator mode [closed]

不打扰是莪最后的温柔 提交于 2019-12-09 23:45:49
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am trying to write a batch file to share a folder across my network using net share but it needs administrator privileges. I dont know how to execute this command in admin mode. When you right click cmd.exe in Windows search and select "Run as administrator" it doesn't ask me the password, but when I write a

Accesing JobContext from a partitioned step in JSR 352

↘锁芯ラ 提交于 2019-12-09 13:15:40
问题 I'm trying to pass an object between batchlets, but I've encountered a problem when trying to access the jobContext from a partitioned step (batchlet). According to the JSR 352 Specification 9.4.1.1 Batch Context Lifecycle and Scope: A batch context has thread affinity and is visible only to the batch artifacts executing on that particular thread. A batch context injected field may be null when out of scope. Each context type has a distinct scope and lifecycle as follows: 1. JobContext There

Popups block bulk download of pdfs from website with wget

大城市里の小女人 提交于 2019-12-08 14:40:21
问题 I would like to download some free-to-download pdfs (copies of old newspaper) from this website of the Austrian National Library with wget using the bash script below: for year in {14..57}; do for month in `seq -w 1 12`; do # -w for leading zero for day in `seq -w 1 31`; do wget -A pdf -nc -E -nd --no-check-certificate --content-disposition http://anno.onb.ac.at/pdfs/ONB_lzg_18$year$month$day.pdf done done done Aside of some newspaper issues not being available, I cannot download any issues