User login

note

LibrePlanet coming up in Boston— some sessions we're looking at

LibrePlanet is on March 22-23 at MIT and the schedule was recently released. A whole lot of awesome sessions, as well as keynotes, lightning talks, and social gathering opportunities.

Here are some i especially want to attend— i swear this isn't the whole schedule!

Saturday

10:55 - 11:40 | Session block 1

Building an open digital archive in India: knowledge, access and other issues

A couple VCL changes when upgrading to Varnish 3

The error messages Varnish provides are very informative.

tail -f /var/log/varnish/current

Open Letter to Amazon: Don't make your e-mails look like phishing attempts

Dear Amazon,

You have my name. Use my name. You put a bar on top of Amazon.com when i'm logged in (and you always keep me logged in), so why not provide instructions to the trusted amazon.com domain rather than the slightly dodgy looking affiliate-program subdomain. And finally, just get my information from your NSA contacts (and contracts). Thank you,

benjamin

P.S. What i'm trying to say is don't send an e-mail that looks exactly like this (this is completely unredacted):

Hello,

Ubuntu 13.10 includes an upgrade to Apache 2.4 that has major gotchas

That is, this update will break your sites.

The main breaking changes:

Python dictionary objects do not allow accessing of values with dot notation

Documenting this because it's the kind of frustrating mistake to solve that could drive someone away from Python entirely, yet it'll be a mistake i'll probably never make again and would be able to solve in seconds if i do.

A dictionary, or 'dict', must be accessed with bracket notation. Unlike JavaScript, dot notation is not an option for dicts.

This works:

Facebook Use Predicts Declines in Subjective Well-Being in Young Adults

"We text-messaged people five times per day for two-weeks to examine how Facebook use influences the two components of subjective well-being: how people feel moment-to-moment and how satisfied they are with their lives. Our results indicate that Facebook use predicts negative shifts on both of these variables over time. The more people used Facebook at one time point, the worse they felt the next time we text-messaged them; the more they used Facebook over two-weeks, the more their life satisfaction levels declined over time."

Naming convention for follows / is followed by relationship?

Yes, i searched for what other people chose for a naming convention for a table (model) of follower and followee relationships.

The only directly relevant discussion was in this Ruby on Rails tutorial, which settled on "Relationship". What we've been using, Followership, is better than that, i think.

Hide the empty cart in Drupal Commerce

At least for a site based on Commerce Kickstart, simply edit the view, which you can get to from the gear on the cart itself when logged in:

/admin/structure/views/view/shopping_cart/edit/block

Under Advanced, no results behavior, remove the text result and summary for this block display only.

Save and you're done!

Assign people a random avatar image when they create a user account

If you want to assign not just a default avatar, but a random default avatar, that is possible with a setting in the Avatar Selection module.

(I almost made a module to allow a random avatar image to be pulled from a set uploaded by the administrator, in fact I was on my way to the Contributed Module Ideas group, but fortunately i kept searching and found this great module by Stella Power that has this random avatar feature as a bonus.)

Setting up a new GNU/Linux computer (Debian/Ubuntu flavor) for Drupal work, Agaric style

Create an SSH key

ssh-keygen

Send a copy of the public key to an agaric with access to the test server to add it there. Read more about setting up public keys and agent forwarding.

Get Drush

Follow composer instructions on https://github.com/drush-ops/drush (preferred over apt-get or PEAR.)

Syndicate content