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

BalfBlog 2.1 will be known as the social update. The reason for this is because the core focus of version 2.1 is on integrating social media much deeper. The plan is to allow you to post to the blog and automatically BalfBlog will post to social media. I will also bring RSS feeds into version 2.1.

I'm hoping version 2.1 will be released before the end of the summer.

Posted in BalfBlog
coming
soon
balf
blog
balfblog

Happy birthday to the most awesome tech company Apple! 

Today Apple becomes 40 years old! I remember quite a lot of Apple through my life, and I definitely remember my first personal Mac which I got in September 2011 and since then my love for Macs has defined the way I work. 

Posted in Apple Corporation
Apple
birthday
40
th

Tesla, who just so happen to be one of my favourite companies, are unveiling their latest electric car - the Model 3. I am very excited by this mainly from a technology perspective but also from an environmental point of view. 

Teslas current lineup of cars are absolutely stunning, and it may seem like a dream right now, but I am very interested in the range and some time in the future I would love to own one (it will likely have changed by the time I get around to looking at buying one).

Tesla are a fantastic company who build things to an outstanding degree as I noticed when I was in one of the Tesla Stores. They also innovate way more than other car manufacturers, so kudos to them. 

I am excited by the Model 3 however as it will have a lower price point than the other models and it could possibly be the next car my parents buy. The future is electric and I'm hoping the Model 3 proves this further. 

Posted in Tech talk
tesla
model
3

The latest version of BalfBlog is everything a perfect blog system should be - lightweight, compact and easy to update. I'm very happy to say that the latest version, which I will put up on my website later today, is all of these things. 

Equally as important, the new version of BalfBlog creates SEO friendly URLs. For instance, my latest post on my blog (prior to this one, of course) now has the following SEO friendly URL, automatically generated: http://www.jamiebalfour.scot/blog/posts/one-weird-issue-with-older-html-based-bgcolor

SEO URLs-friendly URLs

Since the update was applied to my personal blog, my SEO rating has gone up. URLs are based on the title of the post so they become more easy to read and identify what the page at the end of the URL actually is. Google likes this.

Categories can also be accessed in a more friendly manner:

http://www.jamiebalfour.scot/blog/categories/apple%20everything

And finally, tags can be accessed through a much more elegant way too:

http://www.jamiebalfour.scot/blog/tag/javascript

Updating to the latest update is easy enough at the moment, since you simply download the latest version and copy across the balfblog folder. However, future versions starting from next month will have their own installer. This installer will update the blog automatically by downloading a zip file from my web server and unzipping it to the appropriate destination. I still have not finished the initial installer either. These will come with time.

Also, BalfBlog now uses prepared statements for speed, security and ease of updating.

Posted in BalfBlog
balfblog
updates
blog
seo
friendly

In the old days, before CSS, background colours were set using the bgcolor attribute as below:

HTML
<html bgcolor="rgb(255, 0, 0)">
</html>

But since this is quite an old way of doing things and not used often nowadays, you'll probably find it has a lack of support in some newer browsers like Google's Chrome. I came across this issue when I was trying to make the background red by using rgba(255, 0, 0) which would normally produce red and does in other browsers, but in Google's Chrome browser it produces a totally different colour. I believe this is because Google did not spend much time working on support for this older attribute that should be banished from HTML5 altogether. Below is a sample that may or may not do anything at all:

Hello world

Have you experienced this issue where the colour value represents different colours on different browsers? If so let me know by commenting below.

Posted in Web Development
css
web
development
design
chrome
back
ground
bgcolor

Five years after the last update to Diablo II, the fans get an update that makes this amazing game compatible with Windows 10 and Mac OS X 10.10 and 10.11. This came as a shock to me and hundreds of other fans across the world who adore this game as much as I do. 

The game which is 16 years old has long had problems with not working on modern operating systems, so this update is a hugely welcomed update. This really shows the commitment that Blizzard have to their fanbase more than anything, and what a commitment this is too.

Posted in Gaming
diablo
ii
diabz
diablo II
d2
blizzard

I have been working quite a lot recently on my latest project, ClickIt. ClickIt is a web development tool using the new HTML5 drag and drop standards. It has been working fine with all browsers until very recently I discovered it had an issue with both Mozilla Firefox and Microsoft Edge. I have in the past stated my dislike for Firefox after it made my life much harder in one of my courseworks last semester and now my anger continues.

Chrome, Safari and Opera cover a reasonably large base of users but for full compatibability, I'm going out of my way to try and fix an issue which I don't even know what it is. The original problem occured when I used the W3 standard for drag and drop and did this:

JavaScript
function DragBlock(ev, mode) {
	setData(ev, "mode", mode);
	setData(ev, "text", ev.target.innerText);
	setData(ev, "style", ev.target.getAttribute("class"));
}
function setData(ev, x, v){
	ev.originalEvent.dataTransfer.setData(x, v);
}

The problem however is that when I then try to retrieve this information, none of it exists. It does in Chrome and Safari, but not in Firefox or Edge. If I find a solution I will post it here.

My good friend Merlin managed to discover the problem with my implementation, and it's hardly obvious nor expected! The problem actually occurs with the ev.target.innerText function. This function is not supported in Edge or Firefox, but is in Chrome and Safari. So there you have it. My problem is fixed.
Another update on the situation: I fixed the issue altogether after I learned that the first parameter to the setData function is actually not the name of the value but the type. For some reason, Chrome and Safari accept this as the name anyway and transform this to a map from the name to the value (or in this case x -> v). Instead of messing about with this, my solution, which is somewhat crude, is to use a global variable which in turn is a map from x -> v. Since I put these in functions, my functions were simply changed to modify this global variable upon request and retrieve information back from it. This solution is as I say crude since it relies on the fact there is only one object being transferred. I am most puzzled by the fact that the issue is totally different with Safari and Chrome and that they work this as if it were a map.
Posted in Web Development
drag
drop
firefox
microsoft
mozilla
edge
issue
problem
datatransfer

Whilst I was working on a university project, I started to add some extra functionalities to change the image in a canvas. A lot of this reminded me of my BBCL (Balfour's Business Class Library), which you will probably know was a collection of business made functions written in VB.NET a long time ago (started in 2008). It reminded me specifically of the Painter Pro extensions of this .NET library that I wrote that also contained functions similar to this.

Because of this, I've decided to make these available as a single package JavaScript file. You will soon be able to download this from my website. I plan to bring it all to JavaScript, including unique features such as the I Want It There tool. 

javascript
image
library
function
grayscale
invert
colour
color
sepia

So it seems that now the email system I used before for sending emails is now integrated well into BalfBlog 2.0.

This functionality is included in a separate file so users may modify as they wish.

Posted in BalfBlog
email
balf
blog
balfblog
jamie
balfour

Within the last few weeks I have been working on major improvements to the integration of what is now known as BalfBlog. Version 2.0 was released just 2 days after version 1.1 and was released due to a complete change in the way it works. This allows it to integrate well with any website and requires minimal effort to install. If you follow my blog you'll probably know that I've been posting about this quite a bit. 

One of the things about the new BalfBlog and the way in which my website works with this blogging system is the way in which it integrates with my own website. This makes it painless to install and one of the things I've noticed is how easily my website copes with this design. 

But it doesn't stop there. ClickIt is my latest website and the main site is nearly finished. One of the features I've wanted to add was a blog. I found just how easy it was to integrate BalfBlog with Bootstrap as well. One change to a file and that's it. Ready to go. By the end of June this year, I will officially announce the finished version of BalfBlog, until then feel free to get in touch with me and arrange to get a copy of BalfBlog version 2.0b.

Posted in Website news
website
jamiebalfour.com
balfour
jamie
expansion
Powered by DASH 2.0