Just a quick follow up on Reading, coding and commenting.

I used the twigfeeds plugin to bring in a feed of my links on Reading.am to the sidebar here. Chris Aldrich pointed out that when I use Reading.am as a way to read something again, it helpfully inserts because of Jeremy Cherfas at the end of the RSS entry. And if I can filter one piece of fluff out with a regex, I can do it for two. Here, then, is the code snippet for sidebar.html.twig with the final filter. Obviously, you would change it to suit your own needs.

<div class="sidebar-content">

{% for name, feed in twig_feeds if name == 'Reading' %}
    {% for item in feed.items %}
            <a href="{{ item.url }}">{{ item.title | regex_replace(['/Jeremy Cherfas is reading /', '/ because of Jeremy Cherfas/'],['','']) }}</a>
              <time>{{ item.date.date|nicetime(false) }}</time>

    {% endfor %}
{% endfor %}


Maybe someone will find this useful.

More this way ...

Reading, coding and commenting

More little tweaks

Notes, as much for my own memory as for anyone following along, on a couple of recent tweaks


I read a lot, on and offline, and forget almost as much, so I have various places where I try to save bookmarks, notes and what have you. Then I noticed that someone whose footsteps I have been ...

More this way ...

Scicomm; what is it good for?

Absolutely nuthin

A few days ago, searching for something completely different, I came across a post by John Hawks -- The futility of science communication conferences -- which I duly bookmarked. The real point of that, of course, was to remind myself to go and read the foundation post: Communication, Literacy, Policy: Thoughts on SciComm in a Democracy, by Rick Borchelt.1 It's a beaut, and not just because it pushes all my confirmation bias buttons.

More this way ...

Nice to be noticed

Webmentions FTW

It makes me happy that another pilgrim on the road to IndieWeb has found some of my efforts helpful. Ron Chester has taken up blogging and microblogging and is now wondering whether he ought to get into webmentions. In that connection, he had some nice things to say about my write-ups on that subject, although in the end he decided that he doesn't want to take that particular giant baby step.

More this way ...

Last week, I published a paper in PNAS addressing a topic that has captured the attention of media and policymakers around the world for many years – the rising suicide rate in India. ... I focus on the role of climate in this tragic phenomenon. I find that temperatures during India’s main gro...

More this way ...