I created a “vendor branch” of the MediaWiki stable releases for Mercurial users. (Git is, after all, pretty terrible by comparison.) Commit history goes from 1.21.2 back to 1.19.7.
You’ll do something like this to update:
$ cd your/personal/mediawiki/branch
$ hg pull -u
$ hg pull https://bitbucket.org/rianjs/mediawiki-vendor
$ hg merge tip
$ hg commit
$ hg push
Then deploy however you deploy. Check Special:Version to see that it’s updated.
This is a distillation of the instructions at The Hitchhiker’s Guide to Python, mostly for my own future benefit when I inevitably forget how to do it:
- Install Python, if you haven’t already
- Install distribute by running the
easy_install to install PIP. PIP is actively maintained, and supports package removal (unlike easy_install)
This took a grand total of about 60 seconds to complete.
If you’ve wanted to filter by attachment size, or find unlabeled emails… you’re now in luck.Â Gmail has added some search operators recently.
My favorite is the ability to filter by attachment size:
size:2m searches for attachments of 2MB
larger:3m searches for attachments of 3MB and larger
smaller:5m searches for attachments smaller than 5MB
You can combine these searches with the other Gmail search operators:
Need to find unlabeled messages?
has:nouserlabels will show you stuff you haven’t labeled.
It’s useful to be able to send email from a Linux webserver. I do it to get MediaWiki page change notifications and other automated status updates. I wanted something that supported two-factor authentication, and this does.
This guide is for you, if:
- You don’t want to run a mail server
- You want to send email, and you don’t care about receiving it
- You want people to receive the emails that your server sends
I’ve used this method with Linode, and it works perfectly.
~ sudo apt-get install mailutils
When the setup wizard launches, choose the unconfigured option. You don’t need to do any special configuration to get this to work.
Install and configure sstmp
~ sudo apt-get install ssmtp
~ sudo vim /etc/ssmtp/ssmtp.conf
- Hit “i” to enter Insert mode.
FromLineOverride=YES by deleting the
- Add the following to the file:
- Save and close the file:
- Hit Escape
- Hit Enter
If you’re using two-factor authentication
Create a new application-specific password to use in the config file above. (If you’re using Gmail, you can manage those passwords here.)
Test it out
~ echo "This is a test" | mail -s "Test" <user>@<email>.com
Using a webmail service other than Gmail
You can follow the same pattern that I used above. You’ll need to:
- Subsitute the SMTP address and port for your email service (e.g. Yahoo!) where it says
smtp.gmail.com:587. (587 is the port number.)
- Set up an application-specific password if your webmail provider allows it, and paste that into the password line, the way I did with Gmail. (Yahoo! appears to have something similar.)
I read an article last night by Michael Nielsen entitled “Is scientific publishing about to be disrupted?” It was probably one of the best articles I’ve read in at least a month. This morning I woke up earlier than expected, and I decided to check out the author’s background, and suddenly it made sense that I was impressed with the content. Fortunately (unfortunately?) he linked to a bunch of other stuff he’s written, and I found myself popping open new browser tabs as though I were browsing Wikipedia.
This led to a great deal of copying and pasting. 34, two-column, 10pt, 4×0.5″ margin pages later, I have a whole pile of reading material. (I read offline because my attention span whilst on the computer isn’t what it needs to be for longer, denser pieces.) I’ve worked my way through a great deal of it, and I find myself wishing I had stuck with Computer Science a while longer.
In any event, here’s the list. Enjoy.
The last two aren’t written by Nielsen, but they’re worth reading, especially if you’re interested in open science.
Darwin’s 200th birthday is this week, and Harvard is having a Darwin Day on Thursday which I will (alas!) be unable to make it to. (Just like I was unable to make it to the last Harry Potter book launch in the Square. I have rotten luck like that.)
The NYTimes has some great coverage of Darwin this week in their science section, both as a man and as a scientist. His story is one that is tragically ironic. A Christian who struggled with the ramifications of his discoveries, yet a man who is today reviled by many of those who share his core faith.
John Whitfield has been blogging the Origins as a run up to Darwin Day. An intriguing idea… I wonder how many biologists haven’t read it? I haven’t read it, but I’m not a biologist, and it is on my list. First off is Dawkins’ The Ancestor’s Tale which is currently sitting on my bookshelf. (Speaking of which, now that the Kindle 2 is out, I could probably keep most of my collection in digital format with me much like I have virtually all of my music on my iPod…)
My favorite article of the bunch, so far. Darwinism Must Die So That Evolution May Live:
Science has marched on. But evolution can seem uniquely stuck on its founder. We don’t call astronomy Copernicism, nor gravity Newtonism. “Darwinism” implies an ideology adhering to one man’s dictates, like Marxism. And “isms” (capitalism, Catholicism, racism) are not science. “Darwinism” implies that biological scientists “believe in” Darwin’s “theory.” It’s as if, since 1860, scientists have just ditto-headed Darwin rather than challenging and testing his ideas, or adding vast new knowledge.
Using phrases like “Darwinian selection” or “Darwinian evolution” implies there must be another kind of evolution at work, a process that can be described with another adjective. For instance, “Newtonian physics” distinguishes the mechanical physics Newton explored from subatomic quantum physics. So “Darwinian evolution” raises a question: What’s the other evolution?
Almost everything we understand about evolution came after Darwin, not from him. He knew nothing of heredity or genetics, both crucial to evolution. Evolution wasn’t even Darwin’s idea.
Darwin’s grandfather Erasmus believed life evolved from a single ancestor. “Shall we conjecture that one and the same kind of living filaments is and has been the cause of all organic life?” he wrote in “Zoonomia” in 1794. He just couldn’t figure out how.
Gregor Mendel, an Austrian monk, discovered that in pea plants inheritance of individual traits followed patterns. Superiors burned his papers posthumously in 1884. Not until Mendel’s rediscovered “genetics” met Darwin’s natural selection in the “modern synthesis” of the 1920s did science take a giant step toward understanding evolutionary mechanics. Rosalind Franklin, James Watson and Francis Crick bestowed the next leap: DNA, the structure and mechanism of variation and inheritance.
There were some comments on the MeDic pages indicating that MeDic was incompatible with newer versions of Microsoft Office. Specifically Office 2007 for Windows and Office 2008 for Mac due to it not being Unicode.
I have uploaded a new version with the text encoding as Unicode, so anyone that has been unable to use the dictionary should now be able to.
MeDic main page
On the heels of my four-part series this week, Amazon has launched their new “Green” section:
I have my doubts about the real usefulness of some of the top items, but the CFL bulbs are the real deal. While I would never pay $14 for one of them, we did get about three dozen of them on sale at Building 19 for something like 17 cents each about two years ago. We noticed a significant drop in our electrical bill right away on the order of ~$10-15 a month. Bonus has been that we’ve had to replace one(?) bulb during this time, so we still have quite a few of them stashed away. One downside is that they don’t seem to last very long in New England weather extremes, so we use a regular incandescent for our one of our outside lights.
[Completely unrelated, but what’s up with the crappy graphics Amazon uses for their navigation? Honestly, Amazon, just use text. It loads faster, and looks nicer.]