Top Tips

Git and Putty on Windows in command line

Published

I’ve moved away from using a Git GUI to command line, I typically used GitExtensions. The reason being, it’s a little annoying having to open any GUI to make a commit and push. It is quicker to use the command line and you learn more about how Git works.

Useful JavaScript snippets

Published

I have picked a few useful features of JavaScript which you might find helpful and I will explain how to use them.

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.