Category: “Tutorials”

How to ask questions on Stack Overflow (and get answers)

A lot of people ask me questions when something isn’t working.

While I’m more than happy to help where I can, the questions I tend to get don’t outline enough information for me to be able to answer them. But more importantly, I might not be the best-suited developer to help.

Which is why every programmer should learn how to ask questions properly on Stack Overflow — to get the answers that they’re looking for.

Continue reading this article…

How to Build an App Part 2 of 3: Creating the back-end with Django REST Framework

Welcome to part 2 of 3 of my How to Build an App tutorial. In the first part, I explained how to create the back-end server which we will use to host our app’s back-end (if you didn’t get a chance to read it, you can check it out here). In this second part, I will explain exactly how to build the back-end itself.
Continue reading this article…

How to Build an App Part 1 of 3: Setting up the Development Server with Vagrant, Ubuntu and Salt (Mac OS X Version)

Using Windows? Click here to view the Windows version of this walk-through.

After my previous post, Android Development for Beginners: 6 Steps to Building Your First App, I received some requests asking me to explain in more detail how to build an app, step-by-step. If you have any experience buildings apps you will know that it can be a complicated process and there are a number of different components that need to work together to have a fully functioning app. This includes creating a database, a REST API and the app front end.

Continue reading this article…

How to Build an App Part 1 of 3: Setting up the Development Server with Vagrant, Ubuntu and Salt

Using a Mac? Click here to view the Mac OS X version of this walk-through.

After my previous post, Android Development for Beginners: 6 Steps to Building Your First App, I received some requests asking me to explain in more detail how to build an app, step-by-step. If you have any experience buildings apps you will know that it can be a complicated process and there are a number of different components that need to work together to have a fully functioning app. This includes creating a database, a REST API and the app front end.

Continue reading this article…

Android Development for Beginners: 6 Steps to Building Your First App

Learning any new technology can be a challenging and frustrating task. When I first started learning Android development, I spent a lot of time reading the official documentation provided by Google, and following various tutorials over and over again, trying to memorize all the syntax. After a while, I realised that this was a complete waste of time. The fastest way to learn anything is by doing. I know you probably hear that all the time, but it’s as true in software development as it is anywhere else.

In this article, I’ll explain some of the lessons I learned on my journey to becoming proficient in Android development, and the critical steps I took when starting to build my first app.

Continue reading this article…

Disable “LF will be replaced by CLRF” warning in Git on Windows

If you’ve ever used Git in windows, you may have seen something like this every time you add files to Git:


warning: LF will be replaced by CRLF in www/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in www/templates/dash.html.
The file will have its original line endings in your working directory.

If you want to turn it off, type this:


git config --global core.safecrlf false

Done.

OnePlus One ADB Access over Network on Windows 10

So I recently upgraded to Windows 10 and also upgrade my OnePlus One to CyanogenMode 12 (Lollipop). Decided I would do a bit of Android development, so I’ve spent most of the weekend trying to locate some ADB drivers which work with my computer and phone. So far I found nothing.

After trying a number of different versions of the Samsung drivers, following countless guides and shaking my phone very hard, I noticed an option on the phones Developer options called ADB over network. My first thoughts were “this was too good to be true”, but lo and behold, after some investigation it’s far easier than locating and installing drivers which allow me to connect my OnePlus One to my Windows machine for ADB debugging (although, brain surgery is probably easier than that).

So here is how you do it.

Continue reading this article…

Virtualenv with Eclipse with PyDev on Windows 10

This article will explain how to install virtualenv and create a new Python Project in eclipse which uses a custom virtual environment. There is also a little Hello World style example at the end!

This article assumes that you have Python, Eclipse and the PyDev plugin installed on your machine. If you need to know how to do this, please see my previous post: Setting up your Windows 10 System for Python Development (PyDev, Eclipse, Python).

In the current public version of Python, there is a bug in one of the packages which will display the following error message if you try to install any packages using pip:


Fatal error in launcher: Job information querying failed

This bug has been fixed in the current dev release but still exists in the production version at the time of writing this article. If you want to learn more about the status of this, you can track it via this ticket: http://bugs.python.org/issue24127.

Continue reading this article…

Setting up your Windows 10 System for Python Development (PyDev, Eclipse, Python)

In this article, I explain how you can set-up your Windows 10 machine for some extreme Python development.

Continue reading this article…

Installing Eclipse Luna on Windows 10

Hey guys, I have recently been playing around with the insider preview of Windows 10. Love it so far, and since everyone will likely upgrade form Windows 8 to Windows 10, I thought I’d write some articles using it.

This article explains how to install Eclipse Luna on Windows 10. Eclipse is unique to most IDE’s in that it doesn’t have an installer.

Continue reading this article…