batch-processing

Dynamics ax2012:How to export data using Runbasebatch

一个人想着一个人 提交于 2019-12-11 11:55:56
问题 I'm using Data Import Export Framework in Microsoft Dynamics AX 2012 in order to export custom data (TestTable) from ax to file. I successfully did that. Now I want to create a Batch job manually and then assign Batch job tasks for Staging job and Export job to execute this export in background. I don't know how to implement it, now I'm trying to create my own batch by duplicating Tutorial_RunbaseForm class. To learn how to set up execution jobs as batch jobs in AX I've started with Staging

Update Multiple Rows Conditional

余生颓废 提交于 2019-12-11 10:16:37
问题 Does anybody know a way of updating multiple rows according to a given condition using the Parse.com REST API? Imagine a class "Location" with several locations. Each item has a column "status" that holds an enum string value like "ok" or "error". I would like to do something that can be done in a MongoDb somehow like this db().find(query).update({status: "ok"}) In Words: "Find all locations that match my query and then update the status to Ok". There's nothing written about it in the Parse

Outputting multiple files using XPath in bash

依然范特西╮ 提交于 2019-12-11 09:42:23
问题 I have a directory of XML files. Each file has its own unique identifier. Each file also contains one or more references to other files (in a separate directory), which also have unique IDs. For example, I have a file named example01.xml : <file> <fileId>xyz123</fileId> <fileContents>Blah blah Blah</fileContents> <relatedFiles> <otherFile href='http://sub.domain.abc.edu/directory/index.php?p=collections/pageview&id=123‌​4'> <title>Some resource</title> </otherFile> <otherFile href='http://sub

How to write a batch file to set classpath and execute java programs

时间秒杀一切 提交于 2019-12-11 09:38:53
问题 Some of my java programs need so many jar files to execute. For executing this, I may have to add all of those jar files in classpath variable of environment variables or else have to set classpath manually at command prompt each and every time when I open a new cmd prompt. I do not want to add all jar files at classpath variable in environment variables and also set manually each and every time when I open new cmd prompt. I would like to write a script in batch file to set classpath and

Is there any way to log queries and output to a file?

穿精又带淫゛_ 提交于 2019-12-11 08:42:29
问题 My case is the following: an external party delivers a huge SQL file with thousands of queries. These include updates, inserts, subqueries, etc. Those queries are assembled in third-party software (I think Excel, but I might be mistaken). As a result, many of these queries tend to fail and the whole batch needs to succeed without one single error. I'm using mysql source file.sql to execute the queries, and I'm using mysql tee log.txt to log the output to a txt-file. However, this has proven

Spring Batch and rollback not occured after exception in ItemWriter

喜夏-厌秋 提交于 2019-12-11 05:39:52
问题 I have Spring batch job with chunk and setting commit-interval="3" and declared skipable exceptions. I want to save 3 item in DB: item_1 item_2 item_3 Say, I want to save this items in database but second item is invalid and an exception is occured. In this situation should couse rollback and Spring Batch should rerun each item of the problematic chunk individually with one commit/transaction for each item. So in database should be saved item_1 and item_3. But in my case in database is saved:

Windows: compare files in folders and delete non existent

↘锁芯ラ 提交于 2019-12-11 05:05:48
问题 I have huge directories + subdirs containing files on Windows. On the windows command line (or through a script) I'd like to compare two folders and delete files from the subfolder that are not in the main folder. In the example below the even numbered files should be deleted from the subfolder. folder: C:\folder1 file1.jpg file3.jpg file4.jpg file7.jpg file9.jpg subfolder: C:\folder1\RAW\ file1.CR2 file2.CR2 file3.CR2 file4.CR2 file5.CR2 file6.CR2 file7.CR2 file8.CR2 file9.CR2 I have tried

batch file to copy files from one server to other adding remote directory to filename in process

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 04:30:02
问题 I've written a batch file to copy files from one server to another, however, i need to be able to rename the file just copied to contain the folder path. The code i have come up with to do the job is: ECHO OFF SETLOCAL EnableDelayedExpansion set include=*.log FOR /L %%i IN (1,2,3) DO ( net use i: \\my-server%%i\d$\IISLogs FOR /R i:\ %%G IN (%include%) DO ( XCOPY %%G D:\ServerLogsAndBackups\IIS\w%%i\ ) 7z a -t7z D:\ServerLogsAndBackups\IIS\w%%i\files%%i.7z *.log -mx9 net use i: /delete ) The

Image mean subtraction vs BatchNormalization - Caffe

China☆狼群 提交于 2019-12-11 04:18:32
问题 i have a question regarding Image preprocessing in Caffe. When i use the BatchNormalization Layer in my caffemodel, do i still need the preprocessing step "image mean subtraction" on all my trainings Images before Training Phase starts? Or is this done in the BatchNormalization Layer ? Thank you very much =) 回答1: Image mean subtraction does something different than BatchNormalization and is used for a different purpose. BatchNormalization normalizes a batch and not every single image and is

Glassfish set max number of concurrent Batch Jobs

≯℡__Kan透↙ 提交于 2019-12-11 04:07:33
问题 GlassFish allows you to tune the global EJB pool size, as well as specific pool sizes per EJB. By setting the max-pool-size under glassfish-ejb-jar.xml I can control how many instances of a EJB can be used in parallel. <glassfish-ejb-jar> <enterprise-beans> <ejb> <ejb-name>MyExpensiveEJB</ejb-name> <bean-pool> <max-pool-size>10</max-pool-size> </bean-pool> </ejb> </enterprise-beans> </glassfish-ejb-jar> I wonder if something similar can be done with the Java EE Batch API. I would like to