Christopher Spring RSS

The cut and dry musings and visitations of Christopher Spring

Archive

RailsBridge Badge
Apr
8th
Thu
permalink

Engine Yard have started a new project, Rails Dispatch with info about the upcoming Rails 3 release. They’ve also done an updated version of the famous “Blog in 15 minutes” screencast - see above.

Comments (View)
Feb
5th
Fri
permalink

All my backups are the same size?

I recently noticed that the database backups of an app. that i maintain were the same size for a couple of days.

Now, all the backups are done from a MySQL slave database, so it didn’t take too long for me to work out that my slave had died; running “show slave status\G” yielded something like this:

    ....
    Slave_IO_Running: Yes
    Slave_SQL_Running: No
    ....
    Seconds_Behind_Master: NULL

The trick here ended up being the following short little routine (after ascertaining that the error was not that serious - check syslog etc).

While in the mysql prompt, issue the following

    STOP SLAVE;
    SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
    START SLAVE;
    SHOW SLAVE STATUS\G

And if everything went according to plan, running “show slave status\G” should now yield:

    ....
    Slave_IO_Running: Yes
    Slave_SQL_Running: Yes
    ....
    Seconds_Behind_Master: [a few seconds]
Comments (View)
Nov
19th
Thu
permalink

TorqueBox

[](null)

Looks like a great Ruby app server package. I will definitely be giving it a swirl!

Comments (View)
Jun
30th
Tue
permalink
Sometimes you just have to see the humour in life.

Sometimes you just have to see the humour in life.

Comments (View)
Jun
17th
Wed
permalink
I’m a huge HAML fan, but not so much a SASS one. LESS is a nice alternative for creating leaner and more maintainable CSS - worth checking out.

I’m a huge HAML fan, but not so much a SASS one. LESS is a nice alternative for creating leaner and more maintainable CSS - worth checking out.

Comments (View)
Jun
15th
Mon
permalink
Light-weight jQuery UI library by the flowplayer guys - I’m very impressed with it!

Light-weight jQuery UI library by the flowplayer guys - I’m very impressed with it!

Comments (View)
Jun
8th
Mon
permalink

Cheaper to fly to NY and buy a Macbook Pro?!?!?

I was a little surprised recently when i priced buying a new 17” Macbook Pro from local South African Mac suppliers. I discovered that it was cheaper to buy a return ticket to NY and buy the machine there, than it currently is to buy it here in South Africa.

Here are the numbers for flying to New York:

  • R8,909.00 -> Return flight from Johannesburg to JFK in New York
  • R23,791.50 -> Apple.com price for 17” Macbook Pro: $2,799.00 x R8.50/$
  • R32,700.50 -> Total

You can have a look at a screenshot of the flight details i “booked” with SAA here.

The numbers for a local purchase:

At the time of writing this post the Rand Dollar exchange rate as reported by XE.com was R8.16 per US Dollar, but you’ll notice that i modified that to R8.50 above for the calculations.

So, am i the only who feels that maybe, just maybe, the South African population is being royally ripped off?

Comments (View)
Jun
1st
Mon
permalink

Merb web service with Shoes GUI

Every couple of months I play around with shoes to try and solve some basic prototyping needs that arise at work.

This time round i stumbled onto a nice O’Reilly tutorial that shows you how to setup a basic merb web service and interact with it using shoes. Well worth checking out.

Comments (View)
May
24th
Sun
permalink

BuddyPress 404 errors on Blogs, Members, Groups

I ran into a bit of an issue trying to get BuddyPress setup on my Mac (Tiger, if you must know) - clicking on Blog, Members or Groups would yield a 404.

To fix the problem you need to add the following (in addition to what is explained in the various readme files) directive to your httpd.conf:

<Directory "/path/to/apache/root">
    Options FollowSymLinks
    AllowOverride FileInfo Options
    Allow from all
</Directory>

If you don’t have that in, it looks as if apache ignores the htaccess file in your Wordpress MU root.

Check out this forum thread for more: http://mu.wordpress.org/forums/topic/1187

Comments (View)
May
19th
Tue
permalink
Comments (View)