Click here to Skip to main content

Articles by PeteBarber (Articles: 6, Technical Blogs: 19)

Articles: 6, Technical Blogs: 19

RSS Feed

Average article rating: 4.57

C / C++ Language
General
Posted: 9 Jun 2014   Updated: 9 Jun 2014   Views: 8,439   Rating: 4.22/5    Votes: 6   Popularity: 3.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
As a way to learn Swift I decided to have a play with Sprite Kit. One of the first things I did was to create a subclass of SKSpriteNode. This has a very handy initializer:init(imageNamed name: string) (in Swift)-(instanceType)initWithImageNamed:(NString*)name (in Objective-C)I then derived from thi
C#
Utilities
Posted: 10 Jan 2012   Updated: 10 Jan 2012   Views: 16,556   Rating: 4.96/5    Votes: 9   Popularity: 4.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 36   Downloaded: 1,285
This article introduces an easy to use attribute/reflection based library for seamlessly parsing command line arguments for applications.
Windows Presentation Foundation
Controls
Posted: 23 May 2011   Updated: 23 May 2011   Views: 30,195   Rating: 4.81/5    Votes: 16   Popularity: 5.79
Licence: The Code Project Open License (CPOL)      Bookmarked: 41   Downloaded: 1,738
Shows how to use a WPF TreeView control to draw a graph style hierarchy with connecting lines.
Posted: 11 Jul 2011   Updated: 11 Jul 2011   Views: 44,882   Rating: 4.45/5    Votes: 8   Popularity: 3.97
Licence: The Code Project Open License (CPOL)      Bookmarked: 19   Downloaded: 1,778
This article shows how to access WPF Dependency Properties used to form a User Control.
Posted: 18 Jul 2011   Updated: 18 Jul 2011   Views: 7,832   Rating: 4.33/5    Votes: 3   Popularity: 2.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 485
This shows a couple of techniques using WPF to create a control to select a SolidColorBrush via a ComboBox and compares and contrasts them.
Internet / Network
Network
Posted: 3 Jan 2012   Updated: 3 Jan 2012   Views: 19,438   Rating: 4.67/5    Votes: 8   Popularity: 4.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 1,572
A basic implementation of an NFS server in C#.

Average blogs rating: 4.62

Custom Controls
General
Posted: 27 Jul 2011   Updated: 27 Jul 2011   Views: 8,522   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
Posted: 27 Jul 2011   Updated: 27 Jul 2011   Views: 9,048   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
Posted: 18 Aug 2011   Updated: 18 Aug 2011   Views: 8,636   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
Windows Phone 7/8
Windows Mobile
Posted: 3 Apr 2012   Updated: 3 Apr 2012   Views: 5,562   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
How to use NUnit and Entity Framework DbContext to programmatically create SQL Server CE databases and specify the database directory.
Database
SQL Server
Posted: 28 Jun 2012   Updated: 28 Jun 2012   Views: 10,898   Rating: 3.00/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
How to generate a SQL Server CE database schema from a SQL Server database using Entity Framework.
SQL Reporting Services
General
Posted: 7 Aug 2012   Updated: 7 Aug 2012   Views: 7,090   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
In the last few posts I've been describing how to create instances of SQLCE in order to perform automated Integration Testing using NUnit and accessing the dB using Entity Framework.  I covered creating the dB using both Entity Framework and the SQL CE classes.  In particular I wanted control over t
C / C++ Language
Beginners
Posted: 6 Dec 2011   Updated: 6 Dec 2011   Views: 16,805   Rating: 4.80/5    Votes: 9   Popularity: 4.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
How to obtain the size of a C++ array using templates and other techniques.
C++ 11
Posted: 15 Aug 2013   Updated: 15 Aug 2013   Views: 1,631   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Capturing lvalue references in C++11 lambdas.
General
Posted: 22 May 2011   Updated: 22 May 2011   Views: 6,601   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
I've been learning about BOOST Spirit; a C++ expression based compiler generator. One of the examples is for a Roman Numeral parser. This contained the following interesting code for pre-loading a symbol table...
Posted: 30 Jun 2014   Updated: 30 Jun 2014   Views: 3,631   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
My Swift and SpriteKit exploration continues. At the moment I'm writing the collision handling code.Rather than derive game objects from SKSpriteNode with each derived class containing the code for handling collisions with the other types of game objects I'm following something akin to a Component-E
Memory Management
Posted: 22 Nov 2011   Updated: 22 Nov 2011   Views: 9,814   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Recently I was helping somebody debug an issue around the use of swprintf_s.  The issue turned out to an Obi-Wan (off by one) error.  I don't tend use the likes of printf() very much instead preferring to use a std::stringstream if I need to format into a string.I'd assumed that the Microsoft's secu
C#
General
Posted: 24 May 2011   Updated: 24 May 2011   Views: 8,485   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
I needed a very simple tree data structure the other day. Unfortunately C#/.NET doesn't provide one so I implemented a simple one. The need was to create a hierarchy of folders from a flat data structure where each node contained a unique id and its parent id.
.NET Framework
General
Posted: 3 Aug 2012   Updated: 3 Aug 2012   Views: 10,814   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
In the previous post Using NUnit and Entity Framework DbContext to programmatically create SQL Server CE databases and specify the databse directory a basic way was shown to how to create a new dB (using Entity Framework's DbContext) programmtically.  This was used to generate a new dB for a test ho
Win32/64 SDK & OS
General
Posted: 30 Dec 2013   Updated: 30 Dec 2013   Views: 3,759   Rating: 4.80/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Just a quick post. Lately I've been learning ActionScript. Having seen how easy it is to get an ActionScript project for Flash Player running on Android using Adobe AIR I wanted to do the same for my iPhone. Getting stuff running on the AIR emulator and on the iOS simulator (under OS X) and AIR was
Windows Presentation Foundation
Data Binding
Posted: 12 Jun 2011   Updated: 12 Jun 2011   Views: 11,689   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
It is critically important to make sure that a View's DataContext is properly created and attached before the underlying Window is displayed, otherwise initial events will be missed.
Game Development
General
Posted: 16 Jun 2014   Updated: 16 Jun 2014   Views: 2,873   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
As a way to learn about Swift I've been trying to write a simple game using Sprite Kit. My initial plan was to just allow a ball to be dragged around the screen and ensure it was constrained by the screen edges. This was a little harder than originally envisioned. This was partly because the default
Testing and QA
General
Posted: 25 Jul 2011   Updated: 25 Jul 2011   Views: 12,121   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
A simple generic way to test Custom Attributes with NUnit.
Posted: 17 Apr 2012   Updated: 17 Apr 2012   Views: 4,017   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
The prescribed solution to this problem is to not place the COM types directly into the STL container but instead wrap them with the ATL CAdapt class.
Reviews on Third Party Products and Tools
General
Posted: 5 Jan 2014   Updated: 5 Jan 2014   Views: 2,106   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Recently I've been doing some ActionScript programming. Rather than target a Flash Player app. I've been using ActionScript in combination with Adobe AIR in order to create an iOS app. This has meant I've been spending time in OS X and using IntelliJ with the the ActionScript/Flex/AIR plugin as my I
No tips have been posted.
No reference articles have been posted.

PeteBarber
Team Leader
United Kingdom United Kingdom
My day job is mostly working in C++ with a bit of C#. I write a fair amount of command line based tools and really wish they could have a GUI front-end to them hence why I spend my spare time working with WPF.
 
I started a blog few years back but didn't do a lot with it. I've started describing some of the interesting programming things I come across on it. Please take a look.


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 21 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid