Blog posts

255 results found

255 results in .NET, Dev, SQL, Umbraco

dotnet Please tell me you don't write if true equals true

It drives me crazy when I see code where someone is checking a boolean to see if it is true or not and they write it like this.

dev 7 vital steps for delivering a successful software project

For any software project to be successful, you need to have a plan. There are certain steps you need to follow and mistakes to be avoided. This article is designed to give you those vital steps to help you deliver a successful software project.

dev How to create a custom styled twitter feed for your website

In this tutorial I show you how to create your own custom twitter feed for your website, which you will have full control over the styling, like the one I have on my about page. It also pulls through the follower count. This tutorial is meant for an MVC website with .NET 4.5 which makes it suitable for Umbraco too.

dev Do what makes you feel uncomfortable

Throughout your career and life in general there will be times where you feel uncomfortable when doing a job or a task. Your natural reaction may be to stop doing that task (if you can get away with it) or you may want to avoid doing it all together. My advice to you is to do it more often.

dev 10 golden rules for becoming a better programmer

Here are my top 10 golden rules for becoming a better programmer

dotnet MVC Custom Model Property Validation Attributes

This post shows you how to create your own custom validation attributes in MVC. You can then decorate your model properties with them on your forms.

umbraco Simple Umbraco search example

This post shows you how easy it is to use the default Umbraco search functionality in your site. It uses a basic form and then uses razor to display your search results.

umbraco How to create url rewrite rules in Umbraco

This post teaches you how to set rewrite rules for your umbraco site. You may want to force your site to go to a secure url or force it to go to a url with www. at the start. To add these rules, you need to go to the file /config/UrlRewriting.config

umbraco Creating members in Umbraco programmatically

This post gives you the code for creating members programmatically in Umbraco. When you use this code, you can pass in the member's username, name, email address and optionally you can pass in their password and optionally assign them to a role/group.

dev The Pomodoro Technique

I’ve been hearing a lot of good things about the The Pomodoro Technique® for improving productivity. Basically, you work really hard and focus for 25 minutes without interruption and then you have a 5 minute break from it. You then go again for 25 minutes and have a 5 minute break from it, and so on and so on.

dotnet SHA 256 and SHA 512 hash examples

This post contains examples of how to generate a SHA 256 and SHA 512 hash key with the examples in C# and VB.NET This solution matches the expected result for Ingenico's implementation for their payment gateway.

tools·dotnet LINQPad

I recently came across this fantastic resource. It is called LINQPad. You can use it to test any C#, F# or VB snippet or program. You can even use it to query databases in LINQ or SQL. It's ideal if you find some code on the internet that you want to quickly test, or if you want to play with the new features in C# 6 without having to set up a windows console/forms app or website.