Raspberry Pi

Click pictures to enlarge

This is not a post about the kind of raspberry pie you make from your garden, but rather a computer with almost the same name.

I come from an information technology background, with particular emphasis on open source software.  One of the important things IT and plant breeding/seed saving have in common, is you don’t need to go to school for a degree in order to learn them.  The other important thing is many of the same battles are being fought over intellectual property rights and freedom to use and share.

I often think if the two worlds of seed saving and free software could unite forces, we’d be much stronger fighting our battles together.  Right to food and right to information technology are not as unrelated as you might think.

In that spirit, I thought I’d write a bit about this new computer, the Raspberry Pi.  In March orders were hitting 700 per second.  Now demand has come down, production is up and they are in stock again.  There’s no longer a restriction on the number one person can buy.

It currently costs about US$35, and it comes without a case like the above picture.  It’s very small, as you can see comparing it to the pen.  In my case, I splurged almost more than I care to admit for the plastic case you see below.  I actually spent more money on the case than the original computer itself…

The case is really nice.  I don’t remember the name of the company, but it was an amazon.co.uk reseller, and the expensive part was having it shipped to me here in Amsterdam.  There are loads of cases available on ebay, but most of those also involve shipping costs from the UK.

If you want to save money on the case, you can always print out you own, with the help of this pdf file.

Not only does it come without a case, but there’s no power supply, operating system, keyboard, mouse, monitor, memory or hard disk.

Okay, so why can such a small computer that comes without a case be so interesting?

Well if you go to a store a buy a similar configuration, you can easily spend ten times as much.  But beyond the cost of the computer itself, many of these missing items I listed above can be found at little or no cost, often from old discarded computer parts.  Remember the one laptop per child/$100 laptop programs?  Many comparisons can be made with this.  The important thing about the Raspberry Pi is it’s available now, and anyone anywhere in the world can buy one.

It’s always been a bit of an issue that while computers tend to get cheaper over time, we get pushed up to more expensive models because manufacturers discontinue the less profitable ones.  The Raspberry Pi is an attempt to address this problem, and make a cheap computer available.

The speed of this computer is not spectacular, but it has a very high performance graphics processor.  I can imagine future versions will probably be faster, and in any case if you’re used to the Linux operating system, the performance for normal Internet surfing, emailing, downloading and so on is very acceptable.

The computer is being manufactured by a UK charity.  I don’t think all the individual parts are necessarily locally sourced, but it’s assembled in the UK.

The computer is powered by a standard micro-USB connector, the identical connector used on many mobile phones and other small electronics now.  It is technically possible to power it off a USB port from another computer, but the designers say you shouldn’t do this.  It happily runs off a powered USB hub, that can also increase the number of attached USB devices.  Needless to say, if you have a smart phone, you probably already own a suitable power supply for this computer.  The designers say it should run quite happily off 4 AA batteries fitted with a voltage regulator, and for example it should be very easy to power it off a solar panel.  If you’re like me and like to leave your computer on sometimes, if you are sensible about what you connect to it and run, it shouldn’t take much more power than a mobile phone.

It takes a standard USB keyboard and mouse.  It has a composite video and audio out, and so it’s possible to connect it to many old TVs or monitors.  In Europe we have a scart connection on older TVs, and a cheap adaptor is available to connect it to a scart.  It also has an HDMI (digital video) connector for modern computer monitors and TVs.  It does not have a VGA connector!  The designers said this would have been a technical hurdle, and added considerably to the expense.  There are HDMI to VGA converters, but these are quite pricey.  There’s no reason you can’t use a touch screen (then you don’t need a keyboard or mouse, and the screen can potentially be powered off the Raspberry Pi itself via the USB), but those are still a little pricey too.

What kept me from using the Raspberry Pi the day it arrived, was the HDMI monitor connection.  Many computers a few years old like mine, have a digital video port (DVI or DV, I think), with a cable that connects to a HDMI monitor.  The Raspberry Pi has an HDMI port, and so you need an HDMI to HDMI cable.  This is pretty common and inexpensive, but many people might not have it lying around their house.

It comes with a jack for a standard wired Internet connection, but should support wireless network via USB (at the expense of some power drain).

The standard OS is Linux, but I understand Android has been ported to it, or at least is being worked on.  Since the architecture is open, it’s quite likely more software will be ported to it.  The computer is booted off a standard SD card, and depending on the OS and size of the card, there may be extra space on the card for storage.  Otherwise, you can use a USB key or other external disk.

Have I convinced you yet?

If there are other Raspberry Pi users out there, I’d love to hear from you!

Hacked by WordPress Pharma Hack

For the second time in the last year or so, this blog has been infected with malware.  Both times the so-called Pharma Hack, that pollutes Google search results with pharmaceutical spam.  In my case it also gave me a blank page when logging in, effectively locking me out from my blog.  I’m still recovering from it, and some things may not work as they should.  If you see something not working properly, please let me know.

I’m really disgusted there are people out there so childish as to do things like that.

It can be a very big undertaking to remove something like that from your blog.  The basic procedure is to disable the plugins by renaming the wp-content/plugins directory, and replace your theme with a fresh install of the latest standard WordPress theme, currently twentyeleven.  Then download a fresh install of WordPress next to your own, and ‘diff’ the files with the following command:  diff -r <your install directory> <fresh install directory>

Every file only present in your installation that you don’t know what it does should be deleted.  Files that are different between the installations need to be checked and verified by hand.  You can verify you’ve removed the malware here.  In my case it was a very difficult to detect include of a file named $MAILDIR/tmp/img.pdf in my wp-config.php file.  Look for other non-obvious includes in this file. You might want to copy your database, host, etc into a wp-config.php file from a fresh install, and use that to insure there are no unwanted includes.

You’ll probably find multiple infected files.

If you can’t find the malware in your file system, it’s probably in your database.  In this case it’s probably in the wp-options table, and can most easily be found with mysqldump and dumping the contents of your database into a text file.  Then you can use ‘grep’ to search in this file for suspicious texts, for example names of pharmaceuticals, base64 encoded strings and so on.  In wp-options, make sure the values of site and home are set to your blog address.

When you’re free of malware, you need to replace your plugins with fresh installs from a trusted source.  Then clear your browser cookies and cache, and change all your passwords.  Make sure your UNIX/ftp password is different from all other passwords!

Both times I was infected it was done differently, but both involved the wp-config.php file.  The first time the code was inserted directly into the file, and the second via an include.  Also as I read about other people’s experiences, this varies.  You just have to slog your way through it all, and when you uncover how it was done, feel free to leave a comment below that might help the next person.

Finally, I would like to extend a big thanks to Erik N., at my hosting provider Dreamhost, who really went the extra mile to help me track this down.  Without his help, I’d still be working on this.  I don’t particularly think hosting providers are responsible for what happens inside applications, and I’m really happy Dreamhost was willing to help out.  By the way, the link above is an affiliate link, and as long as you don’t request other discounts, promotions or refer someone else in the signup process, this blog will get a little money if you sign up for their services via the link.  I suggest just the standard package, costing about $9/mo.  This is enough for most people, and you’ll always have the option to upgrade later.

Back Again

My apologies for those of you trying to reach this blog over the last few days.  The computer hosting this blog had a hardware (disk) failure, and for the last week my hosting provider has been busy with disaster recovery.  While it’s a little annoying the blog went offline for an entire week, the positive side of things is that someone else had to do the disaster recovery, not me, and finally Bifurcated Carrots is back!

Unless they have more problems, this blog should be back for good.

Guest Posts

I get lots of emails from people offering to do guest posts, so I thought I would say something about that to everyone.

Most of the emails I get are obviously spam.  The basic idea is that someone writes an article for me of dubious quality in exchange for some links to irrelevant commercial sites or badges for my sidebar,  that have nothing to do with gardening.  I suspect what’s going on is there are people willing to pay enough to get these links onto my site, that others are trying to make a living writing guest posts to go along with these links.

Increasingly these guest post offers are looking less like spam.  They sometimes refer to websites that I know are associated with guest post spammers, but are making better offers for higher quality posts, often citing some of their other work.  Even though I suspect they intend to include some irrelevant commercial links into their guest post, at least they aren’t coming right out and saying it.  These people sometimes say things to suggest they have done some research, and either read my blog or found a good online summary of it somewhere.

I’m even starting to get some compelling stories that come with guest post requests.  The latest from someone who says they are a graduate student and wants to publish an article related to their studies here, because they feel the theme of my blog goes well with what they do, and they hope a post will make them better known.  In emails like this, it can be very difficult to find any sign of spam or intentions of spam.

I think all readers of this blog must know by now that I would like to help people in general, and in particular like to use my blog to help others.  I have also published some guest posts in the past.

I’m afraid I just can’t accept guests posts, with the possible exception being from other established bloggers that have some existing relationship with this blog.

I toyed with the idea of accepting some posts, but not from spammers and not with commercial links.  The problem is I don’t really have any way of knowing for sure who is a spammer or not, or what links are commercial.  Even answering these requests, involves possibly sending an email to a spammer, and can result in further unwanted emails.  Also, mostly, this blog is a personal expression of who I am and and what I want to write about.  Negotiating guest posts takes time, and doesn’t always add a lot to my content.

If you’re looking for a place to make a guest post, I suggest starting your own blog or finding a place on the Internet that accepts ad hoc posts.  If it’s relevant to this blog, send me an email and ask me to link to it.  I honor most requests like that.  Then what you write is your own to do with whatever you want, no one has a say in the content, and it’s not a part of mine or anyone else’s blog.

Are there any other bloggers out there with guest post experiences?