Latest Posts

Archives [+]

Categories [+]

Authors [+]

Entries filed under 'dev.day.com'

    Posted by Michael Marth JAN 23, 2008

    Posted in announcements, dev.day.com and link of the day Add comment

    Every now and then I post a "Link of the day", which is often a pointer to some other blog or article I find interesting. However, today I had too many links I wanted to post (four of them). So I thought, heck, I might as well set up a Digg clone for link sharing. Here it is (it is called Daigg).

    Anyone can sign up, post links and vote on links. The upcoming links (aka new and getting interest) are also listed on the right sidebar of this blog.

    In case you wonder about the name: it is a combination of Day and Digg, but also a word in Swiss German (Basel edition) and means "dough".

    Posted by Michael Marth JAN 11, 2008

    Posted in announcements and dev.day.com Comment 1

    We are happy to announce the latest addition to dev.day.com: PlanetDay. PlanetDay is an aggregation of public weblogs written by employees of Day Software in their spare time. So you might encounter posts about software development as well as cartoons or randon ramblings (so far, it's mostly the former).

    I'd like to thank Lars Trieloff for helping me in setting this up.

    Posted by Michael Marth JAN 09, 2008

    Posted in dev.day.com, microsling, sling and usling Add comment

    Lately, I have been a bit quiet about Sling (apologies to the readers that wait for part 2 of "How this blog is built"). The reason is that there has been quite some discussions (and changes) regarding

    One architectural bit that has been ironed out is the separation of Sling and microsling. It has been decided that they get merged again.

    Sling developer Betrand Delacretaz has nicely summed up this merge in the corresponding ticket description (on Sling's bug tracker). Unlike most tickets it is definitely worth a read.

    Especially useful is that Bertrand clearly defines the design goals of microsling (2.0):

    µsling 2.0 is a preconfigured instance of Sling, meant to allow web developers to test drive Sling by building scripted web and REST applications backed by a JCR repository.

    The µsling 2.0 distribution only requires a Java 5 VM to run, no installation is needed. Fifteen minutes should be enough to start µsling and understand the basic concepts, based on self-guiding examples. µsling should ideally be delivered as a single runnable jar file.

    Java programming is not required to build web and REST applications with µsling 2.0: both server-side and client-side javascript code and presentation templates can be used to process HTTP requests. Other scripting and templating languages (JSP and BSF-supported ones) can be plugged in easily.

    Posted by Michael Marth DEC 20, 2007

    Posted in dev.day.com Comments 2

    I have implemented a servlet filter that checks incoming requests against the Akismet service. Their REST API is conveniently wrapped by this little Java library: http://sourceforge.net/projects/akismet-java/

    It is really easy to implement: One needs an API key from Akismet and simply checks an incoming comment with :

    Akismet akismet = new Akismet(MY_KEY, "http://dev.day.com");

    boolean isSpam = akismet.commentCheck(
         my_ip,
         userAgent,
         referer,
         getPermaLink(httpRequest),
         "comment",
         commenterName,
         "",
         comment,
         commenterUrl,
         request.getParameterMap());

    Comments are now enabled again. If you cannot post although you do not try to sell car insurances please drop me a line (my email address is mmarth, the domain is day dot com).

    Update

    It turns out that there are spam comments that are not caught by Akismet (most of them are, though). As an additional measure I now check that the commenter executed Javascript (which makes it more likely that the commenter is human). Unfortunately, humans that turned off Javascript in their browser cannot comment anymore.

    Posted by Michael Marth DEC 18, 2007

    Posted in dev.day.com Add comment

    Comments on this blog have been disabled due to a spam attack. I will implement a spam filter (or find another method of stopping it) and bring comments back up.

    To make this is excercise a bit more constructive I would like to mention that disabling the comments was done by creating an empty file POST.esp at /sling/scripts/blogPost (see the request processing overview)