On Fri, 11 Mar 2005 16:26:41 -0500, Bob Hutchison <hutch(a)recursive.ca> wrote:
> While doing this I noticed something a little funny with the dates
> associated with If-modified-since. TBNL (rfc-1123-date) produces
> dates like "Tue, 1 Feb 2005 13:49:29 GMT" while Safari produces
> dates like "Tue, 01 Feb 2005 13:49:29 GMT" -- same date but you
> can't compare them as strings. If you look at rfc2616 section 3.3.1
> there is an example that has the leading 0 on the day of
> month. Safari produces a header with the leading 0 for
> If-modified-since, so files in the first 9 days of any month will
> never match. FireFox appears to return whatever you send it, so it
> works there. I think this is probably a bug in TBNL.
Thanks for the info, I've uploaded a new version (0.3.13) which fixes
this.
Stefan Scholl provided some additional info which I'll include here:
1. This bug didn't show up before because Apache silently parses and
rewrites this header. Only because you sent it through Araneida
which obviously just lets it through could you see the wrong
format.
2. While Safari's behaviour is not strictly wrong it doesn't follow
the recommendation given in the RFC to send the header back exactly
as received from the server.
Thanks again,
Edi.
_______________________________________________
tbnl-announce site list
tbnl-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-announce
New release CL-EMB 0.3.0
CL-EMB is a library to embed Common Lisp and special template
tags into normal text files. Can be used for dynamically
generated HTML pages.
You can download it from
http://common-lisp.net/project/cl-emb/
or install with ASDF-Install.
CL-USER> (asdf:operate 'asdf:load-op :asdf-install)
CL-USER> (asdf-install:install :cl-emb)
Changes:
- API change: EXECUTE-EMB's optional parameters are now keyword
parameters. You have to change your calls like this:
OLD: (emb:execute-emb "foo" '(:language "Common Lisp"))
NEW: (emb:execute-emb "foo" :env '(:language "Common Lisp"))
See the added keyword :ENV before the plist.
- Generator loops.
The additional keyword parameter GENERATOR-MAKER to EXECUTE-EMB
lets you supply a function, which returns a generator function.
Generator functions are described on
http://www.cs.northwestern.edu/academics/courses/325/readings/graham/genera…
Basically these are functions which answer to command codes
:TEST (==> return true when there's no further data from the
generator), :GET (==> return current value), :NEXT (==> return
next value)
The new template tags @genloop and @endgenloop are used to
build a loop which uses this generator function. First the
function supplied to GENERATOR-MAKER is called with the
corresponding keyword to the parameter of @genloop and the
value in the plist with this key. ("<% @genloop foo %>" ==>
first parameter :FOO, second parameter (getf env :foo)).
The loop itself tests if there are further values for
iterations by calling the generator function with the command
:TEST. Then the first value is fetched with :NEXT. (No :GET is
used at the moment.) The returned values have to be plists.
A simple example from the README:
CL-USER> (emb:register-emb "test10" "Square root from 1 to <% @var numbers %>: <% @genloop numbers %>sqrt(<% @var number %>) = <% @var sqrt %> <% @endgenloop %>")
#<CL-EMB::EMB-FUNCTION {581EC765}>
CL-USER> (declare (ignore key))
(let ((i 1))
#'(lambda (cmd)
(ecase cmd
(:test (> i n))
(:get `(:number ,i :sqrt ,(sqrt i)))
(:next (prog1 `(:number ,i :sqrt ,(sqrt i))
(unless (> i n)
(incf i))))))))
MAKE-SQRT-1-TO-N-GEN
CL-USER> (emb:execute-emb "test10" :env '(:numbers 10) :generator-maker 'make-sqrt-1-to-n-gen)
"Square root from 1 to 10: sqrt(1) = 1.0 sqrt(2) = 1.4142135 sqrt(3) = 1.7320508 sqrt(4) = 2.0 sqrt(5) = 2.236068 sqrt(6) = 2.4494898 sqrt(7) = 2.6457512 sqrt(8) = 2.828427 sqrt(9) = 3.0 sqrt(10) = 3.1622777 "
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
The McCLIM developers are happy to release version 0.9.1 of McCLIM. It
was extensively tested on SBCL (threaded and unthreaded), OpenMCL and
CMUCL. It's also known to work with Allegro Common Lisp (tested with
6.2 Trial Edition). Lots of things changed since the last release, so
I appended the release notes after the announcement.
We're hoping to make this release the first in a series of time-boxed
releases of McCLIM. You can get a tarball at
<http://common-lisp.net/project/mcclim/downloads/mcclim-0.9.1.tar.gz>.
Of course, we are looking forward to comments and bug reports. Please
direct these at mcclim-devel <at> common-lisp.net. The current list of
known bugs can be found at <http://mcclim.cliki.net/Bug>.
Have fun using McCLIM (and build good things with it),
the McCLIM developers.
RELEASE NOTES FOR McCLIM 0.9.1 - "Mothering Sunday":
Changes to the McCLIM Installation Process
==========================================
McCLIM now comes with a native ASDF system definition in mcclim.asd,
along with the traditional (still ASDF-compatible) system.lisp. See
INSTALL.ASDF for details.
Changes to Backends
===================
Support for Copy&Paste of selections (both into and out from McCLIM
applications) in the X11 backend was added. Copying text from McCLIM
into some applications (and vice versa) like KDE's Konsole is broken,
unfortunately. Shift + left-mouse-drag and Shift + mouse-middle-down
now activate a selection and paste in your McCLIM application,
respectively.
There is now rudimentary support for printing non-Latin1 characters to
X11 ports on SBCL.
Beagle, A new experimental backend using Mac OS X's Cocoa bindings was
added. Note that this backend is still incomplete and breaks in some
places. It is not loaded automatically. To try it out, consult
Backends/beagle/README.
Changes to the Manual
=====================
A chapter on presentation types was added.
The chapter on command tables was improved.
Changes to Contributed Applications and Examples
================================================
Clouseau, a graphical Inspector application was added.
The CLIM Listener saw many improvements, among these: package
graphing, better directory stack handling and a new Edit Definition
command.
A Method Browser was added to the examples.
Status of the CLIM 2 Spec Implementation
========================================
Here is a list of what we think works, organized by chapters and
sections of the CLIM 2 specification.
Chapter 3 Regions
Mostly finished. There are some troublesome parts of the
specification that may not be implemented for all possible
regions, for instance region-contains-region-p. There may not
be an efficient way of implementing this function for all kinds
of regions.
Chapter 4, Bounding rectangles
Finished
Chapter 5, Affine transformations
Finished
Chapter 6, Overview of window facilities
Finished
Chapter 7, Properties of sheets
Finished, though the correct behavior of sheet transformations may
not have been tested.
Chapter 8, Sheet protocols
Finished
Chapter 9, Ports, Grafts, and Mirrored sheets
Finished
Chapter 10, Sheet and medium output facilities
Finished
Chapter 11, Text styles
Finished
Chapter 12, Graphics
Finished
Chapter 13, Drawing in Color
I am note sure about the state of this. I thought we were doing
only full opacity and full transparency, but I see traces of more
general designs.
Chapter 14, General Designs
The composition of designs is not supported. We do support regions
as designs.
Chapter 15, Extended Stream Output
Extended output streams are fully supported.
Chapter 16, Output Recording
Output recording is mostly implemented. We do not have a true
standard-tree-output-record type or the R-tree type of real CLIM,
so some operations may be slow with lots of output
records. make-design-from-output-record is not
implemented. *Note*: the coordinates in output records are
relative to the stream. This is in conformance with the Spec, but
not necessarily compatible with other CLIM implementations.
There is now a protocol in place for Drag-and-Drop of output
records.
Output recording inside formatting-tables now works.
Chapter 17, Table Formatting
Table formatting is completely implemented.
Chapter 18, Graph Formatting
Graph formatting is fully implemented. The :hash-table argument
to format-graph-from-roots is ignored.
Chapter 19, Bordered Output
Bordered output is fully supported.
The :move-cursor argument to surrounding-output-with-border is now
working.
Chapter 20, Text Formatting
With the exception of the :after-line-break-initially argument to
filling-output, this chapter is fully implemented.
Chapter 21 Incremental Redisplay
The updating-output interface to incremental redisplay is
implemented. McCLIM makes no effort to move i.e., bitblit, output
records; they are always erased and redrawn if their position
changes. This is much more compatible with support for partial
transparency. The :x, :y, :parent-x and :parent-y arguments to
redisplay-output-record are ignored. McCLIM follows the spirit of
21.3 "Incremental Redisplay Protocol", but we have not tried very
hard to implement the vague description in the
Spec. augment-draw-set, note-output-record-child-changed and
propagate-output-record-changes-p are not implemented.
Incremental redisplay in McCLIM can suffer from performance
problems because there are no spatially-organized compound
output record types.
The generic function incremental-redisplay is now implemented.
Chapter 22, Extended Stream Input
The implementation of extended input streams is quite
complete. (setf* pointer-position) is not implemented. There is no
stream numeric argument, so that slot of the accelerator-gesture
condition is always 1.
drag-output-record and dragging-output are now implemented.
Chapter 23 Presentation Types
Most of the literal specification of this chapter is
implemented. Specific accept and present presentation methods for some
types are not implemented, so the default method may be
surprising.
The output record bounding rectangle is always used or highlighting
and pointer testing.
presentation-default-processor is not implemented.
The presentation method mechanism supports all method
combinations. The body of a presentation method is surrounded
with a block of the same name as the presentation method, not just
the magic internal name. The method by which presentation type
parameters and options are decoded for the method bodies is a bit
different from real CLIM. In particular, you cannot refer to the
type parameters and options in the lambda list of the method.
The NIL value of presentation-single-box is now supported.
Presentation type histories are now partially implemented. The
gesture C-M-y should recall the last entered presentation.
define-drag-and-drop-translator is now implemented.
Chapter 24 Input Editing and Completion Facilities
with-input-editor-typeout is not implemented.
The noise strings produced by input-editor-format and the strings
produced by presentation-replace-input are not read-only. This
could lead to interesting "issues" if the user edits them.
Only a few of the suggested editing commands are implemented. An
additional command that is implemented is control-meta-B, which
drops into the debugger. add-input-editor-command is not
implemented.
with-accept-help is not implemented.
Chapter 25 Menu Facilities
The protocol is implemented, but McCLIM doesn't use it to draw
command table menus.
Chapter 26 Dialog Facilities
McCLIM contains a basic, somewhat buggy implementation of
accepting-values. There is little user feedback as to what has
been accepted in a dialog. The user has to press the "Exit" button
to exit the dialog; there are no short cuts. There are no special
accept-present-default methods for member or subset presentation
types. Command-buttons are not implemented. There is no
gadget-based implementation of accepting-values. own-window is not
supported.
The internal structure of accepting-values should be "culturally
compatible" with real CLIM; if you have some spiffy hack, check
the source.
Chapter 27 Command Processing
command-line-complete-input is not implemented (the
functionality does exist in the accept method for command-name).
display-command-table-menu and menu-choose-command-from-table are
not implemented. Menu-command-parser is not implemented, though the
functionality obviously is. Nothing is done about partial menu
commands. There is no support for numeric arguments.
The command-or-form presentation type is not implemented.
Chapter 28 Application Frames
raise-frame, bury-frame and notify-user are not implemented.
:accept-values panes are not implemented.
frame-maintain-presentation-histories,
frame-drag-and-drop-feedback and frame-drag-and-drop-highlighting
are not implemented.
execute-frame-command ignores the possibility that frame and the
current frame might be different.
display-command-menu isn't implemented.
command-enabled is now implemented.
Chapter 29 Panes
Due to the way the space-allocation protocol is implemented, it is
not easy to create application-specific layout-panes. Client code
needs to know about :AROUND methods to compose-space, but they are
not mentioned in the spec.
restraining-pane is partially implemented.
Chapter 30 Gadgets
This chapter is implemented.
_______________________________________________
mcclim-announce mailing list
mcclim-announce(a)common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/mcclim-announce
New release CL-EMB 0.2.2
CL-EMB is a library to embed Common Lisp and special template
tags into normal text files. Can be used for dynamically
generated HTML pages.
You can download it from
http://common-lisp.net/project/cl-emb/
or install with ASDF-Install.
CL-USER> (asdf:operate 'asdf:load-op :asdf-install)
CL-USER> (asdf-install:install :cl-emb)
Changes:
- Minor bugfix. Declared ENV ignorable in the generated code.
Should prevent warnings/errors regarding the defined but
unused variable CL-EMB-INTERN::ENV
_______________________________________________
cl-emb-announce site list
cl-emb-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/cl-emb-announce
Changelog:
Version 0.3.12
2005-03-01
Added *HTTP-ERROR-HANDLER* (suggested and coded by Stefan Scholl)
Exported and documented *SESSION-MAX-TIME*
Download:
<http://weitz.de/files/tbnl.tar.gz>
Cheers,
Edi.
_______________________________________________
tbnl-announce site list
tbnl-announce(a)common-lisp.net
http://common-lisp.net/mailman/listinfo/tbnl-announce
UnCommon Web version 0.3.7
Released 2005-02-28
* Home page
http://common-lisp.net/project/ucw/
* Download
ftp://ftp.common-lisp.net/pub/project/ucw/ucw_0.3.7.tar.gz
* Changes (since 0.3.6)
- The defapplication macro has beet rewritten to allow revaluation of
the form without eliminating all the application's sessions,
entry-points, etc. This makes (asdf:oos 'asdf:load-op
:my-application) a valid mechanism for upgrading live apps even when
asdf:load-op causes the defapplication form to be reevaluated.
** Components
- Web presentations. See src/components/presentations.lisp) for
details.
- New TASK component.
- New completing-text-field component.
- *inspect-components* now defaults to T.
- REDIRECT is now exported from the UCW package.
--
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen
_______________________________________________
bese-announce mailing list
bese-announce(a)common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-announce
UnCommon Web version 0.3.6
Released 2005-02-08
* Home page
http://common-lisp.net/project/ucw/
* Download
ftp://ftp.common-lisp.net/pub/project/ucw/ucw_0.3.6.tar.gz
* Changes (since 0.3.4)
** Components
- Values passed to :component slot argument are now evaluated when the
value is a list. This eliminates the need for many of the trivial
initialize-instance :after methods.
- A young but stable and fully functioning HTML FORM component
collection has been added.
- The defcomponent macro has been reintroduced (though it is obviously
much simpler than it once was).
- New component dependency protocol.
- The *action-url-generator* special variable has been replaced by the
compute-url, update-url and component dependency protocol.
- New REDIRECT component for sending HTTP redirect headers.
- New TASK component.
- Fixed and improved error-component component.
** Component Rendering
- Component rendering error handling has been improved.
** Actions
- New :isolate actions.
** TAL/YACLML
- Fixed handling of <ucw:input :type "checkbox" tags.
- Added <ucw:button tag
** RERL
- The URLs associated with entry-points are now registered with the
backend individually (instead of registering an entire directory as
was done previously).
** Documentation
- Minor improvements to docs strings, manual and comments in example
code.
- Many typos have been corrected.
** Backends
- The port for the aserve backend can now be set when creating the
backend object, this avoids having to conditionalize the
(supposedly) backend independant startup-server form.
- The mod_lisp backend now properly supports generating multiple
headers in HTTP responses.
- New araneida backend.
** Other
- Added support for CLISP and Allegro Common Lisp.
- The CPS transformer can now allert the user to possible
order-of-evaluation bugs.
* Prerequisites
** Prerequisites included in the distribution
- arnesi
- yaclml
- cl-icu
- iterate
- mod_lisp
** Prerequisites you must download and install manually
- a recent CVS version of SLIME. You must have the new inspector for
the ucw-inspector to work.
- portableaserve 1.2.35 should you want the aserve backend.
- apache (1.x or 2.x) should you want to use the mod_lisp backend.
- araneida 0.9 should you want to use the araneida backend.
* Known Issues
- Application dumping does not currently work (and will probably be
removed in the near future).
* Supported Platforms
Using the mod_lisp backend UCW is known to work on OpenMCL (darwin),
CMUCL (linux-x86), SBCL (linux-x86). Using the aserve backend UCW is
known to work on SBCL (linux-x86) and Allegro (windows). Using the
araneida backend UCW is know to work on OpenMCL (darwin), CMUCL
(linux-x86), SBCL (linux-x86) and CLISP (windows).
--
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen
_______________________________________________
bese-announce mailing list
bese-announce(a)common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/bese-announce