batch-processing

Batch processing tab-delimited files in XSLT

落花浮王杯 提交于 2020-01-04 06:35:26
问题 I have an XML file with a list of 92 tab-delimited text files: <?xml version="1.0" encoding="UTF-8"?> <dumpSet> <dump filename="file_one.txt"/> <dump filename="file_two.txt"/> <dump filename="file_three.txt"/> ... </dumpSet> The first row in each file contains the field names for the subsequent rows. This is just an example. The names and number of elements will vary by record. Most will have around 50 field names. Title Translated Title Watch Video Interviewee Interviewer Interview with

Batch processing tab-delimited files in XSLT

大兔子大兔子 提交于 2020-01-04 06:34:12
问题 I have an XML file with a list of 92 tab-delimited text files: <?xml version="1.0" encoding="UTF-8"?> <dumpSet> <dump filename="file_one.txt"/> <dump filename="file_two.txt"/> <dump filename="file_three.txt"/> ... </dumpSet> The first row in each file contains the field names for the subsequent rows. This is just an example. The names and number of elements will vary by record. Most will have around 50 field names. Title Translated Title Watch Video Interviewee Interviewer Interview with

MySQL - Update table rows without locking the rows

三世轮回 提交于 2020-01-04 05:37:18
问题 I have requirement where we need to update the row without holding the lock for the while updating. Here is the details of the requirements, we will be running a batch processing on a table every 5 mins update blogs set is_visible=1 where some conditions this query as to run on millions of records so we don't want to block all the rows for write during updates. I totally understand the implications of not having write locks which is fine for us because is_visible column will be updated only

After submitting a .m batch job with Slurm, can I edit my .m file without changing my original submission?

三世轮回 提交于 2020-01-04 01:11:06
问题 Say I want to run a job on the cluster: job1.m Slurm handles the batch jobs and I'm loading Mathematica to save the output file job1.csv I submit job1.m and it is sitting in the queue. Now, I edit job1.m to have different variables and parameters, and tell it to save data to job1_edited.csv. Then I re-submit job1.m. Now I have two batch jobs in the queue. What will happen to my output files? Will job1.csv be data from the original job1.m file? And will job1_edited.csv be data from the edited

GIMP batch editing (Script-fu/Python-fu)

纵然是瞬间 提交于 2020-01-03 03:37:29
问题 I have about 500 images, I would like edit all of them in batch, I need to resize them all at to 190x120 dimensions, position then slightly higher (say 10 pixels). And export. Also I would like them all to keep their initial names. Basically I have a frame and I would like to load images (on layer under it) then size them down (above dimensions) move slightly up and export each individual image with frame so that it keeps its name. What would be a command I could use in GIMP console (script

My job is always null. Can't inject a batch job with Spring Batch. Why?

对着背影说爱祢 提交于 2020-01-02 12:49:07
问题 I am using Spring Batch to implement a batch job, but for some reasons my job is allways null, when I am trying to start my job. It seems to me that my job isn't injected when needed by the Spring framework. Can somebody tell me what I am doing wrong please?! I am a little bit tired of try and error... This is my spring config (batch config): <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:batch="http://www.springframework.org/schema

Having troubles with batch files

浪子不回头ぞ 提交于 2020-01-01 18:04:50
问题 This issue is eating my brains of. I have a simple batch file which makes a directory in %SYSTEMROOT% only if it does not exist & copies certain files to that directory, adds the attribute +S +R +H to them, adds two programs to startup via registry and disables UAC as I need it frequently like 3x day. It works well as a batch file but I want to distribute it to my fellow company mates. We all are having a competition in this so I do not need them to see my code; I know if I am still at the

how do I perform transactions with ruby mysql2

天大地大妈咪最大 提交于 2020-01-01 11:46:34
问题 I've started using mysql2 gem. I'm trying to figure out a few basic things - one of them is how to explicitly perform transactions (for batch operations, like multiple INSERT/UPDATE queries). In the old ruby-mysql , this was my approach: client = Mysql.real_connect(...) inserts = [ "INSERT INTO ...", "UPDATE .. WHERE id=..", # etc ] client.autocommit(false) inserts.each do |ins| begin client.query(ins) rescue # handle errors or abort entirely end end client.commit I couldn't find much in the

MVC 5, EF 6 and Multirow(batch) editing

我怕爱的太早我们不能终老 提交于 2020-01-01 06:11:26
问题 Project: bring in a list of corporate card transactions and let the user fill in documentation to support each charge. Let user save all changes at once versus one record at a time. The View @using (@Html.BeginForm("Index", "CorpCardTransactions", FormMethod.Post)) { <table> <tr> <th></th> <th>Card Holder</th> <th>Post Date</th> <th>Transaction Date</th> <th>Payee</th> <th>Amount</th> <th>Description</th> <th>GL/Account</th> <th>Branch Code</th> <th>Receipt</th> </tr> @for (int i = 0; i <

I need to cut MP4 videos. A part at the beginning and a part at the end in a batch fashion

大憨熊 提交于 2020-01-01 03:28:08
问题 I have several training videos. All .MP4s. I want to remove 3.5 seconds from the beginning and 4.5 seconds from the end of the entire folder of them... I know of ffmpeg and ffprobe - but my knowledge and mastery of them both is limited. Can someone provide a script for this, or, at least a program that will make this easy for me? I keep searching and I reach dead-ends everytime or scripts that do not work. I am also open to using Linux/Windows but not mac. edit: First part completed. Will