|
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
|
|
|
|
|
I am not getting your question What do you want to know. please be more specific and clear while asking question. if you have some code to share then please share it Otherwise we unable to help you without getting any snaps of your clear question.
|
|
|
|
|
I did the following example from msdn
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc /target:library /out:MathLibrary.DLL Add.cs Mult.cs<br />
<br />
csc /out:TestCode.exe /reference:MathLibrary.DLL TestCode.cs
http://msdn.microsoft.com/en-us/library/3707x96z%28v=vs.80%29.aspx
but how do I do the same thing in GUI of VS? Like having 2 files building a dll and then an exe linked to it?
Thanks.
|
|
|
|
|
In Visual Studio you can:
1.
create a new project using one of the templates; the "Class Library" one would result in a DLL file.
2.
modify the type of an existing project using the project properties (right-click the project in the solution pane), then change the output type.
Once you have a project that generates a DLL, you would need a second project (e.g. a WinForm or Console one) that can use the DLL (add a reference!).
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Isn't it possible to have everything in one project and with one button let it build first all the Dlls and then the depended exe?
Maybe by putting several projects in a workspace?
|
|
|
|
|
No it isn't. One project, one DLL/EXE output file. However you can have several projects in one solution (SLN file).
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
this may confuse the person asking the question... if you want to build a solution with multiple projects (i.e. to build all with one click), its easily done in studio, just create a master solution and pull in the project files from the related projects.
|
|
|
|
|
I think I got it right. As I understood it I have to pull in whole projects, not only files. Considering the above example of Ms, I created a solution and then 2 projects in it, one with the Mult.cs and Add.cs files which generates the dll and another with the contents of TestCode.cs a bit changed as far as its namespace and the references concerns. Then I changed the starting project and generally I played with some VS commands.
|
|
|
|