batch-processing

Broken results on batch convert with ImageMagick command line on Linux

空扰寡人 提交于 2019-12-06 11:56:09
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 \ 'public_html/source_files/XXXX123/XXXX123/XXXX123.tif' \ -limit memory 0 -limit map 0 -limit file 0

Guaranteed processing of data in WCF service

二次信任 提交于 2019-12-06 11:50:50
I have a WCF service that processes a feed of tens of thousands of records from SAP. The service call takes an XElement as its main parameter and processes the XML to update records in our database. The current intent is to have the WCF service be called asynchronously, and to have the service call send back to the caller the same document with statuses for each record processed. I'm also looking into ways to multithread the processing of the data, though this may not end up buying me anything. Because this could take a while, I'm concerned about what will happen if the WCF services dies, gets

How to delete Linefeed using batch file

梦想与她 提交于 2019-12-06 10:11:45
问题 I want to delete Linefeed in text file using batch file. Is it possible to do. Please provide some help 回答1: If you mean removing empty lines from text files try this in a batch file: for /f "delims= tokens=*" %%x in (inputfile.txt) do echo %%x >> outputfile.txt you may also want to replace inputfile.txt and outputfile.txt by %1 and %2 to be used for any file given its name to the batch file 来源: https://stackoverflow.com/questions/3116022/how-to-delete-linefeed-using-batch-file

R batch mode: How to see output/error of R on console screen?

早过忘川 提交于 2019-12-06 10:03:15
问题 While running R code in batch mode i need messages/errors/logs from R code to be shown on console screen instead of .Rout file. I tried all the posts(links copied below) from stack overflow and none of them are showing me desired output. running-r-in-batch-mode-print-to-screen? unable-to-run-r-script-through-bat-files-in-windows-server r-cmd-batch-output-in-terminal batch code: i tried with tty0 as well. "C:\Program Files\R\R-3.2.2\bin\R.exe" CMD BATCH --slave "Test.R" /dev/tty Test.R code

JPA 2.0: How to improve performance on bulk insertion through JPA

放肆的年华 提交于 2019-12-06 09:11:53
问题 Example: I have three tables: location, department, employee now lets say location and department are master tables which already has whole data. Now I need to insert 1000 Employees list through JPA. I have relationship with Location and department in Employee Table as well. so now to insert the entry in Employee, following I am doing: for loop...1000 Employee e = new Employee(); e.setId(12); e.setEmpname("ABC"); Location l = null; l = em.find(Location.class, 234); e.setLocation(l);

HBase write: which one better on performance, batch or put(List<Put>)?

孤街醉人 提交于 2019-12-06 08:31:29
问题 I am starting to learn HBase to write data streams. I use HTableInterface and having problem in performance. It took much times to insert only 500 rows, almost 500,000ms per batch List that I inserted. Any example or suggestion for batch write into HTable with HTableInterface ? I am using HBase 0.94 Thanks 回答1: They're essentially the same: batch(List<? extends Row> actions, Object[] results) allows not only puts but also gets, deletes, increments... put(List<Put> puts) just do a batch of

Processing millions of database records in Java [closed]

雨燕双飞 提交于 2019-12-06 06:46:31
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have a requirement to write a batch job that fetches rows from a database table and based on a certain conditions, write to other tables or update this row with a certain value. We are using spring and jdbc to fetch the result set and

executeBatch behaviour in case of partial failure

久未见 提交于 2019-12-06 05:54:20
问题 I have a java 1.6 application which use batch insert for inserting records in Oracle db using jdbc driver. As you know on Statement object there is a method called executeBatch() which we use for batch updates. It has a return type of int array which has result of execution for each record in it. But it also throws BatchUpdateException in case of error and we can get result int array from that too. My question is in what error situations I should expect BatchUpdateException and when I should

Doctrine EntityManager clear method in nested entities

这一生的挚爱 提交于 2019-12-06 04:32:58
问题 I would like to use doctrine batch insert processing in order to optimize insert of a big amount of entities. The problem is with Clear method. It says that this method detach all entities that are managed by EntityManager. So what should I do in a situation where I have a parent Entity, which has many child, and each child has their childs, like this: riseSession track points So I have 1 rideSession, 3 tracks and each track has for isntance 2 000 points. I could use batch processing in last

Tensorflow mixes up images and labels when making batch

◇◆丶佛笑我妖孽 提交于 2019-12-06 04:15:26
So I've been stuck on this problem for weeks. I want to make an image batch from a list of image filenames. I insert the filename list into a queue and use a reader to get the file. The reader then returns the filename and the read image file. My problem is that when I make a batch using the decoded jpg and the labels from the reader, tf.train.shuffle_batch() mixes up the images and the filenames so that now the labels are in the wrong order for the image files. Is there something I am doing wrong with the queue/shuffle_batch and how can I fix it such that the batch comes out with the right