Click here to Skip to main content
12,634,651 members (24,057 online)

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

Articles: 6, Technical Blogs: 28

RSS Feed

Average article rating: 4.60

C / C++ Language
General
Posted: 9 Jun 2014   Updated: 9 Jun 2014   Views: 20,141   Rating: 4.22/5    Votes: 6   Popularity: 3.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   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: 23,031   Rating: 4.96/5    Votes: 9   Popularity: 4.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 1,447
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: 42,317   Rating: 4.84/5    Votes: 20   Popularity: 6.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 48   Downloaded: 2,478
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: 75,514   Rating: 4.46/5    Votes: 10   Popularity: 4.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 2,541
This article shows how to access WPF Dependency Properties used to form a User Control.
Posted: 18 Jul 2011   Updated: 18 Jul 2011   Views: 12,922   Rating: 4.33/5    Votes: 3   Popularity: 2.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 645
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: 33,255   Rating: 4.77/5    Votes: 9   Popularity: 4.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 2,539
A basic implementation of an NFS server in C#.

Average blogs rating: 4.72

Custom Controls
General
Posted: 27 Jul 2011   Updated: 27 Jul 2011   Views: 9,420   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
Posted: 27 Jul 2011   Updated: 27 Jul 2011   Views: 10,910   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
Posted: 18 Aug 2011   Updated: 18 Aug 2011   Views: 9,910   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: 7,630   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: 15,400   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: 12,280   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.
C / C++ Language
Beginners
Posted: 6 Dec 2011   Updated: 6 Dec 2011   Views: 22,273   Rating: 4.80/5    Votes: 9   Popularity: 4.77
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   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: 4,453   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: 7,360   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: 8,490   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
How to resolve strong references between Swift and Objective-C classes - using unowned and weak references from Swift to Objective-C classes
Memory Management
Posted: 22 Nov 2011   Updated: 22 Nov 2011   Views: 12,242   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.
C#
General
Posted: 24 May 2011   Updated: 24 May 2011   Views: 10,190   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   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.
Other .NET Languages
General
Posted: 26 Jan 2016   Updated: 26 Jan 2016   Views: 1,511   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
The perils of debugging with return statements in languages without semi-colon statement terminators, i.e. Swift
.NET Framework
General
Posted: 3 Aug 2012   Updated: 3 Aug 2012   Views: 18,683   Rating: 4.33/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   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.
Win32/64 SDK & OS
General
Posted: 30 Dec 2013   Updated: 30 Dec 2013   Views: 5,871   Rating: 4.80/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Using IntelliJ, Adobe ActionScript and AIR SDK to create & package iOS 7 apps
Posted: 4 May 2015   Updated: 4 May 2015   Views: 6,422   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Drawing into bitmaps and saving as a PNG in Swift on OS X
Windows Presentation Foundation
Data Binding
Posted: 12 Jun 2011   Updated: 12 Jun 2011   Views: 16,631   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: 8,151   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
XCode 5 Versus XCode 6 Default Generated Game (Sprite Kit) Project and Scene Sizes
Testing and QA
General
Posted: 25 Jul 2011   Updated: 25 Jul 2011   Views: 19,885   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
A simple generic way to test Custom Attributes with NUnit.
Posted: 17 Apr 2012   Updated: 17 Apr 2012   Views: 5,001   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.
Book Reviews
General
Posted: 22 Feb 2015   Updated: 22 Feb 2015   Views: 4,423   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Book review: Swift Essentials
Uncategorised Technical Blogs
General
Posted: 28 Jan 2015   Updated: 28 Jan 2015   Views: 4,280   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Optional Chaining with Dictionaries (in Swift)
Posted: 25 Feb 2015   Updated: 25 Feb 2015   Views: 2,752   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
When a Swift immutable collection isn't or is at least immutable-ish
Posted: 23 Dec 2015   Updated: 23 Dec 2015   Views: 5,057   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Git Remote Repos with OneDrive
Posted: 2 Feb 2016   Updated: 2 Feb 2016   Views: 2,424   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Swift's defer statement is funkier than I thought
Reviews on Third Party Products and Tools
Community Reviews
Posted: 5 Jan 2014   Updated: 5 Jan 2014   Views: 4,100   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.
General
Posted: 11 Sep 2015   Updated: 11 Sep 2015   Views: 1,470   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Apple announced tvOS yesterday. Downloading Xcode 7.1 Beta comes with the SDK and simulator for tvOS apps.
IoT on Azure
General
Posted: 20 Jan 2016   Updated: 20 Jan 2016   Views: 2,294   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
OAuth Authentication on tvOS
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
Web02 | 2.8.161208.2 | Last Updated 10 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid