The Pros and Cons of Using Ruby on Rails

What exactly is Ruby on Rails?

Ruby on Rails often referred to as RoR or Rails is commonly defined as an open source full-stack web application for use with Ruby, a general purpose programming language. As a full-stack framework, Rails empowers web developers to create applications and web pages, which query the database or display information obtained from the web server. The application also features a routing system, which operates independently from the web server. Some of the principles and development patters which are featured in Rails include MVC (Model-View-Controller), don’t repeat yourself, convention over configuration and active record pattern.

Details

Taking Web Audio Offline in iOS 6 Safari

Playing cached audio for offline use on iOS Safari has long been a challenge that has proved to be mission impossible. But with the advent of the (WebKit-only) Web Audio API, it is now finally achievable — although you still need to jump through a few hoops.

The bad news is that you still can’t cache an MP3 file using Application Cache and then simply load it using an

. Safari on iOS 6 will cache the MP3 but then refuse to play it and fail silently (how useful!).

But all is not lost…

Details

PHP Programming With Leadership

Until recently, I thought leadership was a gift that you either had or did not have. I still believe it is something you can learn and get better at, but I’m now realizing that leadership is something we all have to some capacity. In fact, to be a successful PHP programmer, you have to be a good leader.

When I think of leadership, I typically think of someone leading a group of people through a project or a task. But when you look at a good leader, their ability not only lies in how they manage others….but also how they manage their own time and productivity.

Details

Review: Pro HTML5 Accessibility by Joshue O Connor

Pro HTML5 Accessibility is an exhaustive book. Author Joshue O Connor is senior accessibility consultant with National Council for the Blind of Ireland’s Centre for Inclusive Technology and a stalwart of many W3C working groups.

Don’t be afraid of the title. The book doesn’t assume that you’re a professional accessibility expert – quite the opposite; the first 100 pages don’t really deal with HTML5 at all, but survey the landscape of disability, assitive technologies and W3C WAI-ARIA. The last chapters of the book usefully survey testing methodologies and tools which will be invaluable to the lone developer told “oh, and it must be accessible/ DDA-/508-compliant, too”.

Details

Memory for Random Generation Scripts

Python scripts can be used to create many things – shoes and ships and sealing wax, cabbages and kings – and to do many things – to make the sea boiling hot, and give pigs some wings. You will perhaps want to randomly generate math problems, if you are a teacher, tutor, or designer of a Math Blaster game; you will perhaps want to randomly generate story ideas, if you are bored – ideas like Cowboy mummies battle psychic tigers in a post-apocalyptic Martian wasteland, only to find love in the most unexpected places, being of the form character(s) 1 verb character(s) 2 in setting, twist/theme and randomly selecting from a list of each type; you will perhaps want to encrypt a lot of files but each with a unique key.

Details

PHP Content Management System of Choice

Guest author Carrie Donalds goes through her perspective on WordPress, while I give you my take on this subject. There are many PHP content management systems out there, and we go through a few different perspectives.

WordPress is a popular publishing platform that was primarily used for blogging purposes. Part of the widespread popularity of WordPress was due to the ease of use and quick setup. Users didn’t have to have a background in website programming in order to create and install an online platform to share their thoughts with the world.

Details

The Last Few Years: What a PHP Programmer Has Learned

Over the last few years I’ve become more familiar with multiple systems. I go over a few things that I’ve learned and the areas that I hope to improve upon over the next year.
Linux Terminal
Previously, I used the terminal through SSH when I needed to. But these times were limited to basic functionality. Recently I became more familiar in working with MySQL over the command line and creating PHP shell scripts. The advantages of running PHP through the shell are that you can use a program like Screen to run a PHP daemon script. This allows the PHP script to run infinitely, which is useful in some applications when you want to check for updates every xx seconds or minutes (in a sense, it is an upgrade in using cron jobs).

Details

Advanced PHP Form Validation

Last year I wrote an article in how to implement basic validation for a form with PHP. I decided to re-look at this and improve what I did in that article. This time we are going to make a more advanced PHP form that is more responsive and effective.

This PHP sample code has many advantages over the previous article. Not only that, but for the most part it is easier to implement with more complexed forms where you need more than basic validation.

Details