|
|
Thanx a lot. I think LINQ will help us achieve it.
He who goes for revenge must first dig two graves.
|
|
|
|
|
I have done similar things before using an sql data adapter. This produces a seperate file for xml schema though. I'm not sure if this is what your looking for.
SqlCommand cmd = new SqlCommand();
cmd.Connection = new SqlConnection(@"cnnstring");
cmd.Connection.Open();
cmd.CommandText = "SELECT * FROM Table1; SELECT * FROM Table2";
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(ds);
ds.WriteXmlSchema(@"C:\dat.xsd");
ds.WriteXml(@"C:\dat.xml");
cmd.Connection.Close();
|
|
|
|
|
how Access to the default page other Webhost
Example http://codeproject.com
Results defalut.aspx
Example http://byethost.com
Results index.php
Please Help
|
|
|
|
|
Do you want to know what it will be called? Because you can't tell in advance. It could be "default.aspx", "index.html", "index.php" or something else, depending on the language it is written in.
Only going there will tell you - you can't determine the language in advance.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
That's a setting of the web server. There, you can define a list of "default" pages which is searched up to the first match, which is then sent to the browser. Typically, you will not see in the browser which page was sent to you. But in case of server redirect, you will see it.
|
|
|
|
|
Thanks for your answer
I want to make a robot spider, not in my site on other sites
|
|
|
|
|
In which case, by default, you don't need to know what the page is called up front - you can find that out once you reach the page. You hit the front page, and then start crawling out from that page. If you're hitting a site because you are following a link from another site, you could well find that you are in a page other than the default page anyway.
|
|
|
|
|
More tips
grateful
|
|
|
|
|
|
Just use GET / then. Remember to respect robots.txt instructions and meta headers!
|
|
|
|
|
Posting this in the correct forum might get you an answer faster.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "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
|
|
|
|
|
Although he didn't make it clear in his original posting, it looks like this is the right forum as he's trying to write a web crawler.
|
|
|
|
|
Hi everyone!
I guess that's my first post on the site, but i ain't here for the first time...you guys've helped me many many times before what i'm really grateful for
Now i have some problem which i can't deal with alone...
There is a camera connected to "Belkin hi speed usb 2.0 dvd-creator". I have a sdk for those devices written in C lang.
I need to display the video from the camera on a form in c# program, so i've imported the necessary functions from the sdk lib. It works fine, but...now i have to add some graphics on the view. Thing is, function that "displays" the video has a reference to a rectangle as one of three arguments (the rest is hwnd id and pointer to the device), so the only way to use the "live view" (with this function) is to point some defined rectangle. That would be ok, but i need to modify it...there is no (simple) way to get byte data of the video with this sdk.
I tried to use directshow to grab the video from belkin device, but the "live" view is "dead" after one second...even less. Guess there is something wrong with buffer management.
The only thing i can figure out now is to catch bitmap from the rectangle, add image and send it back, but there might be a huge loss of frames.
Do You know any way (or other way) of:
modifying such data displayed in a rectangle / obtaining video data from the belkin device ?
or
Do You know any kind of library that might be useful here? I guess there is some way to deal with the problem using directshow, but i am not familiar with it.
I've studied DXLogo sample from directshow samples but i still need to have pure data or compatible device.
I would be really grateful for any help
|
|
|
|
|
I would start with Belkin technical support - they will know more than we do!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Hello...use avicap32.dll...it might be useful...
|
|
|
|
|
|
OK, it works pretty well with AForge.NET DirectShow lib.
Thanks a lot for help everyone!
|
|
|
|
|
Hi,
I need to make a generic version of Binary Search Tree, I've non generic version which uses comparable as a data on the node. Therefore I need to define generic type such that it should be an sub class of Comparable interface. Note: Comparable it self is a generic type. This what I've done so far but its giving me compiler errors.
Comparable<E> data;
void addNode(Node n)
{
int c = data.compareTo(n.data);
}
In the code above, data is of type Comparable<e> thus it has method compareTo(E data), but when I cast ((E)n.data) it gives me error that its not type safe. But I dunno why when I've defined Comparable<e> data, then why can't I cast <e>data?? Any help will be appreciated.
|
|
|
|
|
note: Comparable<T> is the Java version, in C# it's IComparable<T>
The problem is that data would have to be IComparable<E> and E both at the same time - that could be the case, but it is not guaranteed (you could try to feed it an invalid type, and C# generics aren't C++ templates). So you must constrain the type E to be Comparable<E> in the class definition of the Binary Search Tree (and/or Node, depending on whether it is a nested type or not)
class BST<E> where E : IComparable<E>
{
E data;
}
|
|
|
|
|
And how do you constaring generic types in class definition for JAVA. I read on Google that you can constraint in method definition not in beginning of the class.
|
|
|
|
|
I don't know, try the Java forum
|
|
|
|
|
NVM, I got it.
In java code is this way..
class BinarySearchTree<T extends <? super T>>
Where
? super T denotes any super class of type T.
Thanks for the help.
Shivam Kalra
|
|
|
|
|
hi guys
i did write a program for packet pc and when focus on a textbox virtual keyboard did not appear such as web page
whats problem ?
thanks a lot
|
|
|
|
|
I think the half-shaft giggle pin code was too long.
Clearly, not nearly enough information to be able to help hence my meaningless response.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|