Zach Inglis is a 22 year old, Scottish, graphic designer and programmer with over 9 years experience in his industry. His wide skill arsenal include design and development giving him a very well-rounded skill set.

Archive

[Host Review] Rails Machine

My final web host?

As with most people who work in the web industry I have an itching sensation to build tons of web applications from the many good ideas I have. My programming weapons of choice, Ruby on Rails and Merb are both a nightmare to deploy. Books even had to be written. Many people will simply not touch the beautiful language of Ruby for this reason alone.

Jamis built Capistrano in promise of easier deployent. The scope of the project was huge and due to it’s complexity and it being open-source, it was very hard to get working. The idea was right and in all theory it should have worked fine. But many people had troubles in one way or another. I was one of those people.

Originally I had a nice Slicehost server but proving to learn how to properly and securely set up a server got the better of me and I decided that it was best to get more of a provided solution. Of course, I wanted to go with Engine Yard but starting at $250 was a bit rich for my blood and I wasn’t sure how worth it, it was.

Not only does Capistrano work out of the box on RailsMachine, but they also have provided a gem to configure the deploy.rb configuration file and for extra tasks. It is incredibly easy to set up an application, or to make changes to one with Capistrano and RailsMachine.

RailsMachine have shown to be amazing hosts. The server setup was a little bit late outside of the given 24 hour setup period. I sent in an email at 24 hours past and at 25 hours past my server was set up and I was billed. The support is efficient, speedy and polite. I have asked quite a bit outside the official scope of support and they helped me along the way.

The plans that they offer are more recommendations, due to the fact that you can customise them very specifically (with price add-ons for better hardware/features) and I have heard that upgrading hardware takes less than an hour. Because of this, if your app is choking but you know that it doesn’t need a huge hardware update; you can slightly modify your server(s) without having to pay an arm and a leg for a system that you obviously do not need.

It would be nice to see a web panel but they hint that one is in the works (on their blog), so I will be watching out for that.

3 Comments

will_paginate sans ActiveRecord object

In one of my projects, I mix together two ActiveRecord objects for listing. There is two ways that I could have done this. A seperate model that enfolds my models or merging them with a concat. I did it this way as it only happened once so no need to create yet-another file.

After reading this post, I got a better idea of what to do. That code was OK but I refactored it into better, cleaner and more understandable code.


def list
foo = Foo.find :all
bar = Bar.find :all
foo_bar = foo.concat bar # merge the two arrays
foo_bar = foo_bar.sort_by { |foos_and_bars| foos_and_bars.created_at } # reorganize by created_at date
end

I then created a private method for pagination. I’ve stuck this in my local controller but the application-wide controller may be a better idea if you use it in different controllers.

Anyway, here be the code:

def paginate_array(array, per_page_param=25, page_number_param=0)
per_page_number = per_page_param.to_i == 0 ? 25 : per_page_param.to_i
page_number = page_number_param.nil? 0 : page_number_param.to_i
page_number = per_page_number * page_number

array_count = 0
array.collect { array_count += 1 } # Array does not have the count method so this works nicely.

WillPaginate::Collection.new(page_number, per_page_number, array_count).concat_array
end

6 Comments

New Portfolio

Zach Inglis: Portfolio - Version 2. Version 2 is very little as I always relied on company portfolio’s until about a year ago when I started up the portfolio sub-domain.

I’m having one issue with absolutely positioned anchors, but apart from that my portfolio is looking spiffy.

Head on over to see it.

1 Comment

My Absenteeism, My Discomfort

Writing this is putting my respect on the line, it may even affect my business. I hope instead that this will prompt people to speak out about what they believe in.

There has been a reason that I have not blogged for a while. One part laziness, but about 4 parts being fed up with the whole web industry scene.

When I first joined, I saw the industry as a place where an artist could have fun, discover their talents and enjoy the close knit social community. 10 years later, I now feel completely different. Although I have felt this many times before, never have I been so close to giving up all the social aspects and keeping my head down. The web industry has taken a lot out of me. I have literally served my adolescence years behind the web and I feel that as this was a big character development period, I have a bigger link to the web compared to some, as it defined who I became.

Now what is annoying me the most is the social ladder of the web industry. Not necessarily the social ranking ladder. There are some people out there who have been working on the web for a while and who do a lot for the greater good of the internet, rather than for themselves. On the opposite side, you have a slew of people who work for the greater good of themselves, for their bank and for the internet fame. You are allowed to do both, but the amount of fake people on the internet. What is worse than that, is people look upto them and thus causing an undying cycle. These people will do anything for the internet-fame, which in reality, is meaningless. It is close to the social ladder of a High School.

Hell, there was a while where I would of done anything for the fame too, it would be wrong of me not to admit that, but my eyes have opened. I have seen people who have spent 4 years training to be a designer, but at the first chance of a big company talking with them, jump over to coding. I’ve seen people with no coding experience, write books on coding, and become internet famous because they do. The industry does not mean much when a well selling book is written by someone in the field, who a few month’s earlier had no knowledge of the topic. I was helping such a person out, a year before they wrote a book.

I have had a few offers to write books, ranging various topics, however just because you have the opportunity doesn’t mean you should and I realised that. I felt the topics that was offered were already talked about too much and I didn’t want to take anyone else’s money thinking they were getting something new or taking an already published author’s money from them when they had the brains to get there first. People should write competing books, it causes the quality to go up but Amazon has a catalog of over 26,000 books through the search ‘CSS’. Granted a lot of these books are not related to the subject, but definitely a large amount.

One subject that always gets raised when talking about this industry is how we need to evolve and what we should do to do that. But when you get the basic facts, how far have we come in the last 2 years? Honestly, we have seen a thousands pro-CSS workgroups formed, thousands of conferences with large amounts of panels talking about CSS or how we should embrace it, thousands posts saying saying the same as the conferences, thousands of books and of course, a couple of hundred ego’s have been stroked. In reality, we haven’t come that far at all, we are just repeating the same things we did years ago. If anything, it’s time to take action and stop focusing on ourselves. If you believe in the web, prove it. Don’t write a book, don’t tell us we should embrace web standards and uninstall Internet Explorer. We know we should, we say the same things too. Reach out to your local businesses, write a newspaper article, tell someone who wouldn’t hear about this at a conference.

I have had a hand in organising a conference for representatives of companies, offering them a free conference on WHY their site should follow our suggested standards, we got people speaking there and we made a difference. You could also help students at schools and colleges learn what they should be doing and why. That is what we need in the web.

We are literally peeing in our own pool. I know many people who do not want to attend web conferences because of the whole social ladder scene. These people are sometimes the ones that we want to change too. It is not doing the industry any good whatsoever.

I will not be quitting as I first thought I would when I wrote this post, I think I could still make a difference if I carried on. I think the web industry as a whole, needs to shape up and start focusing on the real goals rather than personal goals. Our industry is one of the few that focus on the evolution in the unique way we do. Participating in boosting your name is fine, but there are more than a few people in this industry now that are doing it in an egocentric manner, and that number of people is growing.

5 Comments

Rails Tidbits: error_messages_for as a flash.

After not wanting to clutter my interface with the the default error_messages_for style I decided that I would display it as a flash message. I warn you though, it is not pretty.


errors = @folder.errors.to_a.collect { |key,value| key = key.capitalize + " " + value } # We have to do this because without it, there is no space and the key field is all lowercase.
flash[:error] = errors.to_sentence

0 Comments

Bricked MacBookPro due to Leopard incompatibilities?

Little tip for those who installed Leopard recently and find that there keyboards are unresponsive. Uninstall SideTrack. Now this is almost obvious except for the fact the Installer doesn’t work on Leopard and tells you to buzz off.

I’ve been stuck with a pretty, but bricked, MacBookPro for 4 days now until I check the FAQ and realise there is a manual process. Check the Read Me that comes with the package on how to fix it, delete said files, restart.

Annoyance #1
Space’s default button config is the same as moving alone word-by-word rather than by character.

0 Comments

I don’t want an iPhone, yet.

Last week, on the opening of the iPhone, everyone swarmed in to get an iPhone. I stayed at home, waiting calmly.

I would love an iPhone if it was given to me, i’d have no qualms with accepting a free one, but is it really as good as everyone says? Apple products bring the animalistic sides of people, making them step over people to get their hands on the shiny devices, not knowing the real deal about it. This is very much America’s culture to me, taking life by the horns and just doing what you want with less thought than needed.

Sure, the iPhone is pretty, sure it wows you, sure you’re a very proud owner… but let me tell you, i’ll be more happy with my 2nd generation than you will be with your 1st. It’ll be prettier, more functional and probably have some features you’ll envy. You’ll have to wait for 2 years before you can buy the next one in the line. Granted, I will too, but the 2nd generation will learn from the first mistakes.

Mike Davidson wrote an excellent post on the pros and cons of the iPhone but those con’s are careless and should have been included. Some are going to be, but I’m guessing some aren’t till gen2, and Apple are BOUND to miss something important; such as what happened with the Nano’s.

It was mentioned to me that 3G drains battery faster than EDGE and thus coupled with movie playing and probably constant Geek usage, the battery would be dead quickly. In generation 2, they’ll probably have fixed some of the battery issues with the movie playing and such, and maybe researched how to use 3G better, giving me the possibility of having 3G.

I’m not just talking about the hardware, i’m talking about the service too. I heard nothing but bad things about AT&T and Cingular before the iPhone was announced.

The iPhone is the first in a series of great devices from Apple, Why get the ‘foot in the water’ one. Good things come to those who wait.

[edit] Read the comments. I think Colin provides a very convincing argument. And as most of my friends have said; Gen2 will probably be in 2 years anyway.

9 Comments

Camino 1.5 Released

Usually, I wouldn’t post about releases here, unless I’ve had a part in them. Which I now have.

Web browsers never stick with me, One month you’ll catch me using Safari, the next Firefox and the next Camino in a circle of trying to outweigh the better with the best.

I was about to goto sleep last night when a friend asked if anyone could give Camino a few hours of their time. I contacted them and within minutes I was helping them.

I have a lot of respect for Camino and so the chance to work with them was amazing. I was very tired, but they have been one of my favourite people to work with, even if for a short time.

See Samuel’s blog post about it here and get your copy of Camino here.

5 Comments

Downage.

You may notice a little downtime, this is due to me moving hosts. Currently having slight issues with installing apache2 but when that is sorted you’ll notice around 3 hours of downtime. This’ll be in my Feedburner by then so you’ll get it from there.

0 Comments

error_messages_for Extended

I recently posted about my error_messages_for plugin. Since then I have turned it into a trouble ticket and also the extra’s added by Ryan McGeary.

Check out the new updates, on the svn.

0 Comments