![]() |
... Previous page
Thursday, 30. May 2002
hns,
May 30, 2002 at 3:04:01 PM CEST
escaping quotes in search I've checked in a patch to weblog/search.hac that escapes single quotes in search strings. This may or may not have been a security problem (if it was, I wasn't able to exloit it). Anyway, antville.org is running the updated code now. This is a temporary patch since I'm currently rewriting the search function to be more flexible, including the capability to search the whole site/server instead of just one weblog.
link
(no comments)
Monday, 27. May 2002
gHack,
May 27, 2002 at 6:06:11 PM CEST
Upcoming O'Reilly book about weblogs O'Reilly is preparing a book on "essential blogging", which just has entered public reviewing. It seems that Antville has been neglected so far.
kris,
May 27, 2002 at 5:20:31 PM CEST
recovering messed-up skins? i have some problems on my server because some users have messed up their main skins with either recursive calls or by deleting the macro for the response. first question is how can i fix this easily? second question is about avoiding future problems. can you use the default template for the skin manager ? i think the skin manager should be available even if the user makes mistage with the main skin. Saturday, 25. May 2002
hns,
May 25, 2002 at 5:41:08 PM CEST
Timezone support roundup Finishing timezone support for Antville was pretty painless - all I had to do was make sure that date parsing and formatting are always done through parseTimestamp() and formatTimestamp() functions, which take in account the local weblog's localisation and timezone, if a weblog object is present in the request path. All dates are still stored in local server time. Both parseTimestamp() and formatTimestamp() are in global now, although weblog.formatTimestamp() is still there for backward compatibility - I didn't want to go through all the code - but all it does now is to forward the call to the global formatTimestamp() function. The fact that the weblog object for date localization is always taken from the request path (i.e. path.weblog) causes one significant change: If an object from one weblog is used from within a page of another weblog or the application root area, the language and timezone from the embedding environment will be used for rendering dates, not those of the object's home weblog. In my opinion this makes sense because with timezone support, dates would not only be rendered in a strange language, but could also be a few hours off, i.e. you'd see dates in different timezones mixed together in one page. However, if this functionality is needed, it would be possible to format dates according to their home weblog by passing either the weblog or the locale and timezone to the formatTimestamp() function. Finally, I implemented caching of java.text.SimpleDateFormat objects. These things are pretty expensive to create since the format has to be parsed each time. On the other hand, reuse is difficult because the class is not thread safe and would produce broken output if used by multiple threads at the same time. My solution is to cache them in the res.data object, using the format string such as "short", "yyyyMMdd" etc as key. front page rendering is now about 10% faster, and the gain could be even larger for pages with many dates. Right now, the changes are still in the hns_timezone branch. I'll test some more and eventually merge changes to the main branch if that's ok. Friday, 24. May 2002
hns,
May 24, 2002 at 8:35:34 PM CEST
just to avoid duplicate work I'd continue working with timezone support now if that's ok and go on streamlining date time rendering. I've checked and this does not interfere with Tobi's work, but I don't know what Robert is up to so I thought I'd ask before I start.
tobi,
May 24, 2002 at 2:34:19 PM CEST
notepad just to deposit a thought i had right now: wouldn't it be cool if the usage of images (and in the future also stories...?) in other weblogs via a macro like <% image name="tobi/barbes" %> would be logged / displayed in the original weblog? this way one could keep track of where else one's material is used (and you get some more related links, too).
link
(no comments)
Wednesday, 22. May 2002
tobi,
May 22, 2002 at 3:56:40 PM CEST
rewriting image_macro() just for the records: i made a huge step forward in rewriting robert's cool image_macro (here's the code in a cvs branch of antville, third function from top). the features of thumbnail_macro() and imageurl_macro() are now included by handing over param.as = "thumbnail" or param.as = "url". well, to be honest, param.as = "popup" does the job of the thumbnail macro, while param.as = "thumbnail" does almost the same just without popping up a new window using javascript... (good?) moreover, i started to modify some of the global renderSomething() functions: the problem was that they are hardly re-usable due to many res.writes in the code. so i renamed these functions to renderSomethingAsString() and replaced the direct output by building a string and returning it in the end. then, i added new functions with the old name as wrappers to directly write out the result of the --AsString() functions again. while it sounds complicated here, i think it becomes quite clear when you think of renderSkin and renderSkinAsString... is that a way to go? would you support this code structure? ... Next page
|
The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8965 Days
last updated: 1/4/11, 10:22 AM ![]() Youre not logged in ... Login
![]() ... home
... topics ... galleries ... Home
... Tags
... Galleries
... about antville ... download ... macros.antville.org ... help.antville.org ... translate antville! ... antville home
![]()
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||