Posts from March 2013

Most Recent from March 2013

Get the creation time of a member on Plone

There could be many reasons why you want to check the creation time of a site member on Plone. Use this snippet (change the members[0] as necessary):

from Products.CMFCore.utils ...
*

CSS :nth-child selector with a grid

The :nth-child CSS selector (or pseudo-class) has a number of uses. We’ve looked at some basic CSS :nth-child selector techniques before. Now, we’re going to look at some examples with grids, using some of the same selector patterns and some different ones.

We...

*

Undo changes and undelete content on Plone

One magical and fantastic feature of Plone is the ability to undo (or roll back) changes. This means if you (or someone else) deletes something important, you can effectively undelete it.

Go to your ZMI management page at mysite/manage and click on the Undo tab at the top of the page. There you can see a...

*

Set content expires and cache-control metadata for AWS S3 objects with Ruby

You can set the HTTP Expires and Cache-control headers for S3 bucket objects with the Ruby SDK for AWS. This will help site performance by enabling browsers to cache content which is not updated frequently such as stylesheets, javascript files and images.

This assumes you already have the AWS Ruby SDK installed.

...
*

Dart on FLOSS weekly (TWIT)

Dart on FLOSS weekly episode 245 on the TWIT network. Randal Schwartz and Aaron Newcomb interview Seth Ladd from the Dart language project. It’s worth a listen.

*