August 30, 2008
· Filed under music, web
I got an email yesterday from Amazon.com about the Verve’s new album Forth. They were offering me a free, DRM free download of their latest song “Love is Noise”. Having not heard anything out of the Verve for a while I was interested, and free is a pretty good price so I went to download.
The first thing I was unimpressed with was the Amazon.com downloader they tried to install on my machine. I understand that some people may not understand how to add MP3s to iTunes, but the “skip this step” link to me was not in an intuitive place. So, I accidentally downloaded it, went back to the page, then found the skip link.
But the real kicker with this is the below screenshot.

Useless.
Why would they send me an offer I can’t redeem, ESPECIALLY WHEN THEY KNOW THAT I DON’T LIVE IN THE US. They have my address, I have purchased from them before. Unimpressed.
August 22, 2008
· Filed under apple
Apple released this update a day or two ago. I installed it yesterday morning.
Unhappy customer.
Since then, I’ve had worse performance on transition to the SMS and contacts screen. I’ve also had issues when listening to music and receiving email/sms at the same time. Sometimes the music fades out and then stops, and I need to tap the round button at the bottom to make it go again, sometimes the music just halts (no fade), I head the new email sound, then music starts up again.
I’ve noticed nothing good about this update.
August 20, 2008
· Filed under business, internet, web
Opening hours. I want them on every physical stores, restaurants, and bars website. They do good store locators in the UK, I guess it’s because postcodes are everywhere, everyone knows them and they identify a very small area (a street, or part of a street). How come stores, when thinking about the data on their store locator, don’t include opening hours. Address and phone are always there, but when I’m going home on the train I want to know if my local stores will still be open when I get there.
Oh well, no spending at that particular store tonight.
August 15, 2008
· Filed under ruby, software, web
At the moment I’m working on a fairly complex extension for Radiant CMS. In creating the administrative pages I want to use a javascript library that is not distributed with the core radiant code. This post will describe how to implement your own extension that can use an external javascript library, without playing around with any of the core radiant files to inject the javascript into the administrative layout.
It’s actually really easy to do. If you haven’t created a Radiant extension before I’d recommend following this tutorial on the Radiant wiki.
Inside the Radiant GEM, the standard page layout resides at app/views/layouts/application.html.haml
The lines of code that insert the javascript tags are:
- @javascripts.uniq.each do |javascript|
= javascript_include_tag javascript
The @javascripts variable is populated from inside the app/controllers/application_controller.rb file. The culprit is below.
def include_javascript(script)
@javascripts << script
end
Pretty simple huh? So, all you need to do, is call this method from within your new controller, because all controllers inherit from the application_controller.rb file, so they have access to this method, and you can have different javascript included for each method if you so wish. In (assuming the example LinkRoll extension was built as linked above) vendor/extensions/link_roll/app/controllers/admin/links_controller.rb
def index
include_javascript("admin/mootools-1.2-core-yc.js")
@links = Link.find(:all)
end
That will insert a link to admin/mootools-1.2-core-yc.js inside the admin/links/index page. Righto, so now the only thing left to do is get the mootools-1.2-core-yc.js file into the actual public/javascripts/admin directory within the project. What you want to do is alter the vendor/extensions/link_roll/link_roll_extension.rb file so that within the activate method the file is copied over. I’d recommend making a public/javascripts/admin directory within your extension folder, and putting the file in there. Then, when activate is called on the link_roll_extension.rb file, the activate method will copy the file over to the projects public/javascripts/admin directory. You should also delete the file when the deactivate method is called in the link_roll_extension.rb file.
Questions and comments please!
August 5, 2008
· Filed under internet, web
This might be old news (released end of May, I’m soooo behind the times), but Google are supporting hosting for popular javascript libraries, and they are promoting people using their copies of the libraries rather than hosting their own. I only just found this out, and I think it’s pretty cool
http://code.google.com/apis/ajaxlibs/
The service supports either programmatic inclusion using the google jsapi library, or linking directly to their hosted copies.
Good things about this
- You save bandwidth costs, as your users download the libraries from google
- Your users get faster browsing ON OTHER DOMAINS, because the more people that use a single source, the more caching should happen
Bad things about this
- Google have more opportunity to don’t be evil - the biggest concern for me is their increased ability to understanding which users use your application, and propensity for understanding how they use it. A malicious individual within the company could put some nasty code in the js to screw with your site, or monitor and transmit back to googlebase what the user is up to. It’s very unlikely, but it could happen.