Workaround for Project Updates in HFM

This forum contains information about 3rd party applications which may be of use to those who run the FAH client and one place where you might be able to get help when using one of those apps.

Moderator: Site Moderators

Workaround for Project Updates in HFM

Postby billford » Wed Dec 09, 2015 2:54 pm

I got fed up editing ProjectInfo.tab, especially when an un-noticed typo stopped HFM working! So I dreamed up a workaround which others might find useful and I'd appreciate any suggestions for improvement. Use at your own risk, but it seems OK so far.


1) In your browser open the psummary page of your choice (I use psummaryC) and save it as a text (HTML) file. In Chromium that's File => Save Page As, select the "Webpage, complete" format option.

2) Use your favourite editor to remove all <tr class=xxxx> … </tr> blocks containing a "NaN" and Save. It's easier if the editor understands HTML and can indent/format the lines; I use TextWrangler. Good idea to open this file in your browser to check it looks OK.

3) In HFM, go to the "Web Settings" tab in the Preferences pane and change the "Project Download url" entry to point to the above file. (I used the full "file:///C:/Users/ etc " url format; it may not be necessary, I didn't check). OK out and quit HFM.

4) In your …/AppData/Roaming/HFM folder, rename the ProjectInfo.tab file to something else (so you can recover it in case of disaster!)

5) Restart HFM- it should create a new ProjectInfo.tab from the HTML file and continue happily.

When new projects are announced, simply create a new HTML file as above and HFM should automatically get the new details when a client gets a previously "unknown" project. Not yet tested.



Obviously it's not ideal, it depends how assiduously you keep track of new projects in the Announcements section. But that's no different to now, it should make life easier when several new projects are introduced simultaneously and you don't have to worry about typos!
Image
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for HFM

Postby bollix47 » Wed Dec 09, 2015 5:37 pm

Thanks Bill, this worked for me.

I didn't rename ProjectInfo.tab but did copy it for backup.

I used Firefox to save the Project Summary page as D:/newprogs/Folding@home%20Projects%20Summary.htm.

I used notepad++ to remove the NAN records. I suspect this could be done from the command line using grep but an appropriate editor does make it easy.

I then put my file name file:///D:/newprogs/Folding@home%20Projects%20Summary.htm in the Project Download url clicked on OK even though the address went yellow and HFM didn't seem to like it. I then clicked on Tools > Download Projects from Stanford.

ProjectInfo.tab did update correctly.

I did not want to completely create a new file as I had information in the old file that I didn't want to lose.
bollix47
 
Posts: 3449
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: Workaround for HFM

Postby billford » Wed Dec 09, 2015 6:57 pm

bollix47 wrote:... even though the address went yellow and HFM didn't seem to like it.

I didn't get that... but one thing I didn't mention was that I renamed the file to just ProjInfo.html, maybe HFM wasn't sure about the @ or the %20's in the filename?

I wondered about trying to script it, but my skills in that area are more than a little rusty and I decided it would probably cause me more trouble than it would save!
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for HFM

Postby toTOW » Wed Dec 09, 2015 10:23 pm

If you don't want to bother with all the editing part, you can point HFM to http://87.98.172.206/psummary_manu.htm

This is hosted on my server and manually updated, so I don't know how often I'll update it. Let me know if something important is missing and I'll update it.
Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.

FAH-Addict : latest news, tests and reviews about Folding@Home project.

Image
User avatar
toTOW
Site Moderator
 
Posts: 8514
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: Workaround for Project Updates in HFM

Postby PS3EdOlkkola » Thu Dec 10, 2015 12:05 am

Thanks toTOW, works great :)
User avatar
PS3EdOlkkola
 
Posts: 185
Joined: Tue Aug 26, 2014 9:48 pm
Location: Dallas, TX

Re: Workaround for Project Updates in HFM

Postby billford » Thu Dec 10, 2015 7:40 am

Good idea toTOW and thanks, but intending no disrespect I'll stick to my local file.

That way, if it isn't updated in a timely fashion I can swear all I like at the culprit without fear of repercussions :wink:
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for Project Updates in HFM

Postby toTOW » Thu Dec 10, 2015 1:50 pm

I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server ;)
User avatar
toTOW
Site Moderator
 
Posts: 8514
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: Workaround for Project Updates in HFM

Postby billford » Thu Dec 10, 2015 2:08 pm

toTOW wrote:I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server ;)

I said it was a good idea, now I see it's even better than I thought :D
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for Project Updates in HFM

Postby JimF » Thu Dec 10, 2015 2:34 pm

billford wrote:
toTOW wrote:I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server ;)

I said it was a good idea, now I see it's even better than I thought :D

It is great to see you and toTOW doing something about it, and in less time than it takes to excuse it.
JimF
 
Posts: 457
Joined: Thu Jan 21, 2010 2:03 pm

Re: Workaround for Project Updates in HFM

Postby msgclb » Thu Dec 10, 2015 3:09 pm

I used the notepad that’s in Win 8.1.
The “file:///C:/Users/.etc” created an empty file but then I tried “file://C:/Users/.etc” and HFM created a new ProjectInfo.tab.
msgclb
 
Posts: 16
Joined: Mon Jun 13, 2011 9:56 pm

Re: Workaround for Project Updates in HFM

Postby toTOW » Sat Dec 12, 2015 1:51 pm

File updated on my server. New project : p9852.
User avatar
toTOW
Site Moderator
 
Posts: 8514
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: Workaround for Project Updates in HFM

Postby billford » Sat Dec 12, 2015 4:41 pm

You've probably done this already, but a hint for anyone using their own local file- if there are only a few new projects, rather than downloading the page and editing out all those NaN blocks it's easier to View Source in your browser and copy/paste the relevant section(s) into the existing local file.
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for Project Updates in HFM

Postby toTOW » Sat Dec 12, 2015 4:51 pm

If you don't know what the changes are, it's quicker find and remove the NaNs ...
User avatar
toTOW
Site Moderator
 
Posts: 8514
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France

Re: Workaround for Project Updates in HFM

Postby billford » Sat Dec 12, 2015 5:01 pm

That's true... it does rather assume that the announcement is accurate and complete (which it usually is).
billford
 
Posts: 1006
Joined: Thu May 02, 2013 8:46 pm
Location: Near Oxford, United Kingdom

Re: Workaround for Project Updates in HFM

Postby Grandpa_01 » Sat Dec 12, 2015 10:04 pm

It's quicker just to put toTOW's link in your HFM web settings and then hit the Download projects from Stanford button in your HFM tool's. :mrgreen:

Thanks toTWO although I did change the 9852 points manually before you posted that you had updated it. I am using your link and it is appreciated. :D
Image
2 - SM H8QGi-F AMD 6xxx=112 cores @ 3.2 & 3.9Ghz
5 - SM X9QRI-f+ Intel 4650 = 320 cores @ 3.15Ghz
2 - I7 980X 4.4Ghz 2-GTX680
1 - 2700k 4.4Ghz GTX680
Total = 464 cores folding
User avatar
Grandpa_01
 
Posts: 1757
Joined: Wed Mar 04, 2009 7:36 am

Next

Return to 3rd party contributed software

Who is online

Users browsing this forum: No registered users and 1 guest

cron