record

SSIS transactional data (different record types, one file)

血红的双手。 提交于 2019-12-06 07:32:34
问题 An interesting one, we're evaluating ETL tools for pre-processing statement data (e.g. utility bills, bank statements) for printing. Some of the data comes through in a single flat file, with different record types. e.g. a record type with "01" as the first field will be address data. This will have name and address fields. A record type with "02" will be summary data, with balances and totals. Record type "03" will be a line item on the statement. Each statement will have one 01 and 02

Constructor on public record type?

核能气质少年 提交于 2019-12-06 05:43:29
问题 Let's say I want a record type such as: type CounterValues = { Values: (int) list; IsCorrupt: bool } The thing is, I want to create a constructor that converts the list passed of integers to a new list which has no negative values (they would be replaced by 0s), and have IsCorrupt=true only if there were negative values found at construction time. Is this possible with F#? For now, this is what I've done, using properties (but, meh, it's not very F#-ish and it calls

Recorder Service Error: Left Mouse Down: Failed to find matching element - Xcode error

只谈情不闲聊 提交于 2019-12-05 14:31:20
I'm trying to automate my mac app by XCTest. While trying to record the app from XCode, I got this error message: This happens when I tap on a button. The button hierarchy is.. Button -> Stack View -> NSView Here, button is the subclass of NSButton, I added buttons in a stack view. That stack view was added in myView(Subclass of NSView). P.S: Each button has image view and a label in it. Question: When I tap on the button, the app crashes with the above alert. Is there any solution to it? 来源: https://stackoverflow.com/questions/38632518/recorder-service-error-left-mouse-down-failed-to-find

XPATH: Selecting multiple records with Wildcard Namespaces

ⅰ亾dé卋堺 提交于 2019-12-05 13:35:06
I am fairly new to XPATH and need to return a value from multiple XML objects when a certain node is equal to one of two values. The solution also needs to be namespace agnostic using local-name(). Given the following XML, I am looking to return all of the values of "B" where "A" is equal to either "4" or "5". <?xml version="1.0"?> <element> <A>3</A> <B>Value 1</B> </element> <element> <A>4</A> <B>Value 2</B> </element> <element> <A>5</A> <B>Value 3</B> </element> I have tried many iterations of the following expression but cannot seem to get the syntax correct when I try to add the second

Mongodb Query: Latest record by date for each item

别来无恙 提交于 2019-12-05 13:05:36
There are six devices in a collection, each has many records, some have records of new dates and some have week or/and month older. I need a query which returns latest last record of each device. In the case of .aggregate() I need that complete "data" filed. Here is the sample json. { "date_time" : some-date "device_id" : 27, "gateway_id" : 1, "data": [{"r" : 203,"v" : 3642},{"r" : 221,"v" : 3666}] } { "date_time" : some-date "device_id" : 28, "gateway_id" : 1, "data": [{"r" : 203,"v" : 3002},{"r" : 221,"v" : 3006}] } { "date_time" : some-date "device_id" : 29, "gateway_id" : 1, "data": [{"r"

How to record a specific window using ffmpeg?

会有一股神秘感。 提交于 2019-12-05 12:09:45
问题 I use ffmpeg to record a window using this code: ffmpeg.exe -f dshow -y -i video="screen-capture-recorder":audio="virtual-audio-capturer":audio="Microphone (USB Audio Device)" -framerate 15 -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le -vf crop=Width:Height:Left:Top output.flv But the problem is i might move the window, this leads to recording an area without the window i want. How can i capture a specific window that I am able to move it? Edit: I also used gdigrab to capture my

How to extract just the audio from an MP4 file and convert it to FLAC file in C#?

匆匆过客 提交于 2019-12-05 11:20:51
My goal is to write C# that turns Microsoft LYNC meeting audio into text. Here is my project so far. Initially I was trying to record from microphone, save it to WAV then convert WAV to FLAC and using GoogleSpeechAPI, convert FLAC to text. But I got stuck recording microphone audio to WAV format. The problem is it needs to be in a very specific WAV format, i.e. int16 or int24 for the WAV to work with the WAV to FLAC convertion method. I kept recording 8 bits per sample instead of (16 or 24 bits) per sample. So, starting over. Microsoft Lync directly records meetings and saves it as a video in

erlang mnesia - illegal record info

随声附和 提交于 2019-12-05 10:29:02
I am trying to have a function that ensures the table I need is already created and if not to create it. Here's the sample: ensure_table_exists(Table, MnesiaTables, Nodes) -> case lists:member(Table, MnesiaTables) of true -> throw({error, db_might_have_already_been_created}); false -> mnesia:create_table(Table, [{disc_copies, Nodes}, {attributes, record_info(fields, Table)}]), ok end. The issue is that when compiling I get the error: illegal record info . It might have to do that record_info is resolved at compile time or that the second argument to record info should actually be a record that

Delphi (-XE) : casting to a record type with implicit conversion

我们两清 提交于 2019-12-05 09:09:59
I have a record type with methods, representing an specific hardware measurement type, read from the instrument as a string. The record contains implicit coversion to (and from) a string. If I cast a string as a record type, it seems to work, but is this safe? That is, does casting a string to a record with implicit string conversion call the implicit conversion as per assigning a temporary value? var a: MeasurementRecord; // record type with implicit string conversion & decode methods b: string; c:double; begin b := Edit1.Text; // Or any other string source a:=b; //Ok a:= edit1.text; //Ok c:=

iPhone AddressBook - how to create a new record with app from my App

白昼怎懂夜的黑 提交于 2019-12-05 07:21:44
问题 I'm trying to create a new record of Person thru my App. I have the name, email and phone nr. How can i pass them to the modal view of newPerson? I'm following Apple's docs, but i'm stuck. I'm using a ABNewPersonViewController. Is that correct? How do I fill the fields in the modal view? Thanks, RL 回答1: If you want to display something in the ABNewPersonViewController, you have to create and set up an ABRecordRef for the properties you want to pre-fill and then set the displayedPerson