|
The excel's sheet have some sheet name, Sheet1$ on of this,but application read excel, if you excel file sheet name not call Sheet1$, it's will error, So, You'll using sheet of Excel file, the code for sheet[0],it's mean frist sheet name,Sheet[1] is second sheet name.
|
|
|
|
|
Hi Everybody,
I have a word document, i need to analyze the whole document and search a word and capture the next immediate word of the searched word and insert it into the DB.
eg: i have a phone bill of 3 persons in a single word document, i need to analyze this doc and find each persons name, ph no, monthly charges and insert these values into a DB... i hope u understood my issue... Awaiting ur reply....
|
|
|
|
|
|
Hi Holmes...
I know how to search in Google, bt i did'nt get the expected result... that s y i have posted here...if u know plz give me a clue r else...leave it...
|
|
|
|
|
did you follow any of the results - the 4th entry sounds like exactly what you are after. What is it with you people - do some research!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a uni assignment where I need to recursively process a large number of nodes in a dependency graph in order to calculate the ripple impact. I have come up with a solution that I think is correct, however I'm seeking confirmation of whether my logic is correct, and if so, is there any way to make it faster (and yes, I could post this to the forum for this uni subject, but since we'll be put in groups based on how well we do individually I'm reluctant to do so since I could be heading down the right track).
First some background info:
Fan-Out metric is the number of classes that a particular class relies
on. Fan-In metric is the number of classes that make use of a given class.
The ripple impact measure counts the total number of classes that might
have an impact when any single class is changed. Based on the dependency
graph above, if we were to modify "E", the ripple will impact B directly,
since B has an impact this will impact A as well. In short any change made
to ‘E’ can have a potential ripple impact on B and A.
The nodes in the dependency graph that have a Fan-Out of Zero are known as
a Sink node. Nodes that have a Fan-In of zero are known as Source nodes.
In the dependency graph shown, we can extract the following information:
• A: Fan-out = 1 [B], Fan-In = 0, Impact-Ripple = 0
• B: Fan-Out = 3 [D, E, F], Fan-In = 1 [A], Impact-Ripple = 1 [A]
• C: Fan-Out = 1 [D], Fan-In = 1 [F], Impact-Ripple = 4 [F, D, B, A]
• D: Fan-Out = 1 [F], Fan-In = 2 [C, B], Impact-Ripple = 4 [B,A,C, F]
• E: Fan-Out = 0, Fan-In = 1, Impact-Ripple = 2 [B,A]
• F: Fan-Out = 1, Fan-In = 2, Impact-Ripple = 4 [B,D,A,C]
• Sink nodes: E, Source nodes: A
So in order to calculate the ripple impact you need to recurse through a node's fan-in nodes and add them to a list unless you either a) run into a source node or b) find a node you've already processed.
Here's what I have so far:
public class Node
{
...
public List<Node> FanIn
{
get
{
return this.fanIn;
}
}
public HashSet<Node> Ripple
{
get
{
HashSet<Node> rippleSet = new HashSet<Node>();
rippleSet.Add(this);
this.CalcRipple(rippleSet);
rippleSet.Remove(this);
return rippleSet;
}
}
private void CalcRipple(HashSet<Node> rippleSet)
{
foreach (Node node in this.FanIn)
{
if (rippleSet.Add(node))
{
node.CalcRipple(rippleSet);
}
}
}
...
}
With a data set of 9,749 nodes (with 1459 source nodes, 1459 sink nodes and a max fan-in count of 1469 nodes), a full ripple impact calculation for each node takes ~26 seconds all up (and another 30 seconds to write it all to the hard drive resulting in a 630 meg file - all references are stored as strings ) on my Athlon XP 2100+
So my questions are:
* Does my ripple-impact calculations look correct, and if so
* Can anyone find any other optimisations I may have missed apart from using a hash collection for speedy lookups?
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
Hi,
I am running a form, when i click a button in the form a dll is called in which another form is appeared, now total two forms are running. In the task manager processes, i can see only the name of the first form. So i cannot able to find and kill the second from code using 'processname.Kill'.
How can i able to find and kill the dll running from main form?
Thankyou,
YP
|
|
|
|
|
FreeLibrary(hModule);
Free the Library (dll)....i'm assuming your program loaded the dll....
modified 20-Oct-19 21:02pm.
|
|
|
|
|
yes my program load a dll which display another form, how can i free the library?
|
|
|
|
|
Kill the dll? Maybe you mean unload the dll from memory. Because only process owns the memory for excution. In this case, we can use AppDomain.Unload mehtod in .net as a approach.
I Love KongFu~
|
|
|
|
|
I am an Msc computer science student.As part of our studies we have 6 months project.please suggest me some system level project topics that will be sufficient for a 6 months project.
|
|
|
|
|
Why do people always ask this ?
Here's some things to ponder.
1 - we have no idea what you've written before. So, we don't know what you're good at
2 - we have no idea what sort of thing your professor is likely to want to see.
3 - Why not think about something YOU could use in 6 months time, instead of asking a website of strangers to come up with something ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
what about your email notification project?
|
|
|
|
|
|
this question is not good...
I Love KongFu~
|
|
|
|
|
An assembly code compiler
|
|
|
|
|
Write a program that can be installed on a Windows system that converts currently running copy of Windows to Linux without the need to install anything.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Bunnies! I like bunnies and lets face it who doesn't!
You could write an AI bunny, maybe call it a Rabbot (my little joke there). Just start out simple with the Rabbots hoping about. Then you could add in boy bunnies with blue bow ties, and girl bunnies with pink bonnets.
Once you've got your different bunny rabbots working you could then try and make them interact and see how long it takes for them to tell you to feck off and do something useful instead of creating lots of dirty bunny pron!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Try a "Hello BIG World" project...since everyone's already done the "Hello World" projects, you can expand on it with BIG and I'm pretty sure it'll take you all of 6 months.
|
|
|
|
|
could you please explain "Hello BIG World" project...
|
|
|
|
|
You could write a program that posts the same question over and over until everyone gets really annoyed with it.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
I think you have already selected that "email notification project for file system" right ?
You can continue with that, just create some WCF Service to monitor file system. and develop UI to configure the email notification(group of people and which notification to which email id etc...) and file system(which drive / folder / file type to monitor etc..) using WPF / WinForms. so that you can learn both the technologies and it will keep you busy for atleast 3-4 months and rest you can document the whole project and create some presentation.
Just start something and then ask question if you have any problem understanding, people will sure give you asnwers. but if you dont try to do anything they will not help you.
so atleast start something, dont give up before even try...
|
|
|
|
|
What is WCF service?What is WPF/WinForms?
|
|
|
|
|
better u go for networking projects using socket or remoting
|
|
|
|
|
On Vista, when using its Speech Recognition to control the system when ever there's an ambiguity, Say i have 2 folders called "New Folder" and "New Folder (2)" ...Vista Seems to identify the ambiguity and offers us to isolate both icons by covering them with Green Semi-Transperant Rectangle (Numbered 1 and 2)...the user simply has to say "1" or "2" and the appropriate folder is selected...
I'm currently making a Program that uses Motion Detection to control the mouse...
My Program should also identify all available Windows on screen...(sort of "helps" the mouse, like a guide)
i was wondering if there was any api that could get me the
a) The Coordinates of all Available windows...(EnumWindow then EnumChildWindow ?? )
b) Draw those Green Semi-Transperate Rectangles over them....(Any API? or any code you may have to offer?)
Thank you so much!
modified 20-Oct-19 21:02pm.
|
|
|
|