mdb
9d62b407e7
Migrated samskivert into its own, sensibly organized, repository.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1774 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-30 19:52:55 +00:00
ray
5966766e26
Document a feature that's not obvious in the algorithm and which I now
...
depend on.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1773 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-26 01:16:02 +00:00
ray
f64492960b
Our old pal Occam did a bit of shaving around some of the bushier methods:
...
they can be implemented in terms of some of the other methods.
(For example, contains() now calls indexOf() instead of nearly duplicating
it.)
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1772 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-25 00:40:20 +00:00
ray
66dbc52030
Incorporate the load factor when calculating the minimum size to trigger
...
a shrink.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1771 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-24 21:12:26 +00:00
ray
35a3c9c784
- Changed default buckets to 16 from 64.
...
- Removed protected checkGrow() in favor of Collections-style public
ensureCapacity().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1770 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-23 23:05:37 +00:00
ray
c0b7ad1942
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1769 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-23 19:12:55 +00:00
mdb
ae49badf90
We always want to try the default site bundle.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1768 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-21 21:36:06 +00:00
ray
1cded0f96c
Some fixups, escape colors prior to unescaping.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1767 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 22:46:36 +00:00
elizabeth
daf016d62f
blowtorch crufty tab indents; missing templates 404 instead of spewing logs
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1766 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 10:52:19 +00:00
ray
da75b303bc
Removed unneeded variable.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1765 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 02:20:17 +00:00
ray
9055c585f4
Added wacky jiggery to parse color tags of the form "#hhhhhh" where h is a
...
hex digit and color text segments within a label.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1764 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-20 02:19:00 +00:00
mdb
a210fb8dab
Added percent() which also handles 0/0.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1763 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-18 18:29:28 +00:00
mdb
4ee768e50e
Occam's razor.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1762 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-17 00:18:37 +00:00
mdb
54e0c7db9c
Added routines for sorting lists, collections and iterator contents.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1761 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-17 00:18:02 +00:00
mdb
e2d440a121
Added a method to reconstruct a URL, query parameters and all, and use that
...
when logging a logic failure so as to be maximally informative.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1760 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 23:10:47 +00:00
mdb
a6909f4c77
Added additional comments.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1759 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 22:51:21 +00:00
mdb
ef5636a175
Allow the application to customize the conversion of arbitrary error messages
...
to friendly error text.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1758 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-16 22:50:22 +00:00
mdb
2d47fd2690
Use get() in our convenience methods.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1757 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-15 05:21:43 +00:00
mdb
4b81ea76b8
Added get() for when you expect your query to match only a single record and
...
want the ResultSet to be properly closed once you have that record.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1756 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-15 05:20:42 +00:00
ray
068f94fd5c
Occam's razor: use Arrays to compare the stack trace elements.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1755 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-12 00:45:43 +00:00
mdb
3115a306e2
Updated date on copyright.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1754 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:28:13 +00:00
mdb
b425ea7b0d
A standard Java logging filter that consolidates repeat messages up to a
...
specified count and reports "Previous message repeated N times." when a
non-duplicate message is finally logged.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1753 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:27:23 +00:00
mdb
ccb2a9ceaf
Added an equality check for exceptions.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1752 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-11 19:00:26 +00:00
mdb
d8e2108797
Nevermind, looks like java.util.zip has a CRC32 class that does things natively
...
even.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1751 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-04 00:42:33 +00:00
mdb
1611d164a8
Incorporated code for computing the CRC32 hash function.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1750 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-04 00:32:03 +00:00
mdb
fc4d94a70c
Modified the serial executor to support timing out of hung executor tasks.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1749 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 21:50:50 +00:00
mdb
d87f5f635f
Various unit test fixes.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1748 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 21:49:09 +00:00
mdb
ca8a69f9e1
Mark the executor tasks as daemon so that they don't hold up the JVM when it's
...
time to exit.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1747 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2006-01-03 19:20:27 +00:00
ray
4478f67e8b
Destroyed the unnecessary NestableIOException.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1746 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-20 02:07:01 +00:00
mdb
777a00bc4e
Give a web application the chance to globally translate domain specific
...
exceptions into friendly exceptions that preserve a sensible user experience.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1745 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-15 19:24:58 +00:00
mdb
b1e9073953
Out damned log messages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1744 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-13 19:09:04 +00:00
mdb
f5ee2f5f74
Direct varying levels appropriately.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1743 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-12 20:26:29 +00:00
mdb
cd1515cb21
Avoid NPE.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1742 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-11 23:06:35 +00:00
mdb
51bf055fbd
Use a string for the path.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1741 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-09 01:31:50 +00:00
mdb
1c30a9c3dc
Updated to use the new LogChute Velocity logging wrapper and added a method to
...
create an engine that loads templates from a specified path instead of from the
classpath.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1740 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-09 01:29:55 +00:00
mdb
d78f6b6021
Revamped site-specific resource loading to work without requiring a modified
...
version of Velocity. We still maintain a modified version because we want to be
able to access object fields directly instead of requiring getter/setter
methods, but with the other requirement gone normal people can compile and use
Samskivert with the stock Velocity distribution and not have to worry. It also
makes it vastly easier for us to keep up with the latest version of Velocity.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1739 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-09 01:13:04 +00:00
andrzej
acbe7b16d1
Have fixedHidden take an Object rather than a String.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1738 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-05 21:01:39 +00:00
ray
68cfc8fa6c
Changed the name of the interface implemented by the Runnable we post
...
to a RunQueue to run the expired() method: calling it Runnable resulted
in annoyance when one desired to create an anonymous java.lang.Runnable
inside one's own Interval.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1737 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-05 19:41:32 +00:00
ray
326c1b2ce1
listFiles() can return null if the File its called on is not a directory,
...
or if any unspecified error or hiccup occurs within the acidic innards of
the JVM. If that's the case, we probably will fail deleting the directory
itself below these lines, but it's better than throwing a NPE and
sticking a fork in everything.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1736 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-02 22:56:01 +00:00
mdb
8892561d6a
We use a modified version of Velocity, so we need to check that in here.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1735 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-12-02 22:25:30 +00:00
ray
d6716b1a43
From Mike Thomas: IntIntMap now grows and shrinks.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1734 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-23 02:21:16 +00:00
ray
07800d1662
- There is a standard Comparator for reversing Comparables, so let's use
...
that everywhere; deprecated Comparators.REVERSE_COMPARABLE.
- Added a note that the ReversingComparator is old news, too, but we're not
ready to go 1.5 everywhere...
- Added Comparators.LEXICAL_CASE_INSENSITIVE which treats all sorted
objects as Strings that are sorted case insensitively.
- Have TableSorter use standard Comparators.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1733 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-11 01:17:56 +00:00
mdb
a2925e8ab6
Give applications a chance to perform global access control and to issue
...
specific HTTP errors.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1732 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-10 17:43:04 +00:00
mdb
ff96d731b8
blank() -> isBlank().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1731 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-09 04:01:30 +00:00
ray
a77afb08f2
Added isBlank(), deprecated blank().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1730 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-08 23:57:12 +00:00
mdb
759d8c3e75
Clarify the situation a bit.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1729 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-05 01:57:17 +00:00
mdb
e65d89b3fd
gotConnection() may be called before our constructor is called (indeed it is),
...
so we need to create or update our session as appropriate therein.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1728 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-05 01:54:42 +00:00
mdb
b92cd64617
Oops, we'll be needing these.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1727 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:03:41 +00:00
samskivert@gmail.com
03344a7938
Added a method to make it easier to insert schema migration calls.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1726 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 23:02:56 +00:00
ray
e6fe41e4a7
Put a space to the right of all right-aligned numbers in tables.
...
Strings are left-aligned, and when the two are next to each other it can
look bad.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1725 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2005-11-04 18:39:10 +00:00