Workaround for Project Updates in HFM
Moderator: Site Moderators
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Workaround for Project Updates in HFM
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!
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!
Re: Workaround for HFM
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.
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.
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Re: Workaround for HFM
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?bollix47 wrote:... even though the address went yellow and HFM didn't seem to like it.
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!
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Workaround for HFM
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.
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.
-
- Posts: 177
- Joined: Tue Aug 26, 2014 9:48 pm
- Hardware configuration: 10 SMP folding slots on Intel Phi "Knights Landing" system, configured as 24 CPUs/slot
9 AMD GPU folding slots
31 Nvidia GPU folding slots
50 total folding slots
Average PPD/slot = 459,500 - Location: Dallas, TX
Re: Workaround for Project Updates in HFM
Thanks toTOW, works great
Hardware config viewtopic.php?f=66&t=17997&p=277235#p277235
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Re: Workaround for Project Updates in HFM
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
That way, if it isn't updated in a timely fashion I can swear all I like at the culprit without fear of repercussions
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Workaround for Project Updates in HFM
I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Re: Workaround for Project Updates in HFM
I said it was a good idea, now I see it's even better than I thoughttoTOW wrote:I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server
Re: Workaround for Project Updates in HFM
It is great to see you and toTOW doing something about it, and in less time than it takes to excuse it.billford wrote:I said it was a good idea, now I see it's even better than I thoughttoTOW wrote:I have 5 HFM to update at various locations ... that's why it's easier to publish the file to my server
Re: Workaround for Project Updates in HFM
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.
The “file:///C:/Users/.etc” created an empty file but then I tried “file://C:/Users/.etc” and HFM created a new ProjectInfo.tab.
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Workaround for Project Updates in HFM
File updated on my server. New project : p9852.
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Re: Workaround for Project Updates in HFM
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.
-
- Site Moderator
- Posts: 6359
- Joined: Sun Dec 02, 2007 10:38 am
- Location: Bordeaux, France
- Contact:
Re: Workaround for Project Updates in HFM
If you don't know what the changes are, it's quicker find and remove the NaNs ...
-
- Posts: 1003
- Joined: Thu May 02, 2013 8:46 pm
- Hardware configuration: Full Time:
2x NVidia GTX 980
1x NVidia GTX 780 Ti
2x 3GHz Core i5 PC (Linux)
Retired:
3.2GHz Core i5 PC (Linux)
3.2GHz Core i5 iMac
2.8GHz Core i5 iMac
2.16GHz Core 2 Duo iMac
2GHz Core 2 Duo MacBook
1.6GHz Core 2 Duo Acer laptop - Location: Near Oxford, United Kingdom
- Contact:
Re: Workaround for Project Updates in HFM
That's true... it does rather assume that the announcement is accurate and complete (which it usually is).
-
- Posts: 1122
- Joined: Wed Mar 04, 2009 7:36 am
- Hardware configuration: 3 - Supermicro H8QGi-F AMD MC 6174=144 cores 2.5Ghz, 96GB G.Skill DDR3 1333Mhz Ubuntu 10.10
2 - Asus P6X58D-E i7 980X 4.4Ghz 6GB DDR3 2000 A-Data 64GB SSD Ubuntu 10.10
1 - Asus Rampage Gene III 17 970 4.3Ghz DDR3 2000 2-500GB Segate 7200.11 0-Raid Ubuntu 10.10
1 - Asus G73JH Laptop i7 740QM 1.86Ghz ATI 5870M
Re: Workaround for Project Updates in HFM
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.
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.
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.
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