Mobile website or responsive design

Published

How do you go about choosing whether to develop a mobile site or responsive website? I would say its depends on what you are trying to achieve and with all the hype over responsive design you might sway in favour of that. In this post I discuss some benefits and negatives about both options which hopefully will help you come to a better decision.

Integrate LESS with MVC bundling

Published

Less is an excellent tool for any developer to help mange CSS code. SASS is also a great tool that does a similar job but this post is  focused on LESS and bundling it with your ASP.NET MVC web application.

MVC 4 bundling CSS and JS files

Published

MVC 4 provides an excellent tool to help with optimising your web application called bundling. The idea of bundling is quite simple, you tend to have multiple CSS and JavaScript files which can be rolled up into one CSS and JS file. The contents of the files is also minified to reduce the individual file size. It might seem odd at first to bundle all your files into one but the idea is to reduce the number of http calls made, because a web browser can only handle two - four http requests at a time. If you have a lot of request to different files this can make your web app appear slow.

How to change the hostname on Amazon Linux machine

Published

To change the hostname of a machine you can use the following command: “hostname mynewhostname”. - With out the quotes. Worth noting is this does not affect the DNS and this is only for the current session. By rebooting the server, this information will reset to whatever Amazon machine is configured to.

How to open file dialogue just using JavaScript

Published

Say for instance that you want to open the_ file select dialogue_ for a user to select an file to upload. Like a photo, pdf or any other file type. But you don’t want to use the standard file input HTML element but instead use a link or button to show the file window.

Using GIT FTP and GIT Python

Published

GIT is an excellent version control system with its GUI GIT Extensions. Something I was thinking about was finding a way to push only the project file changes to the live server. Ideally being able to choose a committed version to push live, or roll back too. There are ways like bundling the project into a .zip or .tar file and deploying it.

Stored procedures and obscure errors messages

Published

Recently found a extremely simple way to fix a problem in one of our projects at work in MySQL stored procedures. Hopefully saving everyone else the massive amount of time spent adapting the program to work.

Regex link removal script

Published

Need to remove links from your content? This regex patten should do the trick.

Can't add or edit contacts on iPhone iOS 5

Published

If you have recently upgraded to the new iOS 5 and opted to use the iCloud you might have noticed that you can no longer add or edit your contacts. If you are one of these people the fix is quite simple but some what annoying.