Posted by Chris
Thu, 05 Oct 2006 09:56:00 GMT
Thanks for the useful comments on the DSL.
Inspired by what I’ve achieved so far, I’ve pushed ahead and added currency support and time stuff to it. You don’t have to use the currency stuff if you don’t want to… all previous operations still work.
Currency support is pretty dynamic – check out the currency_spec.rb for a full spec, but the long and short of it is that you can do this:
1.pound.is_worth 1.88.dollars
Or, if you fancy it:
1.pound | 1.88.dollars
You can even make up your own currencies if it takes your fancy….
1.sofa.is_worth 20.pounds
20.sofas.in.pounds # prints '400'
This then extends to invoices in the following way:
i = new_invoice do
1.pound | 1.5.euros
work_at 20.pounds / hour do
spent 2.hours.on('Some work')
spent 2.days.on('More work') # Note: assumes a day is 8 hours long
end
end
print i.total.in.pounds # prints '360.00'
print i.total.in.euros # prints '540.00'
Neat, huh?
Get the code here. Let me know what you think.
Posted in ruby
Posted by Chris
Tue, 03 Oct 2006 10:37:00 GMT
5th Oct 06: Updated: now with time and currency support
I’ve been playing around with DSLs recently, inspired by the dynamism you get for free with Ruby, and thought I’d try writing one.
This is my first effort: svn.edendevelopment.co.uk/public/invoice_dsl
Check out the README.txt for more details. Basically it allows you to write an invoice in fairly natural language syntax…
Read more...
Posted in ruby
Posted by Chris
Wed, 27 Sep 2006 20:18:00 GMT
We’ve changed the homepage around – we didn’t like all that text, and the examples kinda got annoying.
Oh and we changed the ads back from the square boxes. They sucked.
The up coming big new feature is still in progress. We’ve been superbusy on contract work in the last few weeks, but hopefully it won’t be too long before a preview version will be up and running for a select group of testers…
pininthemap.com
Posted in pin in the map
Posted by Chris
Wed, 13 Sep 2006 19:45:00 GMT
You might have noticed that Pin editing and previewing has been tricky for a couple of days. Those Eggheads at Google updated their API and changed the way the info boxes worked, which cause a few issues. Updating us to the bleeding edge API fixed it.
If you hadn’t noticed, then just relax…
FLASH
...and remember, you never read this blog post. Nothing was ever wrong. Pin in the Map has always worked just fine… move along…
Thanks to Tom Warkentin for the report.
pininthemap.com
Posted in pin in the map
Posted by Chris
Sat, 26 Aug 2006 23:41:00 GMT
Pin in the Map finally got much easier to use for UK residents… as we’ve now added UK postcode searches.
It only searches based on the first part of your postcode, so you don’t really need to type in more than that (any further characters are ignored).
Enjoy!
pininthemap.com
Posted by Chris
Sat, 26 Aug 2006 22:08:00 GMT
We’ve screwed around with the ad placement on some of the information pages today. Sorry if this is irritating, but we think the ads are marginally less irritating now we’ve only got one ad on the page. Two ads just looked messy.
The aforementioned sneak preview is a little closer to fruition. We’re working hard on it now the holiday season is behind us… but progress has been slow going up until now.
We’re planning on releasing a sneak preview to premium pin owners in the near future. More after the jump.
Partly explaining the delay in work over August is the fact that I just bought a new shiny white Macbook. Oh the joy. After decades of Windows programming, and years of frustrated attempts to use Linux as a primary desktop OS, it’s just wonderful to find a unix-based OS that just works.
Oh, and it looks fantastic, too. Even hard-bitten late-night coders are weak-willed when faced such wonders. I find myself hitting F12 repeatedly, just to watch my dashboard transition; I occasionally even Cmd-Esc, to switch to Front Row and back, just for the kick. Never underestimate the power of the swishy.
pininthemap.com
Posted in company, pin in the map
Posted by Chris
Wed, 19 Jul 2006 09:07:00 GMT
...something we’re working on… :)

pininthemap.com
Posted in pin in the map
Posted by Chris
Fri, 14 Jul 2006 07:35:00 GMT
'...make sure people can get their data out if they decide to leave. We make sure customers can easily export all messages
and comments in xml format at any time. It’s their data and they should be able to do with it what they want.'
—Getting Real (2006), 37 Signals
Well said. To that end, we now allow all map pins to be downloaded in
XML format. Simply append ”/xml” to your link, or click ‘export’ at the
bottom right of the map on your pin screen. Hope you find this useful.
pininthemap.com
Posted in pin in the map
Posted by Chris
Thu, 13 Jul 2006 08:56:00 GMT
I’ve just got involved with a venture on quite an exciting new webapp project. I’ll probably talk more about it in the weeks to come.
Part of this venture involves the inevitable organisation of the team. We’re using Basecamp at the moment, and we’re liking it. Another recommendation to add to the thousands already out there for this product :)
One thing I really like is the ability to attach Campfire to your basecamp project. One thing I really really like is the ability to post subversion commit messages to campfire via Marshmallow.
Have you noticed? A new paradigm for web development is rapidly coming to the fore, distinct from traditional software development methods. About time too.
Posted in ruby on rails, web application development
Posted by Chris
Tue, 11 Jul 2006 12:34:00 GMT
We’ve taken another look at our Google Maps “compulsory ads” policy for Pin in the Map.
For those of you not in the know, Google reserves the right to add some form of compulsory advertising to their map area, although they haven’t yet.
If this did become the case, we would consider purchasing a “no-adverts” Google maps license, ensuring that premium pins remain ad-free. However this is currently only available in the US or Canada, so we cannot guarantee that we can remove compulsory adverts from Premium Pins.
With this uncertainty, we thought we’d offer a bit of peace of mind: if you purchase a Premium Pin, compulsory ads did start appearing and you wish to cancel for this reason, give us a shout and we will refund your fee on a pro-rata basis, based on the date of your cancellation. We figured that that’s only fair.
Let us know if you have any comments.
pininthemap.com
Posted in pin in the map