My first ever C program!

Well, the first one that wasn't an exercise from Kernighan and Ritchie, anyway. I have made an implementation of the Sieve of Erastothenes, which is a way of finding prime numbers. (Wikipedia has a good explanation, and an animation!)

I am rather proud of myself. The source code is here and the executable is here. If you run it at the command line, type in a number and then press enter, it will tell you all the prime numbers that are smaller than your number.

My next post will be more about hearts, unless I write any cool programs before then.

...

Things I've been up to in 2011

"Bring It, Don't Bin It" happened: we collected a load of clothes, toiletries, kitchenware and bedding (which, as you can see above, we promptly sat on) from departing Erasmus students and had a yard sale at the union. The profits and the rest of the stuff went to St. Vincent's, a Sheffield homeless charity. We got the electrical stuff PAT-tested, too! There was a second collection in June as the rest of the students left - unfortunately I couldn't attend, as I was at BarnCamp. I'm really pleased with how this project turned out.

I played in the National Concert Band Festival with the Sheffield University Wind Orchestra. We won a gold award, which sounds great until you realise that there was also a platinum award, and somehow managed to get to Glasgow and back in a single day. What madness.

BarnCamp - the annual techheads-go-camping-and-drink-too-much-cider extravaganza - was awesome (if very, very wet). My favourite workshop was on fractals, by Mike Harris. He was showing us the <canvas> element in HTML5, and how it can be used to make things like Mandelbrot sets. There are some great photos on flickr.

Incidentally, the person who coined the term "fractals", Benoit B Mandelbrot died last year. The B in his name stands for Benoit B Mandelbrot.

Lots of people I like have died recently. Janet McCleery, my awesome singing teacher - Dennis MacDonald, a fellow volunteer at the BitFixit Cafe (and a million other community projects) - Charlie Dickinson, a cracking lad I knew at school - and my lovely friend Brian Jackson, who I miss rather a lot. So that's not been great.

I found out today I have a confirmed place on my Mechanistic Biology Masters course for next year, so that's me sorted until next September. Last week I started my internship for the summer at Oxford Uni working on computer models of heart cells. I didn't know much at all about electrophysiology until last week so it's been a pretty steep learning curve! I'm really enjoying the challenge. Happy summer, everybody.

...

Free software talk

Tux mug
source

I did a talk this morning about free software with my friend, scary brainy sysadmin Alan. Alan covered the philosophy of the free software movement, and I talked about the practical ways people could start using free software every day.

I thought I'd make a post about some of the things I linked to and talked about.

  • We had a look at AlternativeTo, which is a website that lists different programs you might want to use (for example Photoshop) and lists some alternatives (for example, the GIMP). You can select "Open Source" from the drop down box to see only open source software, most of which is also free.
  • Portable Apps are really nifty programs. You can install them onto a USB pen drive and use them on any Windows computer. It's really handy to have, for example, Firefox with all of your bookmarks and add-ons ready to use when you're using a friend's computer or at work. Also if your job is particularly boring they have a massive list of games.
  • I have already mentioned Firefox and the GIMP, but some other programs to look at are LibreOffice, which has all the functionality of Microsoft Office; Thunderbird email client; Pidgin chat client (you can use it instead of MSN messenger, AIM, Yahoo! etc.); VLC media player which can handle pretty much any type of video or audio file; Audacity for editing sound files (I used it for my podcast).
  • If you want to run your whole computer on free, open source software, you can use some kind of GNU Linux instead of Windows or Mac OS X (you can also have both Linux and Windows/OS X on your computer at once without slowing it down). There are lots of different flavours, or "distributions" of Linux. You can use this Linux Distribution Chooser quiz to find out which one is the best for you, based on your computer knowledge and what you want to use it for.
  • For a Linux beginner I usually recommend Ubuntu, which is really user-friendly and has a really attractive desktop. It will run on most machines, but for super old computers, Debian might run faster, and is a bit more stable.
  • If you want to try out Ubuntu before installing it, you can make a LiveCD or LiveUSB and play around with it, without changing anything on your hard drive.
  • This isn't really related, but Alan's presentation was made using S5: A Simple Standards-Based Slide Show System, which is a really cool HTML-based way of doing slideshows. I'd never seen it before, but I think it's great!

Free software's pretty awesome. It doesn't cost you any money, and you can distribute it how you like. Anyone can see the source code, and anyone can submit revisions to it, which means that when there's a problem with the program it's often fixed really quickly by the community. There's always a huge number of helpful users on the internet who make tutorials and answer questions.

It's not just on the internet you can get help either - in Sheffield there's Access Space near to the showroom cinema. They're a great bunch of techie arty people who will help you out with using and installing free software. There's also the BitFixit Cafe in the Burngreave area of Sheffield, which I volunteer at. We're open on Saturdays between 12 and 3 at 268 Verdon Street, and we're happy to install things, fix problems, and eat biscuits.

...