Commit Graph

67 Commits

Author SHA1 Message Date
David Anderson b1851ce02c - user web: PHP 5.3 compatibility fix, from Nicolas. Fixes #787
svn path=/trunk/boinc/; revision=21878
2010-07-06 23:31:26 +00:00
David Anderson fb851311e0 - server: various changes;
see http://boinc.berkeley.edu/trac/wiki/CreditNew

    Projects will need to update DB and recompile all back-end programs.

    Summary:
    - new way of computing credit
    - "reliable host" mechanism is per app version
    - "host punishment" mechanism is per app version
    - adjustment of wu.rsc_fpops_est provides the
        equivalent of per app version DCF
    - max jobs in progress is now per app
    - max jobs per RPC is now per app

    TODO:
    - reliable mechanism:
        - populate and use host_app_version.error_rate
        - populate host_app_version.turnaround
    - host punishment:
        - populate host_app_version.max_jobs_per_day
        - populate host_app_version.n_jobs_today
        - use app.max_jobs_per_day_init
    - job limits:
        - use app.max_jobs_in_progress, max_gpu_jobs_in_progress
        - use app.max_jobs_per_rpc
    - adjust wu.rsc_fpops_est
    - remove old credit stuff
        fpops_cumulative, credit_multiplier
        credit computation in scheduler

- AVERAGE class: use the Knuth algorithm (Wikipedia)


svn path=/trunk/boinc/; revision=21021
2010-03-29 22:28:20 +00:00
David Anderson ae6420ab65 - client: if GPU get available RAM fails, don't use the GPU
- web: put $languages_in_use into $GLOBALS.
    Apparently it can't be referenced as a global in Drupal otherwise

svn path=/trunk/boinc/; revision=20412
2010-02-03 23:04:34 +00:00
David Anderson eeffc6de96 - web: translation fix from Nicolas:
"There is a bug in tra() that causes problems if one of the arguments
    contains a replacement marker itself. For example, if the first
    argument contains an encoded URL, which contains '%2', the second
    argument may appear in the middle of the URL."
- client simulator: further fiddling around.  Not done.

svn path=/trunk/boinc/; revision=20201
2010-01-19 23:01:09 +00:00
David Anderson 71c7e7a74b - client/scheduler/web: add per-project preferences for whether
to accept CPU, NVIDIA and ATI jobs.
    These prefs are shown only where relevant:
    e.g., only for processor types for which the project has app versions,
    and if it has versions for only one type, no pref is shown.

    These prefs affect both client and scheduler.
    The client won't ask for work for a device blocked by prefs,
    and the scheduler won't send it.

    This replaces earlier optional project-specific prefs for
    "no CPU jobs" and "no GPU jobs".
    (However, these prefs continue to be honored on the server side).

- client: if NVIDIA driver is unknown, say that rather than 0


svn path=/trunk/boinc/; revision=19194
2009-09-28 04:24:18 +00:00
David Anderson fe09a9bb92 svn path=/trunk/boinc/; revision=18166 2009-05-19 21:00:03 +00:00
David Anderson da217e4c59 - upgrade: don't crash if file copy fails
- db_update.php: select database (not clear if this ever worked)
- translation: fix bug if have both BOINC and project translation

svn path=/trunk/boinc/; revision=18141
2009-05-18 04:18:47 +00:00
David Anderson 9574e8a003 - web: check for mismatched "'s in translation files
- build_po.php: add LANG_NAME strings

svn path=/trunk/boinc/; revision=18109
2009-05-14 22:32:05 +00:00
Rytis Slatkevičius 2ba2d7b1a6 user web: remove an undocumented feature where anyone could do a recompile of language files by just knowing an URL parameter.
svn path=/trunk/boinc/; revision=18046
2009-05-07 15:19:42 +00:00
David Anderson 5198ad31d9 - client: write message (and show new config info) when config file reread
- client: improve cpu_sched_debug messages
- web translation: code wasn't handling multi-line tokens

svn path=/trunk/boinc/; revision=18028
2009-05-06 09:49:46 +00:00
David Anderson 20adddc862 - client: fixed a crash caused by using %f to write
working-set size into a fixed-size buffer.
    Use %e instead.
    TODO: figure out why WSS was huge.
- web: if "en" is primary language, don't read translation files

svn path=/trunk/boinc/; revision=17831
2009-04-16 09:01:41 +00:00
David Anderson 9dc7ecb22a - make_project: get rid of verbosity-level stuff
and fancy overwriting of stdout lines


svn path=/trunk/boinc/; revision=17736
2009-04-06 18:27:02 +00:00
David Anderson a720fc5d52 - web: translation system didn't compile BOINC and
project-specific translations correctly.

svn path=/trunk/boinc/; revision=17658
2009-03-24 23:27:12 +00:00
David Anderson 0f6de2ea58 - upgrade and make_project scripts: run update_translations.php,
which compiles the translation files into the form
    used by the web code.
    Projects that don't use "upgrade" will need to do this manually
    whenever translation files change.

svn path=/trunk/boinc/; revision=17652
2009-03-24 21:24:57 +00:00
David Anderson b7a2c227ca - Work fetch / scheduler:
There are two mechanisms to prevent the scheduler from
    sending jobs that won't finish by their deadline.
    Simple mechanism:
        The client sends the interval x for which CPUs are projected
        to be saturated.
        Given a job with estimated duration y,
        the scheduler doesn't send it if x + y exceeds the delay bound.
        If it does send it, x is incremented by y.
    Complex mechanism:
        Client sends workload description.
        Scheduler does EDF simulation, sees if deadlines are missed.
        The only project using this AFAIK is BOINC alpha test.
    Neither of these mechanisms takes coprocessors into account,
    and as a result jobs could be sent that are doomed to
    miss their deadline.
    This checkin adds coprocessor awareness to the Simple mechanism.

    Changes:
    Client:
        compute estimated delay (i.e. time until non-saturation)
        for coprocessors as well as CPU.
        Send them in scheduler request as part of coproc descriptor.
    Scheduler:
        Keep track of estimated delays separately for different resources
- client: fixed bug that computed CPU estimated delay incorrectly
- client: the work request (req_secs) for a resource is the min
    of the project's share and the shortfall.

svn path=/trunk/boinc/; revision=17086
2009-01-30 21:25:24 +00:00
Janus B. Kristensen a9e7cea54b Fixes major bug in the translation system.
The bug caused the default language to be ignored if set to "English" 
regardless of whether this was done through the browser or through a
cookie.

svn path=/trunk/boinc/; revision=17012
2009-01-25 10:45:07 +00:00
David Anderson e3807a8386 - scheduler: estimate CUDA device speed based on clock rate an #MP
- web: close table in WU page
- web: fix PHP error in translation script

svn path=/trunk/boinc/; revision=16648
2008-12-08 19:39:19 +00:00
David Anderson 659becc98c - get_project_config.php: if config.xml has min client version,
get client version from HTTP user agent string and enforce.
- update translations script: fix apparent typos

svn path=/trunk/boinc/; revision=16586
2008-11-28 19:03:05 +00:00
David Anderson 685ea38041 - web: change style sheet so tables are bordered only if class is "bordered"
- web: fix error if translation string missing


svn path=/trunk/boinc/; revision=16363
2008-10-30 18:27:22 +00:00
David Anderson a4380ee9a6 - web: make some things in sample front page translatable.
TODO: make them all translatable.
- manager: compile fix for Linux

svn path=/trunk/boinc/; revision=16207
2008-10-14 21:40:14 +00:00
Janus B. Kristensen f5327c452e - Updated the translation system from token/define-based to string-based.
- Removed language interface code (noone seemed to understand/use it anyways)
- Removed a lot of debug. Compiling the language files will now only show whether the compile worked or not
- Removed automatic change-detection. You must now manually trigger compiles using ops/update_translations.php (improves performance slightly)
- Extended tra() to support arbitrary number of arguments
- Random code documentation fixes
- Fixed language override selection page to now correctly show the possible language alternatives

svn path=/trunk/boinc/; revision=16190
2008-10-12 15:22:16 +00:00
David Anderson e432bb1182 - web: sub_sentence() went into an infinite loop
for a particular (non-ASCII) profile text.
    Not sure why, but I rewrote sub_sentence() in
    less obscure way and it works now
- web: slight cleanup of translation code.
    Can we please replace this with gettext()??

svn path=/trunk/boinc/; revision=16035
2008-09-22 17:14:03 +00:00
David Anderson 5b9e089cd8 - web: fix bugs in translation system
(language_select.php wasn't working)
- tr.po had some syntax error, and was way out of date.
    replaced it with en.po

svn path=/trunk/boinc/; revision=15858
2008-08-15 17:33:32 +00:00
Janus B. Kristensen 8ef70f4ec7 Removed warnings about empty language files at the first webpage hit of a new project.
These files (and hence missing arrays) are automatically generated and the warnings are therefore irrelevant.


svn path=/trunk/boinc/; revision=15802
2008-08-10 18:31:54 +00:00
David Anderson 9baf78fe5f - web: added copyright and license info to PHP files
svn path=/trunk/boinc/; revision=15758
2008-08-05 22:43:14 +00:00
David Anderson d764eb5873 - web: clean up stuff related to stripslashes():
1) it's not correct to apply stripslashes() to all form input.
        That should be done only if magic quotes is on.
        I fixed this by adding a function undo_magic_quotes()
        that does the right thing.
    2) There's no reason to strip backslashes from user-supplied text
        (forum titles and bodies, private messages, passwords etc.)
        I'm not sure why this was being done.
        It prevented messages from containing backslashes.

svn path=/trunk/boinc/; revision=15364
2008-06-05 20:32:21 +00:00
Rytis Slatkevičius 0333d3d598 user web: change flush statement to function call in translation system (fixes #425).
svn path=/trunk/boinc/; revision=15054
2008-04-15 16:52:23 +00:00
David Anderson 32022aa71e - web: fixed bugs in Bulgarian translation file
svn path=/trunk/boinc/; revision=14916
2008-03-14 21:40:18 +00:00
David Anderson cf4e42b4a3 - client: restore proper sense of --check_all_logins
(should this be set by default?)
- web: removed addslashes() when building language translation arrays.
    These caused 's to be displayed as \' everywhere.
    They may serve some purpose, but I can't think of what it is.
- web: changed max profile image dimensions from 800x600 to 640x480.
    The new profile page puts a column to the right
    of the image, so it shouldn't be quite that wide.

svn path=/trunk/boinc/; revision=14562
2008-01-15 22:22:08 +00:00
David Anderson 830db542f7 - user web: fix translation bug (from Nicolas Alvarez)
- user web: fix small bug in team search

svn path=/trunk/boinc/; revision=14293
2007-11-23 19:11:42 +00:00
David Anderson 7302f02544 - user web: added new framework for DB access from PHP.
Here's how things should eventually be:
    - inc/db_conn.inc defines DbConn, a PHP class representing
        a connection to a database with
        various generic operations (update, insert etc.).
        DbConn prepends the DB name to table names,
        so you don't have to select a DB;
        this means you can access multiple databases
        (e.g. BOINC and Bossa) and use persistent connections.
        ALL MYSQL-SPECIFIC CODE WILL EVENTUALLY BE HERE.
    - inc/boinc_db.inc defines classes BoincUser, BoincTeam etc.,
        representing the various BOINC DB tables.
        All access to the DB should use these classes.

    When you use this framework, no initialization calls are needed.
    db.inc is deprecated and should eventually be removed.

    I changed get_logged_in_user()
    and all team-related code to use this framework.
- user web: show team founder link to "management functions"
    even if they're not currently a member;
    allow team founder to perform all operations even if not a member.
- turned on E_ALL error checking,
    and fixed a bunch of warnings
    and a couple of bugs ($team, not team)

- database: update schema/constraints for team fulltext search
- user web: forgot to change Serbia and Montenegro to Serbia

svn path=/trunk/boinc/; revision=13968
2007-10-26 21:14:35 +00:00
Rytis Slatkevičius aac96f2858 User web: tokenless translation, add wildcards
svn path=/trunk/boinc/; revision=13459
2007-08-25 14:45:15 +00:00
Rytis Slatkevičius f2844f426b User web: tokenless translation, fix display when translation missing.
svn path=/trunk/boinc/; revision=13458
2007-08-25 13:38:04 +00:00
Rytis Slatkevičius 595ded5e4c User web: tokenless translation, do the same for project specific files.
svn path=/trunk/boinc/; revision=13457
2007-08-25 13:30:08 +00:00
Rytis Slatkevičius 2ce1ad7732 User web: allow tokenless translations (takes actual string instead of a token). New translation strings should use tra("string") instead of tr(TOKEN).
svn path=/trunk/boinc/; revision=13456
2007-08-25 13:28:01 +00:00
David Anderson 293176d656 - user web: add
$s = '$s';
    at top of compiled translation files,
    to allow re-ordering of format codes
    (from H. Komori)

html/inc/
    translation.inc

svn path=/trunk/boinc/; revision=12673
2007-05-15 21:41:59 +00:00
David Anderson 0daa5a8802 - translation.inc: backed out change of 7 May;
we need to use " to expand $PROJECT var
- scheduler:
    take work_buf_min into account in deciding whether
    a result will be reported by its deadline.
- all back end programs:
    better error message if can't parse config file

html/inc/
    translation.inc
sched/
    *.C

svn path=/trunk/boinc/; revision=12652
2007-05-11 16:30:13 +00:00
David Anderson f6a06c60ac - client simulator:
- Add --server_uses_workload option
            (simulate server that does EDF simulation)
        - Add simulation of exponential backoff when don't get work.
            Otherwise it will keep asking forever.
        - move non-interesting stuff to sim_util.C
    - change simulator code to use ' instead of " in compiled translations
    
    client/
        makefile_sim
        sim_util.C
        sim.C,h
        work_fetch.C
    html/inc/
        translation.inc
    sched/
        edf_sim.C
        edf_sim.h (new)

svn path=/trunk/boinc/; revision=12604
2007-05-08 01:55:28 +00:00
Janus B. Kristensen 80d875b076 Removed some old debug and changed a bogus error message with a more sane one
svn path=/trunk/boinc/; revision=12580
2007-05-06 22:38:43 +00:00
David Anderson c72634456d - make_project and upgrade now write a file 'local.revision'
in the project home directory.
        It contains the output of /usr/bin/svnversion,
        i.e. the code revision from which the server software was built.
    - Web files that create directories now give them g+rwx permissions

    html/inc/
        cache.inc
        translation.inc
    sched/
        edf_sim.C
    tools/
        make_project
        upgrade

svn path=/trunk/boinc/; revision=12521
2007-05-01 21:21:13 +00:00
David Anderson 3c9f9102e6 David 27 Apr 2007
- bug in language_select.php made 'auto' not work,
        i.e. its impossible to return to browser settings
        after doing a cookie-based language choice
    - translation.inc and language_select.php were using $HTTP_SERVER_VARS,
        which appears to be deprecated in PHP 5.
        Use $_SERVER instead.
    - made strings at top of web site translatable

    html/
        inc/
            translation.inc
        user/
            language_select.php
    languages/translations/
        en.po

svn path=/trunk/boinc/; revision=12493
2007-04-27 16:27:12 +00:00
David Anderson fe32380dcf David 23 Apr 2007
- make_project: remove --no_test_app option, add --test_app option
    - make_project: initial config in all cases has
        one_result_per_user_per_wu = 0
    - sample_assimilator: make it able to handle > 1 output file
    - boinc_cmd: make --help output more readable
    - User web: fix some undefined vars in translation.inc
        Rytis: let's try to fix PHP runtime warnings
    - DB: add default values for app table (avoid MySQL warnings)

    db/
        schema.sql
    html/
        inc/
            translation.inc
            uotd.inc
        ops/
            update_forum_activities.php
    lib/
        str_util.C
        boinc_cmd.C
    py/Boinc/
        setup_project.py
    sched/
        sample_work_generator.C
        sample_assimilator.C
    tools/
        make_project
        uc_wu, uc_result (new)

svn path=/trunk/boinc/; revision=12450
2007-04-23 16:14:47 +00:00
David Anderson 6f6f62c955 *** empty log message ***
svn path=/trunk/boinc/; revision=11515
2006-11-10 17:55:22 +00:00
David Anderson 7f4a2c5e19 *** empty log message ***
svn path=/trunk/boinc/; revision=11196
2006-09-26 17:02:46 +00:00
David Anderson 15b02359cd *** empty log message ***
svn path=/trunk/boinc/; revision=10950
2006-08-21 01:44:03 +00:00
David Anderson 6c8c7477e8 *** empty log message ***
svn path=/trunk/boinc/; revision=10904
2006-08-13 21:51:15 +00:00
David Anderson f4a37c6130 *** empty log message ***
svn path=/trunk/boinc/; revision=10875
2006-08-09 19:12:54 +00:00
David Anderson edafe87ad4 *** empty log message ***
svn path=/trunk/boinc/; revision=10731
2006-07-22 18:24:01 +00:00
David Anderson 5617df5f47 *** empty log message ***
svn path=/trunk/boinc/; revision=10118
2006-05-09 18:25:15 +00:00
David Anderson acc3b042f8 *** empty log message ***
svn path=/trunk/boinc/; revision=8772
2005-10-29 05:30:57 +00:00