
I have been quietly working away on a new site for a little while and it’s now ready for public access. Splitstate.com is a gaming news site that delivers the most popular stories from across the internet right now on a single page. The hottest stories are always at the top and only highly reported items make it onto the page.
I hope you check it out and bookmark it if you think it’s useful.
Just discovered this today but the URI concatenation in Ruby is fantastic. Fantastic to the extent that you can take a host URL add it to a relative URL and produce an absolute URL for that resource. For example:
u=URI.parse("http://www.chart-track.co.uk/?i=756&s=1111")
a=u+"/assets/images/m/modernwarfare2hangson_797_2.jpg"
a.to_s
>> "http://www.chart-track.co.uk/assets/images/m/modernwarfare2hangson_797_2.jpg"
[via Eric Hodel]
For those of us who have yet to take the plunge into Ruby 1.9 it can be quite annoying to convert the encoding of a string to utf-8. I’m using couchdb so it’s quite important when bringing data in that it’s utf-8. Luckily there is a handy standard library called Iconv to help, so if you can’t guarantee the encoding of your data I recommend trying this little snippet to strip out the badness:
ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
valid_string = ic.iconv(untrusted_string + ' ')[0..-2]
[via Stack Overflow]
I’m using WinXP virtual machines all the time to test my web apps in different versions of IE so it’s good to see MS including an XP VM with Windows 7. Click on video 3 to see it in action.
NoMethodError: undefined method `count' for #<Array:0x9c0e3e8>
Getting this error like this when you deploy your Ruby on Rails app to a production server?
You probably need to upgrade the server to Ruby 1.8.7 like me
Doh! Luckily moonshine has it covered for this one, I just had to switch from using ree to ree187 in my moonshine.yml file.
This worked for me after a bit of faffing:
yum install yum-fastestmirror
yum clean all
yum install preupgrade
rm -rf /var/cache/yum/preupgrade*
Run the final line to blow away the upgrade cache if you run into any problems and need to try again.
UPDATE: Oh and you might need to run gparted to resize your /boot partition. It needs to be at least 300mb!!
The offer UFC made to Fedor today was ridiculous:
- 6 fight contract worth $30 million
- an immediate title shot
- a cut of the Lesnar/Fedor PPV going directly to M-1
- Fedor was free to wear as many items with the M-1 logo as he wished
- allowing Fedor to compete in combat Sambo
If co-promotion is the sticking point then they are just even more stupid than we all realised last time this went down. The only thing M-1 don’t get are their logos on the event and overseas footage rights. UFC are giving them a cut of the PPV and logos on Fedor. It’s so close to co-promotion it may aswell be called that and it’s so much more than anyone has offered them they are nuts to reject it. Hell he’s even in the EA game now!
A bunch of extremely minor technicalities and semantics are preventing this deal from happening. Crazy Russians indeed.
I took the plunge and treated myself to a brand spanking new iPhone 3GS this weekend. After much dilly dallying I decided to upgrade from the iPhone 3G because cashinmyfone were offering good rates for trade ins that could cover the cost of buying out my contract. Getting the handset proved to be a bit of mission.
After finally tracking one down at the Apple store in Westfields I had to spend 75 minutes in there going through everything. O2 were not very helpful and were trying to stop the buyout from happening in the Apple store. Of course Apple have been doing contract buyouts for a while, it just depends if the call centre worker they call to verify it knows that.
But I have it and I’m happy. It’s fast as hell, it has a compass and the camera is significantly better (there are hundreds of reviews online if you need to know). Oh and now I’m inline with the yearly release cycle the upgrade hit won’t be to bad next year.
Recent Comments