Picture of a lake in Canada

Getting started with Nodejs, MongoDB and Tower.js

February 22, 2013 , posted under JavaScript nodejs towerjs placement I have recently purchased a raspberry pi to play with, my primary reason for getting one was to have a lightweight linux server that I could develop for. There has been lots of good things said about NodeJS recently and so I wanted to see what all of the hype was about and try and create a basic chat application. Most of my time programming has been spent working on . Read more...

Getting started with logstash Part 2

December 13, 2012 Getting started with logstash part 1 Statsd & Graphite In my last post I mentioned statsd and graphite, these are 2 tools that I use in conjunction with logstash and they make a good team! So the general idea behind running these utilities together is that you can get fancy graphs based off certain events, so for example it might be nice to see a longer term trend of IIS response times for a given website or something to that effect. Read more...

Getting started with logstash

October 24, 2012 , posted under logstash grok log management iis php error log php Logstash is a tool for doing fancy stuff with log files. Its main purpose is to help administrators/IT staff with the monitoring of logs, specifically it can be used to push logs to a central location where the logs are stored and indexed for later searching. A basic logstash setup (like the one I am implementing at work) consists of log shippers (web servers and database servers) and then one server where the logs are stored, indexed and searched (in my case this is a Ubuntu server). Read more...

Stack Overflow

March 18, 2012 , posted under stack overflow Yesterday I posted my first answer to a Stack Overflow question (granted it’s not very exciting, but it’s still an answer right?!), I have used the site on many occasions before, generally to look up the solution to a problem I have been experiencing, but have not yet posted a question. Stack Overflow is an excellent resource, something I hope to be able to contribute to, I can see how addicting gaining rep and answering questions will be! Read more...

Entity Framework 4 - Database Issue

February 29, 2012 , posted under database mssql sql EF4 Entity Framework MVC4 Web API MVC4 I have been setting up a little web api with MVC4 and entity framework for a university project, everything was running fine on my local development machine, however when I created the database on my host (123-reg), via scripting the database (From SQL Management Studio) and removing commands 123-reg doesnt accept, my application would try and create the database, which my database account doesnt have permission to do. This was very strange behaviour as the database was in a compatible state, DbContext. Read more...

AINT207 - Space Simulation Game Implementation

February 14, 2012 , posted under AINT207 I would like my game to be available across the internet independant of platform, HTML5 and JavaScript dont rely on any plugins or codecs that a user might not have installed and so make a good choice for implementing a game. One possible downside to this pair of technologies is the immaturity of them compared with games developed in flash that have large user bases and lots of tutorials and other content, additionally flash have access to many different portals through wich the game can be marketed and monitised. Read more...

AINT207 - Space Simulation Game Design & Story

February 13, 2012 , posted under AINT207 As I mentioned in the first blog post my game is going to be set in space, therefore it makes sense if the design and aesthetics of the game are somewhat futuristic. I found a set of graphics released by Lost Garden http://www.lostgarden.com/2005/03/download-complete-set-of-sweet-8-bit.html which seem to meet my needs additionally I quite like the retro look incontrast to the very modern and impressive graphics used in S.P.A.Z. The graphics pack features several different objects that could be used as space stations, where goods can be bought and sold, in addition to some ships that I plan to use for the player’s own ship. Read more...

AINT207 - Space Simulation Game Concept

February 10, 2012 , posted under AINT207 For my as yet unnamed game I plan to create a space simulator game that includes trading mechanics. The player will have to improve the capabilities of his ship through purchasing upgrades with Credits. Credits are earned by buying and selling goods between stations. I like how trading works in games such as X2: The Threat, there are many different types of station and commodities that can be sold with opportunities to make both a profit and a loss with trading. Read more...

Removing all BlogEngine.net Comments with JavaScript

February 10, 2012 , posted under javascript quick fix I have had quite a lot of spam on this blog, but never got round to clearing it all out. I couldnt find a function that would let me remove all of the comments from all of my posts so I wrote a little bit of javascript to automate the process. Using Chrome’s inspector and script console run this line of code on your comments page. setInterval(function(){ $(".chk").attr(‘checked’, true); ProcessSelected(‘Delete’, ‘Pending’); }, 800); Replacing ‘Pending’ with ‘Approved’ if you need to clear out those as well. Read more...

IDAT 102 - Processing

March 22, 2011 To develop some ideas for the data visulisation I have to do as mentioned in my previous post I went looking for examples of interesting visulisations. One of my favorite examples of processing is http://blog.arsthanea.com/2009/01/05/black-hole/ the result acheived is really spectacular. http://www.syedrezaali.com/blog/?p=1493 http://www.creativeapplications.net/category/processing/ also contain more examples of processing I found interesting. For my final sketch I would like to create something that is visually apealing, I would like to create something along the lines of a pulse expanding out from a point on the canvas where the point is the centre of a circle, these different properties, such as the speed that the pulse expands at and the location of the circle could represent the data from the rss feed we are going to use. Read more...

IDAT 102 - Processing Data Visualisation

March 20, 2011 For my next IDAT 102 assignment we have to create a visual representation of the Arch-OS weather feed. Processing is an open source programming language with syntax similar to that of Java, this is the language that we will be using to create our visiulisation, it is well documented on their website and has a large userbase which means if you encounter a problem that you cant solve by using the documentation there will most likely be another user who is willing to help. Read more...

ASP.NET MVC 3 - C# Password Reset

February 28, 2011 This code allows users to reset the passwords if they have forgotten them, the ASP.NET membership provider generates a random password which is presented to them on the page after the reset link has been clicked. The URL parameter looks like this: ?username=username&reset=24-C7-27-F8-5D-19-45-06-13-ED-CB-D7-F2-1E-48-7C The “-” could quite easily be removed using a regular expression if you don’t like them! Any comments or criticism welcome, I would like to improve my programming skills and techniques! Read more...