Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > Team MacNN > [Fold] In the works...

[Fold] In the works...
Thread Tools
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Mar 23, 2002, 07:31 AM
 
I've been coding this in AppleScript Studio for the past week on and off when I have the time.

What's done:
  • Preferences
  • Stopping the cli app
  • Interface
  • client.cfg file manipulation (team, user, etc)
  • error system (ensures only one copy of app and core_65.exe is running)

What's to do?
  • finish the cli app start sequence
  • stats

Those are the main points, but there a ton of little points that I won't bore you with...

And what's you've all been waiting for, the pretty cocoa GUI pictures that go along with it:

iFold Preferences

iFold Statistics

None that you see of course is totally finalized, but it should look similar.

Kyle

[edit] I hate bad formatting of posts...

[ 03-24-2002: Message edited by: krove ]

How did it come to this? Goodbye PowerPC. | sensory output
     
Junior Member
Join Date: Jun 2001
Location: Antioch
Status: Offline
Reply With Quote
Mar 23, 2002, 07:40 PM
 
On linux I've seen multiple copies of app and core running if there is a problem receiving finished units.
It will correspond to the number of units in que to be sent.

And on two cpu machines you wouldn't want that.
Don't take candy from strangers
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Mar 29, 2002, 02:53 PM
 
Originally posted by krove:
<STRONG>I've been coding this in AppleScript Studio for the past week on and off when I have the time.

What's done:
  • Preferences
  • Stopping the cli app
  • Interface
  • client.cfg file manipulation (team, user, etc)
  • error system (ensures only one copy of app and core_65.exe is running)

What's to do?
  • finish the cli app start sequence
  • stats

Those are the main points, but there a ton of little points that I won't bore you with...

And what's you've all been waiting for, the pretty cocoa GUI pictures that go along with it:

iFold Preferences

iFold Statistics

None that you see of course is totally finalized, but it should look similar.

Kyle

[edit] I hate bad formatting of posts...

[ 03-24-2002: Message edited by: krove ]</STRONG>
Looks interesting! I look forward to testing the end result.
     
krove  (op)
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Mar 30, 2002, 04:08 AM
 
Small update, starting and stoping is fine. I am now focusing on the transition from unit to unit and stat collection/storage.

Future possibilities:
-dual processor support (i.e. your choice of running 1 or 2 F@H sets)
-installation

Kyle

How did it come to this? Goodbye PowerPC. | sensory output
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Mar 30, 2002, 05:51 PM
 
Originally posted by krove:
<STRONG>Small update, starting and stoping is fine. I am now focusing on the transition from unit to unit and stat collection/storage.

Future possibilities:
-dual processor support (i.e. your choice of running 1 or 2 F@H sets)
-installation

Kyle</STRONG>
Glad you're making headway. Keep me in mind for beta testing.
BTW, you better get cracking on folding, I am about to pass you
     
krove  (op)
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Apr 1, 2002, 08:32 AM
 
Come May, all those who passed me should be ready to be passed: I'm coming home and I'll have access to more than just one computer with limited internet access that I currently have in France.

Be prepared...

Well, for the moment, coding iFold requires sometimes that I keep a unit for testing F@H's responses to specific situations (unable to connect, no frames completed yet, etc).

To potential users: Are there any specific stats that you would like to iFold to collect? I'm nearly at the point to code stat collection (not the more difficult part)...

Kyle

How did it come to this? Goodbye PowerPC. | sensory output
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Apr 1, 2002, 07:36 PM
 
Originally posted by krove:
<STRONG>Come May, all those who passed me should be ready to be passed: I'm coming home and I'll have access to more than just one computer with limited internet access that I currently have in France.

Be prepared...

Well, for the moment, coding iFold requires sometimes that I keep a unit for testing F@H's responses to specific situations (unable to connect, no frames completed yet, etc).

To potential users: Are there any specific stats that you would like to iFold to collect? I'm nearly at the point to code stat collection (not the more difficult part)...

Kyle</STRONG>
Look forward to your return to "the FOLD".
     
Junior Member
Join Date: Jun 2001
Location: Antioch
Status: Offline
Reply With Quote
Apr 2, 2002, 01:27 AM
 
krove-

I'm working on a similar app.
Also Applecript Studio.

I've run into a couple AppleScript Oddities-

1) Finder sort
This does not seem to work in OS X (yet)
I want to use it to sort the work directory by date modified of files who's name contains logfile

2) Finder Apple Events Buggy
I made a directory and put a dummy file in it.
Applescript was able to list the directory, give me the first file in the list, and open with TextEdit.

Then using the Terminal I added a file who's name started with an a so it should have been first in the list.

AppleScript Failed. It opened the file it had opened before.

I then deleted the first file.
AppleScript Failed. It launched TextEdit, but a blank document.

I then opened the folder in the finder.
The file I had deleted via the terminal showed up, then disapeared, then the new file I added showed up.

Then the AppleScript worked.

grrr@Apple!
Apple Events for the Finder will not update its own database when querried to include files added to a directory (or removed) that did not make use of the finder.

As a result, I'm using
do shell script

for those things- but i was wondering if you knew of any AppleScript workarounds to these problems.

I'm worried that I'll use a command that might not be present if the user does not have the BSD subsystem installed.

Here's a screenshot of my app- http://macaddict4life.dhs.org/fold_i...ld_control.jpg

Currently it will install folding cli if it doesn't find it (I'm going to require it be in ~/FAH and if dual, ~/FAH-2 - after debugging I my make that more flexible) and start/stop it.

It sets it up to run in the crontab so that it is running if the user isn't logged in (and hasn't specifically turned it off)

Status bars and user info aren't working yet- hopefully my workaround using the do shell script command will make the status bars easier.

ls -t |grep logfile |head -1
will give the most current logfile name.

The user info will be trivial, since its alwats FAH/client.cfg that needs to be modified (or FAH-2- I'm going to allow different confgurations if running two on dual cpu machines)
Don't take candy from strangers
     
Mac Elite
Join Date: Jan 2002
Location: Mile High City
Status: Offline
Reply With Quote
Apr 3, 2002, 01:14 AM
 
Originally posted by krove:
<STRONG>Come May, all those who passed me should be ready to be passed: I'm coming home and I'll have access to more than just one computer with limited internet access that I currently have in France.

Be prepared... </STRONG>
Heh! I look forward to your return and a good challenge. Be prepared to work to regain your spot. I will not yield without a struggle.

<STRONG>To potential users: Are there any specific stats that you would like to iFold to collect? I'm nearly at the point to code stat collection (not the more difficult part)...

Kyle</STRONG>
Due to the nature of folding, and the manner in which it is scored, what I would like to be able to see is average times per unit, based on the type of unit that is being folded, and total number of units.
(i.e. Type 312, 40 units at 6.6 hrs) or something along those lines. Keep up the good work.
     
krove  (op)
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Apr 3, 2002, 05:19 AM
 
Originally posted by Shaktai:
<STRONG>Due to the nature of folding, and the manner in which it is scored, what I would like to be able to see is average times per unit, based on the type of unit that is being folded, and total number of units.
(i.e. Type 312, 40 units at 6.6 hrs) or something along those lines. Keep up the good work.</STRONG>
Exactly what I planned on storing - average frame times and unit times for specific protein units. From there, I can calculate other extras (rates, projected finish time for a unit in progress, etc).

I've decided to revise code now (before I get too far into stats) to bring support for multiple copies of F@H. Better to build that in sooner than later - less code to revise. Thankfully, my code is pretty modular so far, so adding dual-cpu support is progressing fine.

As for those AppleScript problems, I've found using do shell script much easier in manipulating files, etc. I'm not the biggest AppleScript buff, so I'll stick to what I know (and I'm not too familiar with manipulating files via AS)...

Happy folding!

How did it come to this? Goodbye PowerPC. | sensory output
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:54 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2