Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

Jamie Balfour'sPersonal blog

Okay, so I'm one of those people who was prepared to wait until Windows 10 was ready for my computer rather than trying to install it myself (well actually I did, but the thing turned into a nightmare, failing three times due to IMAGE_WRITE_FAIL, UNPACKAGE_FAIL and IMAGE_CORRUPT on each occasion, even using a different image each time).

I decided on July 29th to wait for it on my other computer and then on August 5th I decided not try and install it again on to my other PC until it was officially ready.

Nonetheless, two weeks later I still have not been informed that it is ready to install on either of my computers - my custom built i7 machine with a Radeon R7950 with nothing out of the ordinary and my Asus convertible tablet, released only in October 2014. 

To tell the truth, Windows 10 looked/looks like it will be worth the upgrade (afterall, I hated Windows 8 as much as anyone).

So where are my upgrades? (if this was Apple, I'd already have my update downloading but it would still have four days left to finish downloading!).

Posted in Tech talk
windows
10
wait
ready
install
failure

I sometimes just sit down and look through my own website for criticism rather than anything else.

My website has become the HUB of everything I do now. You can find out about me, read tutorials by me, find my CV, find photos of my places I've been, my life, family and pets and more, access my university stuff, download and read about my software, here what I have to say and more.

I don't often sit down and review my website but as I've got a chance, I'd like to tell you the truth about some recent events.

As one person knows, the person I know who cares about my website and one of my best friends in life, I considered completely getting rid of all the work on my website and changing my website entirely to Bootstrap, convinced that it was time for a major change. 

To me now, the very fact that I was thinking this was even silly. I say this because I now know this website is me. I've built it.

I've had some comments from lecturers, friends and family and lots of others who have said my website is nice. But to me, there is always a need to change it more and more as you will have seen if you come here to view my blog or whatever on a regular basis or something.

The only problem is, whenever I write an article, tutorial or blog post or something, I always get distracted and end up changing something on the site. 

I'm trying not to modify my website any more at all - trying to keep it consistent I think is what I'm trying to say.

I'd like to point out that alpha.jamiebalfour.scot, a subsite of this website, is nothing more than a concept - even it's front page explains that I never thought about doing that!

The alpha site never came to be the future of my website. It was overloaded with things I didn't need and it didn't represent me the way my own styled website does.

Posted in Website news
website
jamie
balfour
jamiebalfour.com

I am experimenting a slightly new design with the sidebar on my website at the moment.

Instead of the standard white sidebar, I have taken inspiration from one of the websites I built a couple of days ago for a company. 

Feedback on that company website has been really powerful - most of which stated they liked dark sidebar and the bright content section. They also said they preferred the left hand sidebar to the right hand sidebar.

All of this got me thinking about my own website design too. So I decided to implement it here too. 

For a long time, I have been looking into new ways to improve my website, particularly the desktop website as I really like the mobile and tablet versions of the site (this comes from the fact that they had more skill put into them as I had learned more by then).

My mobile and tablet website stay exactly how they were before - perfect.

If you like or dislike, let me know. 

Oh and I will be bringing a new feedback form to my desktop website.

Posted in Website news
site
website
changes

I had been planning a single login system for all for quite some time but now it is finally here!

My single login for all is cross-domain between all of my subsites and both the .com and .co.uk sites. It also works on the blog, so if you are a member of my blog it's easy to login to it now, using the same way you are used to with the standard login page.

Posted in Website news
single
login
system

For some time I have been noticing that several error logs across my site have been filled with errors relating to attempted header updates in PHP that are failing.

I found out today what the problem is.

The error for most of them occurs on line 1, and it's because of Aptana Studio saving in UTF with BOM. BOM or Byte-Order-Mark is a single array of characters that is put at the start of a UTF file. The BOM can be seen with a hexeditor such as Notepad++ on Windows or hexdump on *nix machines.

It looks like this:

EF BB BF

Because PHP recognises this as output, it simply leaves it in and therefore PHP flushes the headers and the headers cannot be sent. Don't get fooled by this issue that has had me fooled for months.

Hex Fiend

There is more information here:

http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

http://ext.raneous.net/post/16512690236/my-utf-8-byte-order-mark-bom-adventure

Posted in Tech talk
php
headers
problems
sent
already
byte-code
byte-order-mark

Only a few days ago I wrote a tribute to Christopher Lee. Now I'm writing yet another tribute to a celebrity actor who I liked.

Like Christopher Lee, Patrick Macnee was 93 years of age, and he died of natural causes.

To many Sir Patrick Macnee was the actor in The Avengers (starring along side Bond Girl Diana Rigg) but to me he was one of my favourite Bond allies.

Macnee was a great Bond ally, playing Sir Godfrey Tibbett in A View To A Kill along side Roger Moore. He also starred in one of my favourite Gregory Peck films - The Sea Wolves. 

He also starred in the Oasis music video Don't Look Back in Anger -  one of my favourite music videos. 

A great actor and I'm sure a very nice person. He will be missed.

Macnee
Posted in Celebrity Tributes
patrick
macnee
tribute

Yes, it's true. I am beginning to like Microsoft again.

Let me tell you a little secret. Since Ballmer left Microsoft, I have slowly began to like them more and more. I'm not talking about everything - I mean certainly not the Nokia side of Microsoft and Windows Phone. But there are parts of Microsoft that I believe are good and doing well, and one of those is the way they are going with Windows 10.

I was not, latterly, a fan of Windows 8, but I do believe it works well with devices designed specifically for it - touch devices. 

Truthfully, I never disliked Microsoft, and I certainly don't dislike everything they do. I just became too obsessed with Apple. 

Posted in Tech talk
microsoft
apple
tech
like
jamie
balfour

I am personally really excited by the feature I loved most on Android - NFC payments - finally coming to iPhone.

Now I will be able to pay for those purchases with NFC from my phone rather than my debit or credit card.

I personally like this idea, but I understand that many do not. 

Posted in Apple Corporation
apple
apple pay
pay
wallet
iPhone
iOS

I'm maybe going to have to make a category dedicated to tributes to people on my blog as this is now the second tribute in the last month.

Lee

By Avda (Own work) [CC BY-SA 3.0], via Wikimedia Commons

Anyway, Christopher Lee passed away on the 7th June 2015 at the age of 93. Whilst I'm obviously upset about this, Christopher Lee being my favourite actor of all time (as many of you will know), I'm not as upset as would be with someone younger. Christopher Lee was a happy man, who lived a long life and starred in some of the most icon films of the last century. He made his mark and had a good long life.

He starred in some amazing films including, James Bond: The Man with the Golden Gun, Star Wars, The Lord of the Rings and The Hobbit, Dracula, Sleepy Hollow (albeit brief) and so much more.

A rather interesting fact about Christopher Lee's family is that his mother married James Bond writer Ian Fleming's uncle making them 'step-cousins'. This is a nice little link between Lee and James Bond in which he starred in.

Interestingly, one of my mother's friends accommodated him whilst he was golfing at Muirfield in Gullane, Scotland.

I have known this day would come sooner or later as Lee had not been in good health several times over the past few years and it lead me to expect it at some point.

I would like to pay my respects to Christopher Lee as being one of the world's best actors (and one of my favourite of all time, if not my favourite, and will likely remain that way indefinitely).

Posted in Celebrity Tributes
christopher
lee
chris
saruman
scaramanga

Two's Complement is one of those tricky little things that you can easily mess up, but what if there was an easier way of doing it than the traditional methods?

Well indeed there is.

Let's do it.

Example 1

For this example, we're going try and calculate -64. This should be easy.

The first step is to figure out how many bits we are going to need. For this we will need 8 bits. As a result our first place holder will be 128.

128 64 32 16 8 4 2 1

But wait a moment, the next thing we do, and we do this before putting down the placeholders, is we want to calculate a negative for the first place holder.

So what do we do? Well here's my way of doing it, and I don't know of anyone else who does it this way but:

0 - (128 - 64) = -64

Now write that as the first place holder instead. We always have a 1 for a negative number (the sign bit) so put a 1 underneath it.

-64 64 32 16 8 4 2 1
1

The next step is to keep adding until you get to 0.

-64 64 32 16 8 4 2 1
1 1 0 0 0 0 0 0

Easy peasy.

-64 + 64 = 0

Example 2

Now for -34

0 - (128 - 34)

-94 64 32 16 8 4 2 1
1 1 0 1 1 1 1 0

-94 + 64 + 16 + 8 + 4 + 2 = 0

Like I say, I don't know anyone else who uses this, though I do know of a technique similar to it. If you're teaching this to students or pupils, I don't recommend using this to teach, just to check that they got the correct answer.

Posted in Tech talk
twos
complement
school
binary
calculator
Powered by DASH 2.0