The Reddest

The Reddest
- Name: Brandon Cannaday
- Favorite Languages: C#, Javascript, C++
- Website: http://www.paranoidferret.com
- Location: Lafayette, IN
- About Me:
Even though I'm a programmer, I enjoy spending a lot of time outdoors - hiking, camping, etc. I spend most of my programming time in high level languages and user interface design. Most of my tutorials on this blog are about WPF, C#, or Javascript.
Published Tutorials (93)
-
.NET 3.5 Adds Named Pipes Support
-
An Absolute Beginner's Guide to iPhone Development
-
An Extensive Guide to Photoshop Layer Styles
-
Blender Tutorial - Basic UV Mapping
-
Building a Silverlight Deep Zoom Application
-
Building a Twitter Extension for Google Chrome
-
C# Snippet Tutorial - Comparing IP Addresses
-
C# Snippet Tutorial - Custom Event Handlers
-
C# Snippet Tutorial - Custom List Sorting
-
C# Snippet Tutorial - Determining if Aero is Enabled
-
C# Snippet Tutorial - Editing the Windows Registry
-
C# Snippet Tutorial - How to Draw Text on an Image
-
C# Snippet Tutorial - How to Get an Enum from a Number
-
C# Snippet Tutorial - How to get an Enum from a String
-
C# Snippet Tutorial - Modify a Cell's Selected Text
-
C# Snippet Tutorial - The ?? Operator
-
C# Snippet Tutorial - Using the FileSystemWatcher Class
-
C# Tutorial - Binding a DataGridView to a Collection
-
C# Tutorial - Binding a DataGridView to a Database
-
C# Tutorial - Convert a Color Image to Grayscale
-
C# Tutorial - Serialize Objects to a File
-
C# Tutorial - Simple Threaded TCP Server
-
C# Tutorial - Using Reflection to Get Object Information
-
C# Tutorial - Using the BackgroundWorker Class
-
C# Tutorial - Writing a .NET Wrapper for SQLite
-
C# Tutorial - XML Serialization
-
C++ Tutorial - Sorting STL Containers
-
Combining Images with C#
-
Communicate Between Flex and Silverlight using Javascript
-
Create a Basic iPhone Audio Player with AV Foundation Framework
-
Creating a REST Client using WCF
-
Creating a Simple Windows Service in C#
-
Creating an XP Style WPF Button with Silverlight
-
Creating and Reading Global Attributes in C#
-
Creating Buttons with XAML and C#
-
Creating Custom Shapes with XAML
-
Creating XML Documents in PHP
-
Escaping Curly Braces in XAML
-
Flex Tutorial - Change the List Selection Indicator
-
Get Access to Hundreds of Office Icons
-
Getting Started With Silverlight
-
How Google Chrome Stores Passwords
-
How to Build a Star Ratings jQuery Plugin
-
How To Configure And Use Visual Studio Macros
-
How To Embed Silverlight Into a Webpage
-
How to Use Custom User Controls in Silverlight
-
HTML and Javascript - Putting it all Together
-
Implementing C# Interfaces in C++
-
Interprocess Communication using Named Pipes in C#
-
Introduction to LINQ - Simple XML Parsing
-
iPhone Tutorial - Creating Basic Buttons
-
iPhone Tutorial - How to Create a Blue Navigation Button
-
iPhone Tutorial - Reading the Accelerometer
-
iPhone Tutorial - Searching the Web with the Bing SDK
-
Javascript and CSS Tutorial - How to make Sliding Panels
-
Javascript Sliding Panels - Starting the Panels Up
-
Javascript Sliding Panels using Generic Animation
-
Javascript Snippet Tutorial - Dynamically Modifying Tables
-
Javascript Tutorial - Getting User Input with Prompt and Confirm
-
Javascript Tutorial - How to Auto Ellipse Text
-
Javascript Tutorial - Inline Sliding Panels
-
JQuery Tutorial - Dynamic Sliding Panels
-
JQuery Tutorial - Getting Browser Information
-
Photoshop Tutorial - Actions
-
Photoshop Tutorial - Create a Seamless Texture from a Photo
-
Photoshop Tutorial - How to Make a Color Picker Gradient
-
PHP Tutorial - Creating and Modifying SQLite Databases
-
Silverlight 3 Tutorial - PlaneProjection and Perspective 3D
-
Silverlight and Javascript Interaction
-
Silverlight and the Netflix API
-
Silverlight DataGrid - The Basics
-
Silverlight DataGrid Tutorial - Using a DataGridTemplateColumn
-
Silverlight Tutorial - Animating Elements using Render Transforms
-
Silverlight Tutorial - Color Animations
-
Spice Up Wordpress with Resizable Comment Boxes
-
The Flex Drop Shadow
-
The WPF Tab Control - Inside and Out
-
Using C# to Download Every O'Reilly Book Cover
-
Using Shark to Performance Tune Your iPhone App
-
Visualizing O'Reilly with Silverlight Deep Zoom
-
WCF Callbacks Hanging WPF Applications
-
WCF Snippet Tutorial - Overloading Methods
-
WCF Tip: Using Properties in Service Contracts
-
WCF Tutorial - Basic Interprocess Communication
-
WCF Tutorial - Events and Callbacks
-
White Balance Your Images with Photoshop
-
Working With The WPF Dispatcher
-
WPF Snippet Tutorial - Aligning ListView Items
-
WPF Tutorial - Binding Converters
-
WPF Tutorial - Custom Control Templates
-
XAML Tutorial - Changing Text Color on Mouse Over
-
XML Parsing with jQuery
-
Zune Game Development - Getting Started
-
C# Tutorial - Simple Threaded TCP Server
03/18/2010 - 12:49
There's nothing special required to know when you can send the client information. Simply surround the Send function with a try-catch. If Send throws an exception, that client has disconnected.
As for "send it something", let's say we're building a chat client. You've got two clients connected to the server and they want to communicate with each other. One client sends a message to the server that needs to be relayed to another client. Somehow you've got to find the client to relay the message to. The message might contain a user ID, which you'd associate with each client using a dictionary - or something similar.
-
C# Tutorial - Simple Threaded TCP Server
03/18/2010 - 08:30
I've never reused a TcpClient object. In the example code, the client only lives in the scope of its thread. There's no way for the server to find a client when it's needed. What I meant by "keep it around" was to put it in some sort of collection so the server can look up a client when it needs to send it something.
-
C# Tutorial - Simple Threaded TCP Server
03/16/2010 - 08:49
When a connection is made, a socket will be formed between the server and the client. Each port can have several active sockets. The .NET framework and the OS maintain this information.
-
Link From window form to WPF
03/15/2010 - 15:37
We've got two tutorials about how to host Winforms in WPF and WPF in Winforms. Are these what you're looking for?
-
iPhone Tutorial - Reading the Accelerometer
03/05/2010 - 16:47
I'd create an NSMutableArray to hold the UIAcceleration objects. Whenever it's read, simply call addObject on the array and supply the object.
-
An Absolute Beginner's Guide to iPhone Development
03/04/2010 - 15:50
Sounds like it doesn't know what viewController is. Do you have it as a member on the class?
@interface HelloWorldAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
HelloWorldViewController *viewController;
} -
color Picker
02/18/2010 - 11:48
Here's a forum topic that appears to list several possibilities. We also have a Javascript Color Picker you could try.
-
Notepad++ Subversion Plugin
02/17/2010 - 18:57
Hey everyone. I've created a new version, 1.2, that provides the ability revert files.
-
PHP Tutorial - Creating and Modifying SQLite Databases
02/15/2010 - 15:27
I have fixed the post, so if you've used the code recently, you'll receive the correct output.
-
Notepad++ Subversion Plugin
02/12/2010 - 13:37
This plugin uses Tortoise commands that have been there for a very long time. I cannot say for sure if 1.4 is supported, but I don't know why it wouldn't be. It looks to me like whatever file you're attempting to commit is not actually within an SVN repository. If you attempt to use Tortoise directly to commit the file, do you receive the same error?
Recent Comments