December 2nd

Why Git is better

Filed under git, open source, web 2.x | No Comments

See this site: Why Git is better than 'X'. It's well worth a good read. It explains all the best things about Git, and compares other software configuration management systems to see how they measure up.

But that's not the reason i'm posting. It's more exciting than that! See those Expand all | Collapse all links? … i did that! :) The site source code is available on GitHub. I forked it, made the change, submitted a pull request. 14 minutes later it was deployed live.

Other people have been translating the site into different languages. Git and GitHub are wonderful things!

In a similar way, we had open source dinner tonight. I took Saturday's leftover stew, forked it, added matzo dumplings, submitted a pull request, which was accepted! It was lovely dinner! :D

Update: and now i see even the US government is going open source! Everything on change.gov is now freely available for the world to copy, change and redistribute, provided they attribute the source. Nice one, Obama! :) In fact, i'm going to make use of that creative commons licence right now:

President-elect Obama has championed the creation of a more open, transparent, and participatory government. To that end, Change.gov adopted a new copyright policy this weekend. In an effort to create a vibrant and open public conversation about the Obama-Biden Transition Project, all website content now falls under the Creative Commons Attribution 3.0 License.

- Towards a 21st century government on change.gov/newsroom

December 1st

L(slightly)OL!

Filed under amusing | 1 Comment

Seen on a mailing list:

Question:
How can I disable this warning:
"warning: no newline at end of file"

Answer:
Put a newline at the end of the file.

November 29th

What a nice afternoon!

Filed under friends, greening, photos, winchester | 5 Comments

I managed to drag myself away from my computers this afternoon and have a lovely time outside.

First i went to visit this space of land that the WinACC local food group are hoping to renovate and turn into a city farm. I got these two lovely ducks on camera … they thought i had food for them. No such luck, heh!

Mallard duck Mallard drake

I'll go back again soon and take some more photos of the area of land. If we go ahead with the transformation, it'll be really good to keep a photo blog! But today i didn't stay long because i was off to visit some friends and see the Christmas market. It was the first weekend, so it was predictably extremely busy, but again such a lovely atmosphere. The bells of the cathedral were ringing, there was carol singing, the crafts on offer were so beautiful and creative. We had mince pies and mulled wine! :)

This is without a doubt my favourite picture of the day:

Christmas market hut

Is that not just beautiful? Here are some other pictures of gorgeous lovely Winchester today …

Christmas market Skating in Cathedral Close Busy christmas market Christmas market and the cathedral Christmas shopping in Winchester Christmas tree

There's more on Flickr.

November 29th

CUCUMBER IS TEH AWSUM!

Filed under amusing, geeky, lolcats | 2 Comments

Remember my LOLCAT Cucumber post?

Guess who came along and found it? Aslak Hellesøy who actually wrote Cucumber! As a result, Cucumber now speaks LOLCAT!

I never thought it would make it into the official repository! I only did it for the lolz! :)

By the way, i have now started actually testing MyChores with Cucumber. Here is my first feature test, which is surprisingly similar to the LOLCAT one, only in English, heh!

November 28th

Gitk on a netbook

Filed under git, netbook | No Comments

Further to yesterday's post, "Rails on a netbook", i found everything went well except Gitk. The fonts were too big to be useful, and the settings dialog box was too big for me to change it. But look now:

Gitk now useable on a netbook!

(Yes, that is the MyChores repository, now cloned on to my netbook! Yey!)

I plugged into an external monitor in order to access the settings, but for anyone who does not have that option, i've since found out you can edit ~/.gitk configuration file. My font settings are thus:

set mainfont {helvetica 7}
set textfont {courier 6}
set uifont {helvetica 7 bold}

There are also many other settings that you could tweak if you wanted to.

November 28th

Tip of the day

Filed under geeky, linux, mac, useful | No Comments

When using a package manager it is helpful to know how to search for available packages. You can search for part of the package name, so that mysql- returns both mysql-server and mysql-client

On Debian-based systems:

sudo apt-cache search mysql-

On Fedora-based systems:

sudo yum list "*mysql-*"

On Mac with MacPorts:

port search mysql-

November 28th

Rails on a netbook?

Filed under computer, geeky, git, mychores, netbook, ruby on rails | 7 Comments

I am here today to ask a question and then answer it. The question is: Can you run Ruby on Rails on a netbook? Specifically, an Acer Aspire One. My motivation is … since buying my netbook, i have completely fallen in love with it, and much prefer it to the desktop computer. I want to do as much as possible on the netbook. I don't think i'd spend a whole day coding on it, but just for quick little things it could be wonderful!

Now that MyChores is open source i really like this idea of code anywhere. Wherever i have my netbook and an internet connection, i can code! If there's an emergency bug needs fixing on MyChores, i could make the fix and push it. Or if i'm feeling lazy one Saturday morning there can surely be nothing better than a cup of coffee and coding in bed! ;)

So without further ado, let's see if you can put Rails on a netbook …

(more…)

November 27th

OceanLab - Miracle

Filed under greening, music | No Comments

This week i went to a talk encouraging artists to help take action on climate change. If you don't think artists can make a difference, i challenge you to watch this video.

Are you hoping for a miracle, as the ice caps melt away?
No use hoping for a miracle
There's a price we’ll have to pay

It's too easy to turn a blind eye to the light
It's too easy to bow your head and pray
But there are some times when you should try to find your voice
This is one voice that you must find today.

A lovely song, and such beautiful imagery in the video. This has really made an impression on me today.

November 27th

Ask and you will receive

Filed under mychores, promotions | No Comments

For those who may not have seen it on the MyChores journal, i started a MyChores pledge campaign last night. I kind of stumbled into it by accident, via github, but i thought i may as well publicise it a little bit.

Click here to lend your support to: mychores and make a donation at www.pledgie.com !

Already we've had one confirmed pledge of $10 and another $10 waiting to be cleared! I am making people site supporters on MyChores, so if you pledge and you have an account, please let me know your login ID so i can give you the additional features.

These are exciting times for MyChores. The code has gone open source and there are some people expressing a serious interest in helping to improve the codebase. We are going to make the site more reliable, faster, more intuitive. One of my colleagues is hopefully coming for a weekend code-a-thon sometime soon! So i think this is a very worthy cause to support! :)

November 21st

Looking forward to Rails 2.3

Filed under geeky, ruby on rails | 2 Comments

There are two things that i am especially looking forward to in Rails 2.3.

I use named_scope like all the time now since i figured out what they are and how useful they can be. I often find myself doing something like this:

named_scope :ordered, :order => 'surname ASC, first_name ASC'

Just so that i can append .ordered to any other named_scope and get my objects out in a sensible order. Well in Rails 2.3 we're going to have a default_scope

default_scope :order => 'surname ASC, first_name ASC'

Marvellous! :D

The other thing i'm looking forward to is the new super-slick render for partials. No more

render :partial => 'articles/article', :locals => { :article => @article }
render :partial => 'articles/article', :collection => @articles

Those now become the splendidly simple

render @article
render @articles

Thanks to Ryan's Scraps for explaining to me how that's going to work!