Commit Graph

259 Commits

Author SHA1 Message Date
mdb 7f70824e42 Fail if we can't connect to the music daemon and get the music daemon host
and port from the environment if they're in there.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@112 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 03:00:25 +00:00
mdb ed6424b58c Bind to all interfaces.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@111 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:59:13 +00:00
mdb 5ca07d34f5 Generate mp3 file names with leading zeros (ie. xx/ID/05.mp3) so that they
are easier to deal with.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@110 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:45:13 +00:00
mdb 0f249ee49f Output something sane when we aren't playing any songs. Added a "SKIP"
command which allows the currently playing song to be skipped.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@109 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:44:26 +00:00
mdb 7ff3ddc7ac Wrote an mp3 music playing server that can be remotely controlled via TCP
connections using perl and MPEG::MP3Play. Ah how easy it can be to write
things in glue languages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@108 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:41:36 +00:00
mdb 219d25a195 Simple script for running the importer class.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@107 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-22 02:40:52 +00:00
mdb 4c7d34bcca Center the primary window. Created a "finished" panel which allows you to
go back and rip another CD or (soon) to edit/categorize the CD you just
ripped. Cleaned up various other kibbles.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@106 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-21 00:41:03 +00:00
mdb 485a2e118f Whoops. Forgot to return from invokeTask() if the task completed
successfully.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@105 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-20 04:33:11 +00:00
mdb 40484d1f57 Created a utility for invoking tasks such that they can be retried by the
user if they fail (presumably after making some external change like
changing file permissions or restarting a database).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@104 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 23:03:56 +00:00
mdb e13e406cfd Added the ability to retry operations if a transient failure occurs. Also
cleaned up connection handling so that the connection to the database can
properly be closed and reestablished on transient failure.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@103 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:59:08 +00:00
mdb a6854ab613 Only try to close our connection object if it has successfully been
created in the first place.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@102 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:58:06 +00:00
mdb 69f51a8559 Finished up the importer and fixed various things along the way.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@101 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-18 06:58:55 +00:00
mdb d9df144cbf Look in dist/classes rather than src/java now for our classes,
etc. because we build with ANT.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@100 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb 23cce67346 Dispatch task completions on the swing event thread.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@99 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb 53d7315932 Added getParameter().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@98 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:37 +00:00
mdb f0d5d50fe3 invoke() now takes an Application parameter.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@97 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:14 +00:00
mdb 557b8073a7 Switching to ant build system.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@96 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-12 01:27:37 +00:00
mdb 0b7a29c7ed Exit after launching unless we're being compiled in applet mode (which
isn't fully reinstated yet anyway).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@95 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-10 20:43:57 +00:00
mdb d7ad411c11 Prune whitespace from the end of the selection before inserting it into
the lookuplet text widget.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@94 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-10 20:30:58 +00:00
mdb ea9f65f24f Added getDateParameter() which doesn't freak out if the date isn't set in
the form fields but does freak out if it's a bogus date.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@93 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 08:18:28 +00:00
mdb 21305787af Created a class for path related utility functions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@92 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 07:33:29 +00:00
mdb 170422e1f1 Modified things further. Moved message manager management entirely into
the default application. Derived applications now simply provide a message
bundle path if they want a message manager. Also now pass an application
reference to the logic instances when they are invoked so that they can
easily access application-wide resources.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@91 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:37:51 +00:00
mdb 7a45385168 Added some convenience functions for translating messages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@90 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:25:48 +00:00
mdb 8ac811810b If the application provides a message manager, use that to localize any
messages reported from a FriendlyException or from the exception map.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@89 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:22:17 +00:00
mdb 81710f70ec Modified things to make handling of message resource bundles easier. We
now have an actual application class that's used by dispatched
applications. The message manager provides an easy interface into
localizing messages and MsgTool has a way to get at the message manager in
effect for whatever application is handling a request.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@88 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:15:39 +00:00
mdb f96b4cc237 git-svn-id: https://samskivert.googlecode.com/svn/trunk@87 6335cc39-0255-0410-8fd6-9bcaacd3b74c 2001-03-04 06:14:14 +00:00
mdb b52c0431b6 Created a README in the lib directory indicating which external Java
packages are needed to use samskivert.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@86 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 22:33:32 +00:00
mdb 184f07a765 Eliminate build.sh because we use the debian ant package to compile now.
Modified build.xml to include jar files from the shared java directory
provided by Debian.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@85 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 22:17:02 +00:00
mdb b594197590 Switched to the ANT build system from make.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@84 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:21:46 +00:00
mdb 75890dc814 Created a context tool that loads up a message bundle of translation
strings and allows templates to reference those translated strings easily.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@83 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:21:28 +00:00
mdb 3776c8ab74 Catch and handle redirect exceptions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@82 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:20:13 +00:00
mdb 0cb96a2380 Use getSize() and getBounds() rather than size() and bounds(). The latter
are deprecated.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@81 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:19:48 +00:00
mdb b1070329bb Use BufferedReader rather than DataInputStream as it's the preferred thing
to do in Java 2.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@80 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:19:05 +00:00
mdb 9c5d045e1c Whoops. Missing a space.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@79 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:39:32 +00:00
mdb 0708119f29 Added loadUserNames() and loadRealNames() for loading the user and real
names of a list of users who's userids are known.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@78 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:36:00 +00:00
mdb 13fa067cdf Made UserRepository instance available via getter method.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@77 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:35:39 +00:00
mdb f940a90847 Turned some helper classes into inner classes to avoid naming conflicts.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@76 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 05:31:13 +00:00
mdb 04f1a83125 Return the user object from login() so that we can act upon a user's
authentication immediately following a successful login.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@75 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:45:48 +00:00
mdb 8198fc6fb4 Was missing quotes around the expires date in the session insert SQL.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@74 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:38:31 +00:00
mdb 562c16d9ea Formatting.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@73 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:35:17 +00:00
mdb 7a6111bb66 Was referencing the wrong array.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@72 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:34:37 +00:00
mdb d33bd92c4d Mo betta user management.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@71 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:08:50 +00:00
mdb 998f929340 Added hexlate() a function that takes an array of bytes and returns a
string that is the hex encoding of said bytes.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@70 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:49:48 +00:00
mdb de085d0781 Created some SQL that creates the necessary user management tables in
MySQL syntax.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@69 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:22:46 +00:00
mdb 6178cba159 Moved shared Log instance to top-level so that all classes in the
samskivert package can make use of it. Having one log instance for the
whole samskivert package seems more reasonable at present than one log
instance for each of the subpackages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@68 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:22:07 +00:00
mdb 878234e6f8 Created initial revision of user management services.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@67 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:21:06 +00:00
mdb de2f079b79 Fixed @see references.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@66 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 00:50:46 +00:00
mdb 4fc7d1dbe7 Added classes to manage thread-safe queues and to execute operations at
regular intervals on a separate thread.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@65 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 00:47:10 +00:00
mdb 7e723c6ddb Moved query generation entirely into Table instead of half in Cursor and
half in table. Then added a select() method that allows the addition of
other tables into the FROM clause so that a join can be done to determine
the key of the desired row. For example:

select ... FROM users, sessions WHERE authcode = 'foo' AND
                                      users.userid = sessions.userid


git-svn-id: https://samskivert.googlecode.com/svn/trunk@64 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 00:34:04 +00:00
mdb bdbb9ad427 Added isDuplicateRowException() for determining whether or not an
exception was caused by inserting a duplicate row into a table that
disallows such actions.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@63 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-01 22:59:51 +00:00