General

Why I Won't Be Buying An iPhone 6

Apples 2014 product line up announcements were some of the worse kept secrets in the companies history. The leaks were more or less accurate to what we saw revealed. Two new iPhone models dubbed the iPhone 6 and iPhone 6 Plus (notice the lack of a C variant) and of course the worse kept secret of them all: the iWatch. I actually switched to a Samsung Galaxy S4 a year or so ago after using an iPhone since the beginning because of lack of control, NFC and the small size of the phone itself. I actually kind of hoped the success of the Galaxy and HTC One would mean Apple finally starts competing and innovating again.

Loading AngularJS And Modules (Like ngResource) From Google's CDN

As most developers already know, Google offer a nice list of CDN assets that include jQuery and jQuery UI as well as AngularJS. Although it isn’t publicly listed on Google’s CDN libraries list located here, separate modules like ngRoute and ngResource are also hosted and can be included. Why Google don’t publicly state this fact beats me. Please ensure you change the version number to reflect the current version of AngularJS, at the time of writing this it was version 1.2.23.

Sublime Text Editor Shortcuts Every Developer Should Know Or Else!

Chances are if you’re a web developer, front-ender, PHP programmer, web expert or whatever your title is, you use Sublime Text Editor and there is also a chance you’re using a single digit percentage of its true power. This isn’t an overly complex or comprehensive list of shortcuts, just shortcuts I believe every developer should know. Knowing how to select a line or delete an entire line just using your keyboard is invaluable in itself.

How To Create A MySQL Database, User and Grant Privileges Via The Command Line/Terminal

The common mistake that newbies make when using MySQL is using the same username and password for all of their connected applications. Generally, I’ve seen the default “root” user used as the user in an application like WordPress with permissions to modify all databases. This is bad. Before we proceed, we want to login as the root MySQL user (the super admin). We achieve this by typing: mysql -u root -p – you will be asked for the root user password. Once you are in, this is where the magic happens. We are now logged in as the MySQL super-boss.

How To Seed A Database In Laravel 4

I have been writing a lot about Laravel lately and recently I was asked about database table seeding. Chances are you already use the awesome migrations feature, but probably don’t use database seeding. I have seen people using migrations to seed a table, but it’s messy and not exactly ideal. Using the seeding functionality in Laravel, you’ll discover how easy it actually is. When should I use seeding? I personally use seeding in Laravel quite extensively during the development phase of a web application. Being able to add in mock user accounts, pages and other data for testing purposes is a lot easier than manually doing it every time.

Front-end Component Driven Development

As the web continues to evolve and front-end development continues to become even more complicated, the need to adapt and implement processes for workflow grows immensley. Photoshop is dead We are well and truly living in the golden age of front-end web development. Photoshop is dying, designers and developers now design on the fly using HTML and CSS. This isn’t to say Photoshop is going away completely overnight, but the transition is well and truly in motion.

How To Remove Border-radius Rounded Corners From Buttons In Bootstrap 3

In Bootstrap 3, the buttons (well a lot of elements) have a border radius value giving them rounded corners. Now I don’t know about you, but I find rounded corners on buttons horrible. If you are using the LESS version of Bootstrap, set the following variables: @border-radius-base: 0px; @border-radius-small: 0px; @border-radius-large: 0px; If you are using Bootstrap SASS port, set the following variables: $border-radius-base: 0px; $border-radius-small: 0px; $border-radius-large: 0px;

Does Using HTML5 Markup Tags On Your Website Improve SEO?

I was asked this question by a colleague recently when discussing SEO and modern front-end web development. I think most of us assume that using proper sectioning elements that HTML5 provides us would help with SEO a tiny bit, so I set out to find the answer and you might be surprised. Understanding semantics In HTML5 we have tags that provide semantic meaning like; main, section, aside, figure, article, header, menu and footer (amongst many others). Using these tags in our page makes for better structure, it also means when Google comes along they don’t have to guess what content is what in your page.

How To Prevent Duplicate Form Submissions Using jQuery

If you’re using jQuery to AJAX post a form then you’re already more than familiar with the caveats of using jQuery to POST a forms contents. One thing I often see overlooked is the disabling of the form while the content is being submitted, there is nothing worse than receiving duplicate form submissions and knowing the fix was simple. Or worse yet, I’ve seen instances where a form has been used to attack a site by constantly submitting it quickly.

How To Fix A Site Affected By The Google Panda/Penguin/Phantom Updates

Recently I encountered one of Google’s latest search engine algorithm tweaks and saw a site that was getting roughly 500 visitors a day drop down to less than 70 visitors per day. It was shocking to say the least, but kind of expected. I left the site, updated it occasionally and noticed the traffic remained low. This wasn’t a problem that was going to solve itself, I knew I had to try and fix it and return the site to its former glory.