|
Hello,
I have question about burning open file to CD/DVD/...
My idea:
- some application (no my) create file and this file is open in this application, application sometimes write new data to file (for example: recording video from webcam - file is still open and application still has open file and add new frames to this file)
- My C# application burns this file to CD/DVD in the same time like application which saves data to file.
- File in this progress is still enable to read from another application.
My question is - Is this possible to do it? Which C# framework is good for this?
Thank you very much
|
|
|
|
|
There isn't enough information about the specifics of how this file is handled, so anything anyone says is merely speculation.
But, it doesn't sound like it's going to be possible. If the first application writing the file has it locked exclusive (no shared reads possible), you're already done with this application before you even start.
Also, writing is CD is not the same as writing to other media. You would need a "packet writing" library to do this from your code. I don't know of one as Nero's library was withdrawn years ago.
|
|
|
|
|
Thank you for your answer.
All is about video file. Some camera stores video directly into video file on hard drive in computer. I don't know video format now. I want to burn this video file in the moment when camera still storing new frames to video file.
I am thinking about IMAPI2 but I mean it is not possible with that. Maybe Nero SDK - I will find out.
Or do you have another idea? Or do you mean that it is absolutelly not possible?
|
|
|
|
|
|
Hi
I would like some assistance by the forum colleagues to assist me in providing a solution for a effective and optimised comparing of name inputted by a user which it has to compare against 800,000 names. The solution currently takes around 2 minutes for a single name to compare with 80000 names using Levenshtein function and matching accuracy % required
If there is anybody who has developed or using a solution for similar case, I would appreciate if they could assist me. My developer is not much experienced and has already taken a lot of time.
Best Regards
Jackson</pre>
|
|
|
|
|
I would make a business assumption that the first character is correct, filter you name list on that character and then apply the levenshtien calc on the sub set.
Are you doing the calc on the database or in the BL layer, C# may be faster doing a reiterative process.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
The first letter could be same for 90% of the time. Since it is entered by the application user based on the name provided by the customer, the sequence of different parts in a name ( First, Middle and Last ) could be given differently. It is also possible that it is mispelled by the application user or from First, Middle and Last name the customer has provided only First and Last.
|
|
|
|
|
First step of course is to look at the requirements. Don't implement the code based on what someone thinks the users will do but rather based on what the users actually do.
Second step is to look at the design. Such as the suggestion in the other posting. Which is probably likely given that people don't randomly mix up names - they are often in the same order. There are probably many other possibilities.
Third step profile the solution - actually measure where the time is being spent in the code and then try to determine ways to make those parts faster. However when doing this use REAL test data and not just random stuff.
Note that the first two items in the above are the only way you are going to achieve something that approaches what would be reasonable.
|
|
|
|
|
Threads!
Well, first ensure that you have the best Levenshtein implementation. Your developer could post what he has in the Algorithms Forum[^].
Does the implementation calculate the full distance? Or does it stop once it exceeds the threshold?
And have a look at this old thread: Levenshtein-Distance[^].
|
|
|
|
|
You may helps me to the problems document subject applications a network is not.
Me are much to be an choices helps Prop to the problems of this document:single chat TCP, Console C#
|
|
|
|
|
Wow - I suggest you get someone to help with your english translation, that collection of words makes no sense at all.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
For a moment, I thought it was Yoda asking a question.
Then I thought it was a very drunk Yoda.
|
|
|
|
|
I am loading a panel of dynamic questions in the panel, in the Page_Init method, to avoid situation of losing the values on postback issues. There is a linq statement that loads this dynamic panel.
The same aspx page is used in 3 step registration process.
And this dynamic questionnaire is step 3 of process. I now need to limit the questions that appear on this dynamic queationnaire, by what was entered in step 1 of questionnaire, like a radiobutton choice. How can I pass this to the Page_Init page?
Thanks!!
|
|
|
|
|
|
when i try to run the code it always return only a black screen..
here's the code..
private CvCapture VideoCapture;
private IplImage frame;
private IplImage imgMain;
private void btnVideo_Click(object sender, EventArgs e)
{
if (btnVideo.Text.Equals("Start Video"))
{
trainData();
videoCapture = highgui.CvCreateCameraCapture(0);
if (videoCapture.ptr == IntPtr.Zero)
{
MessageBox.Show("Failed");
return;
}
btnVideo.Text = "Stop Video";
highgui.CvQueryFrame(ref videoCapture);
timerGrab.Interval = 45;
timerFPS.Interval = 1100;
timerGrab.Enabled = true;
timerFPS.Enabled = true;
hc = new HaarCascade(this);
abs = new AbsoluteDiff(this);
}
else
{
btnVideo.Text = "Start Video";
timerFPS.Enabled = false;
timerGrab.Enabled = false;
if (videoCapture.ptr != IntPtr.Zero)
{
highgui.CvReleaseCapture(ref videoCapture);
videoCapture.ptr = IntPtr.Zero;
}
}
}
private void timerGrab_Tick(object sender, EventArgs e)
{
frame = highgui.CvQueryFrame(ref VideoCapture);
if (frame.ptr == IntPtr.Zero)
{
timerGrab.Stop();
MessageBox.Show("Invalid");
return;
}
imgMain = cxcore.CvCreateImage(cxcore.CvGetSize(ref frame), 8, 3);
cxcore.CvCopy(ref frame, ref imgMain);
cxcore.CvFlip(ref imgMain, 0);
pictureBox1.Image = highgui.ToBitmap(imgMain, false);
cxcore.CvReleaseImage(ref imgMain);
}
|
|
|
|
|
Have you stepped through the code in the debugger to see where it is failing?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
i dont know. hmm theres no failing and theres no error in the code
|
|
|
|
|
Somewhere in the code it is not giving the results you expect. Your job is to step through it and identify where.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
uhm sir can you help me find the error in the code? i really dont know where is my error in the code.
|
|
|
|
|
Did you write that code or copy it from somewhere?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
i copy it from somewhere.
|
|
|
|
|
would you mind in helping me sir?
|
|
|
|
|
I am helping you.
You need to find out how the code is supposed to work, and then step through it in the debugger to figure out where it is not working the right way.
Look up the function calls in the documentation to find out what they do.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
i think i know where the code is not working..
i think in the picturebox.image = highgui.tobitmap() its not really converting.
it looks like that its not querying any frame coming from the camera..
|
|
|
|
|
sir there's an error when i step through the debugger..
it says that cannot evaluate expression because a native frame is on top of the call stack.
what is that sir?
|
|
|
|