Click here to Skip to main content
13,343,419 members (58,552 online)

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

Articles: 6, Technical Blogs: 31

RSS Feed

Average article rating: 4.60

C / C++ Language
General
Posted: 9 Jun 2014   Updated: 9 Jun 2014   Views: 23,610   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: 26,660   Rating: 4.96/5    Votes: 9   Popularity: 4.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 37   Downloaded: 1,477
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: 50,020   Rating: 4.84/5    Votes: 20   Popularity: 6.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 49   Downloaded: 2,713
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: 86,190   Rating: 4.46/5    Votes: 10   Popularity: 4.38
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 2,686
This article shows how to access WPF Dependency Properties used to form a User Control.
Posted: 18 Jul 2011   Updated: 18 Jul 2011   Views: 16,440   Rating: 4.33/5    Votes: 3   Popularity: 2.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 686
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: 41,130   Rating: 4.77/5    Votes: 9   Popularity: 4.45
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 2,689
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: 10,330   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: 12,040   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: 10,350   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
Unit Testing C# Custom Attributes with NUnit
iOS and watchOS
General
Posted: 3 Jan 2018   Updated: 3 Jan 2018   Views: 2,000   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Resizable UIWindow on iOS
Windows Phone 7/8
Windows Mobile
Posted: 3 Apr 2012   Updated: 3 Apr 2012   Views: 9,130   Rating: 0.00/5    Votes:    Popularity: 0.00
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
Posted: 7 Aug 2012   Updated: 7 Aug 2012   Views: 13,870   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Specifying the directory to create SQL CE databases when using Entity Framework
SQL Server
Posted: 28 Jun 2012   Updated: 28 Jun 2012   Views: 17,200   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
C / C++ Language
Beginners
Posted: 6 Dec 2011   Updated: 6 Dec 2011   Views: 24,340   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: 5,600   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,790   Rating: 0.00/5    Votes:    Popularity: 0.00
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: 9,890   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: 13,340   Rating: 0.00/5    Votes:    Popularity: 0.00
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: 11,150   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Evolution of C# enumerators
Other .NET Languages
General
Posted: 26 Jan 2016   Updated: 26 Jan 2016   Views: 1,930   Rating: 0.00/5    Votes:    Popularity: 0.00
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: 22,340   Rating: 4.33/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 14   Downloaded: 0
Integration Testing with NUnit and Entity Framework
Win32/64 SDK & OS
General
Posted: 30 Dec 2013   Updated: 30 Dec 2013   Views: 6,890   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: 8,240   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: 19,370   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: 9,040   Rating: 0.00/5    Votes:    Popularity: 0.00
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
Code Generation
General
Posted: 3 Jan 2017   Updated: 3 Jan 2017   Views: 6,260   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
How to debug AWS lambda functions locally using VS code and lambda-local
Testing and QA
General
Posted: 25 Jul 2011   Updated: 25 Jul 2011   Views: 25,560   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,520   Rating: 0.00/5    Votes:    Popularity: 0.00
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.
UI Testing
Posted: 2 Sep 2017   Updated: 2 Sep 2017   Views: 2,110   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Unit testing with Mocha, a local instance of dynamoDB and promises
Book Reviews
General
Posted: 22 Feb 2015   Updated: 22 Feb 2015   Views: 5,090   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: 5,480   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: 3,300   Rating: 0.00/5    Votes:    Popularity: 0.00
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: 8,300   Rating: 4.50/5    Votes: 4   Popularity: 3.01
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: 3,410   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,950   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: 2,210   Rating: 0.00/5    Votes:    Popularity: 0.00
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: 3,800   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 |
Web04 | 2.8.180111.1 | Last Updated 16 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid