chiark / gitweb /
disorder
15 years agomore template fiddling
Richard Kettlewell [Sat, 17 May 2008 12:07:18 +0000 (13:07 +0100)]
more template fiddling

15 years agoexp_search, fold search into choose, not really finished
Richard Kettlewell [Sat, 17 May 2008 11:50:42 +0000 (12:50 +0100)]
exp_search, fold search into choose, not really finished

15 years agonew @argq expansion; more template fiddling
Richard Kettlewell [Fri, 16 May 2008 18:32:24 +0000 (19:32 +0100)]
new @argq expansion; more template fiddling

15 years agotracks + dirs expansions
Richard Kettlewell [Mon, 12 May 2008 20:50:29 +0000 (21:50 +0100)]
tracks + dirs expansions

15 years agomore templates plus support code changes
Richard Kettlewell [Sun, 11 May 2008 17:28:07 +0000 (18:28 +0100)]
more templates plus support code changes

15 years ago@image expansion
Richard Kettlewell [Sun, 11 May 2008 14:50:13 +0000 (15:50 +0100)]
@image expansion

15 years agomore template work
Richard Kettlewell [Sun, 11 May 2008 14:37:57 +0000 (15:37 +0100)]
more template work

15 years agoextended @movable expansion; more template...
Richard Kettlewell [Sun, 11 May 2008 14:04:08 +0000 (15:04 +0100)]
extended @movable expansion; more template...

15 years ago@q expansion
Richard Kettlewell [Sun, 11 May 2008 13:53:29 +0000 (14:53 +0100)]
@q expansion

15 years agoremove action; better findtrack; more template fiddling
Richard Kettlewell [Sun, 11 May 2008 12:55:21 +0000 (13:55 +0100)]
remove action; better findtrack; more template fiddling

15 years agodirname/basename expansions; template fiddling
Richard Kettlewell [Sun, 11 May 2008 11:38:59 +0000 (12:38 +0100)]
dirname/basename expansions; template fiddling

15 years agoinfer_url() now attempts to spot https
Richard Kettlewell [Sat, 10 May 2008 19:48:15 +0000 (20:48 +0100)]
infer_url() now attempts to spot https

15 years agosplit out dcgi_get_cookie
Richard Kettlewell [Sat, 10 May 2008 17:36:43 +0000 (18:36 +0100)]
split out dcgi_get_cookie

15 years agoreorg cgi code a bit...
Richard Kettlewell [Sat, 10 May 2008 17:30:44 +0000 (18:30 +0100)]
reorg cgi code a bit...

15 years agolinux build fix
Richard Kettlewell [Sat, 10 May 2008 17:30:37 +0000 (18:30 +0100)]
linux build fix

15 years agoAlmost compiles, will not work though
Richard Kettlewell [Sat, 10 May 2008 13:50:28 +0000 (14:50 +0100)]
Almost compiles, will not work though

15 years agoFiddle with playing.tmpl a bit. not fully translated
Richard Kettlewell [Sat, 10 May 2008 12:22:27 +0000 (13:22 +0100)]
Fiddle with playing.tmpl a bit.  not fully translated

15 years agoredirect()
Richard Kettlewell [Sat, 10 May 2008 10:31:16 +0000 (11:31 +0100)]
redirect()

15 years agoact_playing
Richard Kettlewell [Sat, 10 May 2008 10:17:21 +0000 (11:17 +0100)]
act_playing

15 years agoStart conversion of CGI actions.
Richard Kettlewell [Sat, 10 May 2008 08:30:04 +0000 (09:30 +0100)]
Start conversion of CGI actions.

15 years agoExpansion syntax rewrite. Not documented yet, but then nor was the
Richard Kettlewell [Wed, 7 May 2008 20:04:23 +0000 (21:04 +0100)]
Expansion syntax rewrite.  Not documented yet, but then nor was the
previous rewrite.

15 years agoRemove some obsolete code
Richard Kettlewell [Wed, 7 May 2008 20:04:05 +0000 (21:04 +0100)]
Remove some obsolete code

15 years agoHalf way through rewriting web interface. Don't even think about
Richard Kettlewell [Mon, 5 May 2008 19:26:38 +0000 (20:26 +0100)]
Half way through rewriting web interface.  Don't even think about
trying to compile this.

15 years agoScript to generate -man documentation for expansions from comments in
Richard Kettlewell [Mon, 5 May 2008 10:24:21 +0000 (11:24 +0100)]
Script to generate -man documentation for expansions from comments in
source code.

15 years agoTest a couple of bogus inputs to mime_multipart().
Richard Kettlewell [Mon, 5 May 2008 09:48:15 +0000 (10:48 +0100)]
Test a couple of bogus inputs to mime_multipart().

15 years agocgi.c multipart/form-data testing.
Richard Kettlewell [Mon, 5 May 2008 09:44:06 +0000 (10:44 +0100)]
cgi.c multipart/form-data testing.

15 years agoShift many cgi_ functions into lib/, and add a test for them. The
Richard Kettlewell [Sun, 4 May 2008 20:22:11 +0000 (21:22 +0100)]
Shift many cgi_ functions into lib/, and add a test for them.  The
multipart/form-data code is not yet exercised, and the CGI program
does not use the new code.

15 years agoFurther macro tests
Richard Kettlewell [Sun, 4 May 2008 15:57:30 +0000 (16:57 +0100)]
Further macro tests

15 years agoFurther macro expansion tests + fixes.
Richard Kettlewell [Sun, 4 May 2008 11:38:17 +0000 (12:38 +0100)]
Further macro expansion tests + fixes.

15 years agoFixes and first test for macro expansion.
Richard Kettlewell [Sun, 4 May 2008 11:19:04 +0000 (12:19 +0100)]
Fixes and first test for macro expansion.

15 years agoMacro expansion (untested). Tests for most builtin expansions.
Richard Kettlewell [Sun, 4 May 2008 10:58:21 +0000 (11:58 +0100)]
Macro expansion (untested).  Tests for most builtin expansions.

15 years agoMain template expander and some built-in expansions. All untested.
Richard Kettlewell [Sat, 3 May 2008 23:21:25 +0000 (00:21 +0100)]
Main template expander and some built-in expansions.  All untested.

15 years agoYet further macros.c testing
Richard Kettlewell [Sat, 3 May 2008 20:01:31 +0000 (21:01 +0100)]
Yet further macros.c testing

15 years agoFurther macros.c testing
Richard Kettlewell [Sat, 3 May 2008 19:59:58 +0000 (20:59 +0100)]
Further macros.c testing

15 years agomore macros.c testing
Richard Kettlewell [Sat, 3 May 2008 19:57:19 +0000 (20:57 +0100)]
more macros.c testing

15 years agoAdd mx_dump() to dump a (canonicalized) parsed macro expansion.
Richard Kettlewell [Sat, 3 May 2008 19:51:01 +0000 (20:51 +0100)]
Add mx_dump() to dump a (canonicalized) parsed macro expansion.

15 years agoCopy macro parse into lib/ and make a start on tests for it.
Richard Kettlewell [Sat, 3 May 2008 19:42:13 +0000 (20:42 +0100)]
Copy macro parse into lib/ and make a start on tests for it.

15 years agoSynchronize with disorder.dev
Richard Kettlewell [Sat, 3 May 2008 19:15:50 +0000 (20:15 +0100)]
Synchronize with disorder.dev

15 years agoRemove now-redundant check target.
Richard Kettlewell [Sat, 3 May 2008 12:47:22 +0000 (13:47 +0100)]
Remove now-redundant check target.

15 years agolib/ tests now use Automake's test infrastructure, and are split into
Richard Kettlewell [Sat, 3 May 2008 12:43:17 +0000 (13:43 +0100)]
lib/ tests now use Automake's test infrastructure, and are split into
multiple executables.

15 years agoUse Automake's simple test infrastructure for running Python-based
Richard Kettlewell [Sat, 3 May 2008 12:21:41 +0000 (13:21 +0100)]
Use Automake's simple test infrastructure for running Python-based
tests.

15 years agoMerge latest GCC 2.95 fix
Richard Kettlewell [Tue, 29 Apr 2008 20:25:38 +0000 (21:25 +0100)]
Merge latest GCC 2.95 fix

15 years agoWorkaround for broken GCC 2.95 installs
Richard Kettlewell [Tue, 29 Apr 2008 17:55:43 +0000 (18:55 +0100)]
Workaround for broken GCC 2.95 installs

15 years ago1) If we reject a remote user management operation, we log it.
Richard Kettlewell [Tue, 29 Apr 2008 17:43:42 +0000 (18:43 +0100)]
1) If we reject a remote user management operation, we log it.
2) Remote fetching of 'rights' is always allowed, since clients depend
   on being able to discover what they can do and this isn't a serious
   information leak.

15 years agoFurther rearrangement to support macro expansion.
Richard Kettlewell [Sun, 27 Apr 2008 21:41:39 +0000 (22:41 +0100)]
Further rearrangement to support macro expansion.

15 years agoFurther separation of template parsing and expansion
Richard Kettlewell [Sun, 27 Apr 2008 21:26:15 +0000 (22:26 +0100)]
Further separation of template parsing and expansion

15 years agoSeparate parsing of templates from expansion.
Richard Kettlewell [Sun, 27 Apr 2008 21:12:07 +0000 (22:12 +0100)]
Separate parsing of templates from expansion.

15 years agoFirst cut at macro definition. Does not expand args yet.
Richard Kettlewell [Sun, 27 Apr 2008 20:35:19 +0000 (21:35 +0100)]
First cut at macro definition.  Does not expand args yet.

15 years agoAllow trailing '@' to be left out of CGI expansions in specific
Richard Kettlewell [Sun, 27 Apr 2008 19:43:35 +0000 (20:43 +0100)]
Allow trailing '@' to be left out of CGI expansions in specific
circumstances.  This is such a common typo it seems better to accept
the result of user testing than cling to the original syntax.

15 years agoAsk for -std=gnu99 if necessary to get full <limits.h>.
Richard Kettlewell [Sun, 27 Apr 2008 19:07:42 +0000 (20:07 +0100)]
Ask for -std=gnu99 if necessary to get full <limits.h>.

15 years agoNote about use of GCC extensions.
Richard Kettlewell [Sun, 27 Apr 2008 12:35:24 +0000 (13:35 +0100)]
Note about use of GCC extensions.

15 years agoSimple test for compare_path_raw(). It's moved into a separate source
Richard Kettlewell [Sun, 27 Apr 2008 12:22:23 +0000 (13:22 +0100)]
Simple test for compare_path_raw().  It's moved into a separate source
file since the test program doens't have the config pointer.

15 years agoexercise make_home()
Richard Kettlewell [Sun, 27 Apr 2008 12:15:03 +0000 (13:15 +0100)]
exercise  make_home()

15 years agoMore testing.
Richard Kettlewell [Sun, 27 Apr 2008 10:22:03 +0000 (11:22 +0100)]
More testing.

15 years agoDe-dupe default backend selection
Richard Kettlewell [Sun, 27 Apr 2008 10:07:30 +0000 (11:07 +0100)]
De-dupe default backend selection

15 years agoSeparate notion of configured audio backend from Disobedience/playrtp
Richard Kettlewell [Sat, 26 Apr 2008 18:56:15 +0000 (19:56 +0100)]
Separate notion of configured audio backend from Disobedience/playrtp
audio backend.  This allows Disobedience to show the volume widget iff
it'll work.  If RTP is enabled then it uses the default audio backend
(which is what playrtp will pick); if not then it assumes the server
is capable of setting the volume.

Currently this will still go wrong on a Mac without RTP.

15 years agoFurther lib/ testing.
Richard Kettlewell [Sat, 26 Apr 2008 18:22:39 +0000 (19:22 +0100)]
Further lib/ testing.

15 years agoVarious fixes for GCC 2.95
Richard Kettlewell [Sat, 26 Apr 2008 14:58:41 +0000 (15:58 +0100)]
Various fixes for GCC 2.95

15 years agostruct addrinfo varies in order between platforms, forcing us to fall
Richard Kettlewell [Sat, 26 Apr 2008 14:41:37 +0000 (15:41 +0100)]
struct addrinfo varies in order between platforms, forcing us to fall
back on C99 initializer syntax.  I don't think this will be a huge
problem in practice: all the currently supported platforms use GCC as
their default compiler, and all vaguely recent versions of GCC support
this feature.

15 years agoAdditional testing for addr.c and a consequent bug fix.
Richard Kettlewell [Sat, 26 Apr 2008 14:30:58 +0000 (15:30 +0100)]
Additional testing for addr.c and a consequent bug fix.

15 years agoexercise byte_fprintf
Richard Kettlewell [Sat, 26 Apr 2008 14:08:59 +0000 (15:08 +0100)]
exercise byte_fprintf

15 years agoLog the time at which newly noticed tracks are added to the database.
Richard Kettlewell [Sat, 26 Apr 2008 13:51:46 +0000 (14:51 +0100)]
Log the time at which newly noticed tracks are added to the database.
This will allow disorder-choose to add a bias in favor of those tracks
(cf defect 11).

15 years agoBuffer reads from /dev/urandom
Richard Kettlewell [Fri, 25 Apr 2008 19:07:38 +0000 (20:07 +0100)]
Buffer reads from /dev/urandom

15 years agoMerge MDW's one-pass track picker
Richard Kettlewell [Fri, 25 Apr 2008 18:54:03 +0000 (19:54 +0100)]
Merge MDW's one-pass track picker

15 years agoReduce random pick interval
Richard Kettlewell [Wed, 23 Apr 2008 22:03:46 +0000 (23:03 +0100)]
Reduce random pick interval

15 years agosearch.py waits for rescan to finish
Richard Kettlewell [Wed, 23 Apr 2008 22:03:03 +0000 (23:03 +0100)]
search.py waits for rescan to finish

15 years agoMove conf.debconf generation to postinst, per debconf-devel(7).
Richard Kettlewell [Wed, 23 Apr 2008 18:56:33 +0000 (19:56 +0100)]
Move conf.debconf generation to postinst, per debconf-devel(7).

15 years agoNetwork play setup support in debconf scripts.
Richard Kettlewell [Tue, 22 Apr 2008 20:47:33 +0000 (21:47 +0100)]
Network play setup support in debconf scripts.

15 years agoNetwork play support for scripts/setup.
Richard Kettlewell [Tue, 22 Apr 2008 19:51:19 +0000 (20:51 +0100)]
Network play support for scripts/setup.

15 years agoCommand line parsing for scripts/setup. This is useful for repeated
Richard Kettlewell [Tue, 22 Apr 2008 18:13:49 +0000 (19:13 +0100)]
Command line parsing for scripts/setup.  This is useful for repeated
installs and teardowns with identical configuration.

15 years agoscripts/setup waits a bit to let the server start up. This is a real
Richard Kettlewell [Tue, 22 Apr 2008 18:00:13 +0000 (19:00 +0100)]
scripts/setup waits a bit to let the server start up.  This is a real
bodge but will do for now.

15 years agoBy default, disable user management over TCP (since it tends to have
Richard Kettlewell [Tue, 22 Apr 2008 17:59:32 +0000 (18:59 +0100)]
By default, disable user management over TCP (since it tends to have
passwords in it).  The remote_userman configuration directive can be
used to re-enable it.

15 years agoRestore vpath'd builds
Richard Kettlewell [Tue, 22 Apr 2008 17:32:11 +0000 (18:32 +0100)]
Restore vpath'd builds

15 years agoNobble set_tool_colors(). We seem to be better off without.
Richard Kettlewell [Mon, 21 Apr 2008 19:15:35 +0000 (20:15 +0100)]
Nobble set_tool_colors().  We seem to be better off without.

15 years agoMerge from 3.0 fixes branch
Richard Kettlewell [Sun, 20 Apr 2008 19:17:45 +0000 (20:17 +0100)]
Merge from 3.0 fixes branch

15 years agoweb page no longer uses CHANGES/README.txt
Richard Kettlewell [Sun, 20 Apr 2008 19:17:06 +0000 (20:17 +0100)]
web page no longer uses CHANGES/README.txt

16 years agochoose: Use a one-pass algorithm to select tracks.
mdw@distorted.org.uk [Sun, 20 Apr 2008 18:36:32 +0000 (19:36 +0100)]
choose: Use a one-pass algorithm to select tracks.

The previous algorithm used one pass over the track database to compute
weights and build a list, and a second pass to pick the right track from
the list after having actually chosen a random number,

This change throws out a lot of the old code involved with constructing
and walking the list by using a one-pass algorithm instead.  (The
algorithm provably preserves the probability distribution: see
commentary.)

16 years agochoose: Select tracks uniformly at random.
mdw@distorted.org.uk [Sun, 20 Apr 2008 18:36:24 +0000 (19:36 +0100)]
choose: Select tracks uniformly at random.

The previous algorithm had a (very minor) bias towards tracks which are
early in the enumeration order.  This change fixes the bias completely.

16 years agoClients now test whether users.db is readable before blundering in and
Richard Kettlewell [Sun, 20 Apr 2008 17:15:49 +0000 (18:15 +0100)]
Clients now test whether users.db is readable before blundering in and
trying it.  They will still fail in all the cases they did before but
much more gracefuly.

16 years agoMerge from disorder.userman
Richard Kettlewell [Sun, 20 Apr 2008 16:00:19 +0000 (17:00 +0100)]
Merge from disorder.userman

16 years agoBuild fix for linux
Richard Kettlewell [Sun, 20 Apr 2008 15:58:06 +0000 (16:58 +0100)]
Build fix for linux

16 years agoMerge disorder.userman branch
Richard Kettlewell [Sun, 20 Apr 2008 15:01:45 +0000 (16:01 +0100)]
Merge disorder.userman branch

16 years agoUse fls() if available
Richard Kettlewell [Sun, 20 Apr 2008 14:59:58 +0000 (15:59 +0100)]
Use fls() if available

16 years agoCHANGES and docs updates for user management window
Richard Kettlewell [Sun, 20 Apr 2008 14:46:16 +0000 (15:46 +0100)]
CHANGES and docs updates for user management window

16 years agoStandardize on "username" (not "user") in user-facing contexts
Richard Kettlewell [Sun, 20 Apr 2008 14:38:22 +0000 (15:38 +0100)]
Standardize on "username" (not "user") in user-facing contexts

16 years agoMerge more 3.0 branch changes
Richard Kettlewell [Sun, 20 Apr 2008 14:07:20 +0000 (15:07 +0100)]
Merge more 3.0 branch changes

16 years agoCope with a toxic cookie Ross found under a rock
Richard Kettlewell [Sun, 20 Apr 2008 14:04:12 +0000 (15:04 +0100)]
Cope with a toxic cookie Ross found under a rock

16 years agoRestore builds --without-server
Richard Kettlewell [Sun, 20 Apr 2008 13:46:28 +0000 (14:46 +0100)]
Restore builds --without-server

16 years agoHack to align rights check buttons. They're still not aligned with
Richard Kettlewell [Sun, 20 Apr 2008 13:31:20 +0000 (14:31 +0100)]
Hack to align rights check buttons.  They're still not aligned with
the entry widgets above, but this is still an improvement over what
went before.

16 years agoMerge from 3.0 branch
Richard Kettlewell [Sun, 20 Apr 2008 13:19:37 +0000 (14:19 +0100)]
Merge from 3.0 branch

16 years agomktemp is (1) Essential: yes and (2) not in dapper (which has it in
Richard Kettlewell [Sun, 20 Apr 2008 13:18:52 +0000 (14:18 +0100)]
mktemp is (1) Essential: yes and (2) not in dapper (which has it in
debianutils), so there's nothing to be gained and much to be lost by
depending on it.

16 years agoMerge fixes up to 3.0.1
Richard Kettlewell [Sun, 20 Apr 2008 12:32:05 +0000 (13:32 +0100)]
Merge fixes up to 3.0.1

16 years agoThis isn't exactly 3.0 so change version number
Richard Kettlewell [Sun, 20 Apr 2008 11:15:51 +0000 (12:15 +0100)]
This isn't exactly 3.0 so change version number

16 years agoFor Debian installs, prerm now supports failed-upgrade, which is
Richard Kettlewell [Sun, 20 Apr 2008 10:29:52 +0000 (11:29 +0100)]
For Debian installs, prerm now supports failed-upgrade, which is
necessary as the 2.0.x prerm cannot survive new /usr/bin/disorder.

16 years agoPut a frame around user management window (and the other popups) and
Richard Kettlewell [Sun, 20 Apr 2008 09:34:52 +0000 (10:34 +0100)]
Put a frame around user management window (and the other popups) and
improve internal spacing a bit.

16 years agoOnly offer user management window if you have RIGHT_ADMIN. The server
Richard Kettlewell [Sat, 19 Apr 2008 23:08:52 +0000 (00:08 +0100)]
Only offer user management window if you have RIGHT_ADMIN.  The server
will stop you if you don't but it won't be pretty.

16 years agoComment typo fix.
Richard Kettlewell [Sat, 19 Apr 2008 23:07:03 +0000 (00:07 +0100)]
Comment typo fix.

16 years agoproperly scroll user list
Richard Kettlewell [Sat, 19 Apr 2008 20:41:43 +0000 (21:41 +0100)]
properly scroll user list

16 years agoDestroy users table properly
Richard Kettlewell [Sat, 19 Apr 2008 20:31:48 +0000 (21:31 +0100)]
Destroy users table properly

16 years agoTart up users window a bit
Richard Kettlewell [Sat, 19 Apr 2008 20:07:08 +0000 (21:07 +0100)]
Tart up users window a bit