Click here to Skip to main content
15,915,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: Enable/Disable LinkButton in Javascript Pin
SatyaKeerthi1528-Sep-10 2:03
SatyaKeerthi1528-Sep-10 2:03 
Questionhow to get last active window in c# Pin
froxy27-Sep-10 21:12
froxy27-Sep-10 21:12 
AnswerRe: how to get last active window in c# Pin
Saksida Bojan27-Sep-10 23:57
Saksida Bojan27-Sep-10 23:57 
QuestionUsing Two Datatables in One DataSet in RDLC Report Pin
vanillaET27-Sep-10 18:11
vanillaET27-Sep-10 18:11 
QuestionRecommendation for FTP/SFTP/FTPS component in C#? Pin
1eyhk127-Sep-10 15:54
1eyhk127-Sep-10 15:54 
AnswerRe: Recommendation for FTP/SFTP/FTPS component in C#? Pin
Eddy Vluggen28-Sep-10 6:40
professionalEddy Vluggen28-Sep-10 6:40 
AnswerRe: Recommendation for FTP/SFTP/FTPS component in C#? Pin
jschell29-Sep-10 9:50
jschell29-Sep-10 9:50 
QuestionAsking Google for Pagerank Programatically Pin
jimbo809827-Sep-10 11:56
jimbo809827-Sep-10 11:56 
This is my version of another guys code (hartertobak) in which he shows us how to use google to get the pagerank. I really liked this code and have really been looking for it BUT there needed to be some modifications to the code before it could be used for batch processing. So i made some simple but effwctive mods to his already beatiful code.

The initial idea was wonderful and worked perfectly if you only wanted to do 1 or 2 URLS but was useless for batches of urls (urls in their thousands) because google will block pagerank requests for sites from the same ip if they have a frequency of less than 1 second (ish) so i had to come up with a way to stop that happening. When i heard of this problem the first thing i did was to put a 10 second sleep between every submission. This meant that google wouldnt pick up this as a bot making the submissions since a human could quite easily make a request to google every 10 seconds.

The next thing after that was to bring in file handling and an interface so that the user could interact with the program. My first idea for this would be to import a .txt file. That way a file could be made and saved for later use and would mean not having to enter the urls one by one. Of course the user could do this but still have the flexibility to add more after it has been loaded.

The HCI is VERY simple and basic. It is a listbox with a few buttons. The listbox is the main display. and the buttons are the controls. There is a textbox for inputting urls and some error handling with the textbox but it is assumed that the user has knowledge of what he/she is doing. every url must begin with http:// and contain at least 1 dot (.)

So now i had a working program but there remains one problem. Time. The 10 second delay cannot be helped but the way i made that happen was to use Thread.Sleep which meant that the program is unresponsive. How do i make my program responsive while waiting those 10 seconds and display the results in real time?

Any help appreciated Smile | :)
jimbo8098

AnswerRe: Asking Google for Pagerank Programatically Pin
Luc Pattyn27-Sep-10 12:04
sitebuilderLuc Pattyn27-Sep-10 12:04 
GeneralRe: Asking Google for Pagerank Programatically Pin
jimbo809827-Sep-10 23:58
jimbo809827-Sep-10 23:58 
GeneralRe: Asking Google for Pagerank Programatically Pin
jimbo809830-Sep-10 3:19
jimbo809830-Sep-10 3:19 
GeneralRe: Asking Google for Pagerank Programatically Pin
Luc Pattyn30-Sep-10 3:31
sitebuilderLuc Pattyn30-Sep-10 3:31 
QuestionHow to set folder/file security permission? Pin
Chesnokov Yuriy27-Sep-10 8:44
professionalChesnokov Yuriy27-Sep-10 8:44 
AnswerRe: How to set folder/file security permission? Pin
phil.o28-Sep-10 0:07
professionalphil.o28-Sep-10 0:07 
Questioncondition for x64 Pin
mersad0027-Sep-10 8:41
mersad0027-Sep-10 8:41 
GeneralRe: condition for x64 Pin
harold aptroot27-Sep-10 9:31
harold aptroot27-Sep-10 9:31 
GeneralRe: condition for x64 Pin
Luc Pattyn27-Sep-10 9:55
sitebuilderLuc Pattyn27-Sep-10 9:55 
QuestionRe: condition for x64 Pin
mersad0027-Sep-10 10:04
mersad0027-Sep-10 10:04 
AnswerRe: condition for x64 Pin
Dave Kreskowiak27-Sep-10 10:44
mveDave Kreskowiak27-Sep-10 10:44 
Questionre-using a dll. Pin
caradri27-Sep-10 4:47
caradri27-Sep-10 4:47 
AnswerRe: re-using a dll. Pin
Luc Pattyn27-Sep-10 5:04
sitebuilderLuc Pattyn27-Sep-10 5:04 
AnswerRe: re-using a dll. Pin
caradri27-Sep-10 6:26
caradri27-Sep-10 6:26 
AnswerRe: re-using a dll. Pin
Luc Pattyn27-Sep-10 6:31
sitebuilderLuc Pattyn27-Sep-10 6:31 
Questionc# Pin
Janded27-Sep-10 3:45
Janded27-Sep-10 3:45 
AnswerRe: c# Pin
Pete O'Hanlon27-Sep-10 4:01
mvePete O'Hanlon27-Sep-10 4:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.