record

SSIS is dropping a record on flat file source import

本秂侑毒 提交于 2019-12-10 02:08:19
问题 am experiencing a very strange issue in SSIS (2008). Basic workflow is as follows.. Using a flatfile source (CSV), bring into SSIS, push into SQL. When process is run on dev environment, everything works perfectly. When the dtsx package is placed in production.. using the exact same flat file source, the last record in the file is dropped by the time it gets to the start of the SQL proc. Have gone over everything i can possibly think of including line delimiters, column delimeters, rebuilding

Record methods and const parameters in Delphi

我是研究僧i 提交于 2019-12-10 01:26:05
问题 It looks like the Delphi compiler does not honor const record parameters when "records-with-methods" are involved. Having not tried to abuse the const convention previously, I was a little surprised to find the compiler accepted code like that: type TTest = record Field : String; procedure Update; end; procedure TTest.Update; begin Field := Field + '+1'; end; procedure DoStuff(const t : TTest); begin ShowMessage(t.Field); t.Update; ShowMessage(t.Field); end; While if you try to do a t.Field:=

Recording using Flex/Flash

此生再无相见时 提交于 2019-12-09 23:25:36
问题 I know that we can not record/Access anything out of flash player, because of it's security sandbox. Instead We can record the video while streaming it to server. like netStream.publish("YourFileName.flv","record"); But in recorde file, I will get only a video file Published by webcam to server and i want to record entire session. Is there any way to record it locally, or Can i record the window ?? p.s. : I am not trying to access anything outside of flash player. Thanks in advance... 回答1: ok

How to free an object which is in a record?

余生颓废 提交于 2019-12-09 15:34:49
问题 Here I have a tricky situation, I guess. I need to be able to free an object which is a field of a record. I would normally write the cleanup code in the destructor, if it was a class. But since record types can't introduce a "destructor", how would it be possible to call TObject(Field).Free; ? There'll be two types of usage I predict: Replacing the record with a new one. I think this usage would be easy to implement. Since records are value types and so they are copied on assignment, I can

R - simple Record Linkage - the next step ?

浪尽此生 提交于 2019-12-09 13:44:29
问题 I am trying to do some simple direct linkage with the library('RecordLinkage') . So I only have one vector tv3 = c("TOURDEFRANCE", 'TOURDEFRANCE', "TOURDE FRANCE", "TOURDE FRANZ", "GET FRESH") The function that I need is compare.dedup of the library('RecordLinkage') and I get : compare.dedup(as.data.frame(tv3))$pairs $pairs id1 id2 tv3 is_match 1 1 2 1 NA 2 1 3 0 NA 3 1 4 0 NA 4 1 5 0 NA 5 2 3 0 NA .... I have trouble finding documentation for the next step. How do I then compare and find my

Phonegap Media API - Record and Play Audio - Android

早过忘川 提交于 2019-12-09 11:05:20
问题 I'm hoping to record some audio and then have the ability to play it back. Its important for me to be able to customize the record interface. In the below example after recording I get a duration of -1 and no audio is played. Step 1. Added Media Plugin cordova plugin add org.apache.cordova.media Step 2. My Code Note src is "amr" as requested from docs. Android devices record audio in Adaptive Multi-Rate format. The specified file should end with a .amr extension. However, "myrecording.amr"

Android limit time recording using intent

你。 提交于 2019-12-09 08:09:00
问题 How can I limit recording when using intents ? I tryed this code: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra("android.intent.extra.durationLimit",5); startActivityForResult(intent,RQS_RECORDING); This part of code works fine when I record video. Time is countdown from 5 to 0 and after 5 seconds recording automatically stop. But this limited time does not work when I record sound. Why ? Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);

Recording button like SnapChat

风流意气都作罢 提交于 2019-12-09 07:05:10
问题 I want to record video like snapchat, I'm trying to create Record button like this and also record video when user long press on button and stop recording when user leave it so how can i built it? Please guyz help me!!! 回答1: private static final int MIN_CLICK_DURATION = 600; private long startClickTime; private boolean longClickActive; private boolean recording, pause = false; private long elapsed; private long remaningSecs = 0; private long elapsedSecs = 0; private Timer timer; try { your

ios - Pause video recording

二次信任 提交于 2019-12-09 05:39:23
问题 I'm try to create application where user can record video from camera. One of the feature of this application must be a pause file recording. For example: User start record after pressing "Start" button. After some time user press "Pause" button and video recording paused. Then user press "Resume" button and video continue recording in the same file. Can any body help me? Thank you. WBR Maxim 回答1: Set up an AVCaptureSession and a AVAssetWriter then you can switch the recording on an off with

Record syntax default value for accessor

主宰稳场 提交于 2019-12-09 02:54:58
问题 As I was writing up an answer just now, I ran across an interesting problem: data Gender = Male | Female deriving (Eq, Show) data Age = Baby | Child | PreTeen | Adult deriving (Eq, Show, Ord) data Clothing = Pants Gender Age | Shirt Gender Age | Skirt Age -- assumed to be Female deriving (Show, Eq) Suppose I wish to write the final data type with record syntax: data Clothing = Pants {gender :: Gender, age :: Age} | Shirt {gender :: Gender, age :: Age} | Skirt {age :: Age} deriving (Show, Eq)