Tuesday 27 March 2018

Switch a light on and off over WiFi using a Raspberry Pi

One night I walked into the PC room and thought to myself, this room seems really dark when you walk in for the first time. Would it not be cool if I can just switch on the light from my phone as I'm walking into the room, or even when I walk into the house?

If you thought that idea would be cool, then you will enjoy the below video of my little light project.


Tuesday 19 July 2016

Decimal indicator comma instead of dot. Number fix using JavaScript.

We recently had an issue where a customer was complaining that our website does not accept commas as decimal indicators on a certain page. Which is fair, it was never written to accept commas. but what if regional settings changes an unknowing users way of interacting with our system?

First I tried to replicate the issue by changing my decimal indicator using the steps below:


Thursday 14 July 2016

Move multiple items from one ListBox to another ListBox ASP.NET

Adding multiple items from one ListBox to another seems like a trivial thing. Lets say you want to generate a report, but you are only able to add 1 item at a time from one ListBox to another. Wouldn't that just be a waste of time?



Below is a code snippet that iterates through your first ListBox and then adds it to the second, ensuring no duplicates are being added.


Tuesday 16 September 2014

First Developer Job Terminology Cheat Sheet



Sometimes being an entry level developer in the IT industry is not as easy as it seems. So I have
created this cheat sheet containing different terminologies used in the industry. (I'm a Dot Net developer, so a lot of this will solely be applicable in that environment.)

Please feel free to comment if I need to add something to this list or expand on it.




Monday 15 September 2014

Simple asp.net MVC 4 explanation

This post is mainly to assist developers (and myself) to help understand how asp.net MVC 4 works and how it fits together to create one AWESOME solution.

I was sceptic at first about asp.net MVC (coming from a drag drop asp.net web forms background) and thought it was just another way of trying to complicate the life of a developer until I started researching asp.net MVC.

This example project does not have any fancy styling, I want to put more focus on the MVC.

Each section contain examples on how to get your MVC project up and running as fast as possible.

The topics covered in this post:
  • Starting your project
  • Models
  • Views
  • Controllers
  • How MVC makes your life easier