Before i started using TextMate i heard that some people switch to Macs just so that they can use TextMate! I didn’t believe a word of it … but now i am in that exact position! Ruby on Rails is so much easier to program in TextMate, particularly writing and running RSpec tests. Just to be able to press Cmd+Shift+Down to switch to the spec (and create it if necessary) and using Ctrl+r to run the specs, or Ctrl+Shift+R to run a singe spec. Last night i was writing some test specs and it was unbelievably painful without TextMate!
But i have long been a fan of opensource, free software. I don’t want to spend hundreds of pounds on expensive hardware and expensive operating system just so that i can use TextMate! Somebody seriously needs to make a Linux version of TextMate. People would pay for it! I have been using gedit as best i can but it’s the snippets and macros that make TextMate really good.
One of my colleagues uses and recommends jEdit. I’m going to give it a try. Apparently you can run specs quite easily within it, so i reckon it’s got to be worth a go.
Oh yeah, and i can borrow my boss’s old MacBook to use at RailsConf so i’ll look like one of the cool kids! ;)
Because scaffolding isn’t the answer to everything, i made a personal generator that churns out some CRUD actions with the RSpec tests that are just the way i like them.
Posted here mainly for reference by future-me but anyone else is welcome to use them too.
Generate Rails controller code
I find it’s particularly amusing if you enter ‘cake’ as the model name. it should look up all cakes in the database. It should not break if no cakes are found. It should attempt to create a new cake.
PS. I decided to do this tonight in anticipation of creating four models with controllers at work tomorrow! Yay for reducing an hour or more of tedious work into a few minutes! :)
Married life suits me well. In some ways everything feels pretty much exactly the same. We’ve lived together for 4 years, after all. But in my heart i just *know* something is different, and i like it a lot. We’re not just friends who live together anymore; there is something more to it. Something that everyone can know and recognise and celebrate!
But at the moment my beloved it at a geography conference, and i’m at home for another boring night with meaningless Twittering and blog posting! I do apologise!
I had a very good day at work. I got a few tricky things done in the morning, and lots of little easy things done in the afternoon. So it was a productive day, and i was complimented on a few things i’ve done lately, which always makes me feel very good indeed!
Tonight i have become a ‘beta’ reader for a Harry Potter fanfic. I’ve never done this before, but i loved the start of the story and it’s nice to get a sneak preview of the next chapters! My job is particularly to translate the dialogue into British English where necessary! This is fun and easy for me to do, because Americanisms in Harry Potter fanfics always stand out for me like numbers on a colour-blind test.
The author send me a Microsoft Word document with ‘Track Changes’ enabled. I was delighted to find that OpenOffice knows all about tracking changes. What’s more, when i sent it back, my author was able to open it in MS Word again and see what i had changed. I love it when technology works! I was half expecting Word to throw all the toys out of the pram because i’d dared to look at it in a rival word processing application!
By the way, what colours do you see in the bubbles above? I see a 57, which is normal. Some people see a 35 instead. I used to love these tests whenever i went to the opticians when i was little! I thought they were so clever! I always got them right so there was no point in testing, but i thought it was such a fun game! :)
PS here is a very sweet video montage from my favourite film, “Beautiful Thing”. I can see Ste saying “I’m gonna stink of mint!” The Body Shop still make Peppermint Foot Lotion; i got some as a free sample the other day! :)
Okay, i cheated because i did it earlier on today and only got about 30! There are about 90 in total. It’s quite surprising the ones you forget, when under pressure, where in every day usage you’d just use it when you needed it. And then there are some that you’ve never learnt and probably never want to use.
I am very pleased to learn that David Heinemeier Hansson will definitely be speaking at RailsConf Europe. Really looking forward to it!
In other news, how does this make any sense?
A picture with 86 views, no favourites and 3 comments is more popular than a picture with 401 views, 1 favourite and 8 comments …? The only explanation i can think of is because the number 1 picture has a note that somebody added, in which case, Flickr notes are massively influential in your popularity ratings. Can anyone think of any other explanation?
I don’t have access to the stats because i’m not quite interested enough in Flickr to want to pay for it.
Yes, this has been a boring, geeky and unimportant post. You may now resume your wildly fascinating life! ;)
Please don’t be turned off by the title. This is not the argument that we have come to expect from the Christian church. This is the most sensible thing i have ever read regarding homosexuality and Christianity.
Next time i hear anybody saying that being gay is an abomination, or against God’s will, or forbidden in the Bible, i am going to send them here and pray that their heart is softened.
It’s a very long letter, and i didn’t read all of it in full detail, but i was very impressed by the compassionate spirit of the message.
Thank you to Kevin Sonney for bringing this to my attention.
This afternoon i think i will make one of these:
It is an illusion with the effect that you think the head is moving around to look at you.
You can get the template with instructions (pdf), print it out and make your own! How cool! :D
Playing around with the gimp and the photos of the moon.
Last night i went to visit a friend with a telescope and we had a great time looking at the moon, stars and Jupiter. Through the telescope i also saw three of Jupiter’s moons, looking like tiny pinpricks of light.
We had clouds to contend with, but our moon just looked so beautiful, even with a few clouds covering it.
You see it through a telescope and it just hangs in front of your eyes. You totally appreciate that it is a gigantic sphere floating through space around us. It is truly breathtaking to see in 3D. And this was just through a telescope designed for bird watching! I think i will get a proper astronomy telescope and see what we can discover!
The camera is a total sham when it comes to photographing stars and planets.
Wherever you are tonight, look at the full moon, and have a look for Jupiter too. It is beautiful. I wish i had some good equipment for viewing and photographing such spectacular celestial sights. This is about the best i could do.
Tomorrow i’ll try photographing earlier in the evening, when it might come out better.
I’m not the only person who has been photographing Jupiter tonight …! :)