1. KJGridLayout

    Xcode's Interface Builder is a pretty good user-interface layout tool, especially for simple situations. However, it is not the best tool for every job. Sometimes you have to write code to dynamically create user interface elements or to move them around as the view is resized.

    When you do this …

    » Read more

  2. MacBooks and Caps Lock and Control

    I learned to touch-type over 30 years ago, on an IBM Selectric typewriter. I'm a fast and accurate typist, compared to most programmers. I've always considered typing to be a basic skill that all programmers should take seriously. What goes on in your head is more important than how fast …

    » Read more

  3. My Android Development Cheatsheet

    If I had my druthers, I'd spend all my time developing mobile apps. I've always been fascinated with pocket-sized computers, and have owned many through the years. Unfortunately, for most of my life such devices have been little more than toys, and so I've had to focus my expertise on …

    » Read more

  4. Measuring Elapsed Time in C# Methods

    When determining why some damned thing in my .NET programs is taking so damned long, it is useful to be able to look at the elapsed time for various sections of code. The straightforward way to do this is to create an instance of System.Diagnostics.Stopwatch, start it, do …

    » Read more

  5. 45

    It's another one of those "5" years. I'm now halfway to 90. 90 sounds old, but once upon a time, 45 sounded old too.

    The year has not been easy. We lost my maternal grandmother, Ann Woods, in August. I have many good memories of time spent with her up …

    » Read more

  6. Creating .NET Remoting IPC Channels

    Yet another C# code snippet. I'm developing a service and an accompanying UI that always run on the same physical box, and it was suggested that I implement the communication between them using .NET Remoting and the IPC channel type, which is a supposedly-easy way to get processes on the …

    » Read more

  7. Deserializing Objects from XML in C#

    Here's another C# code snippet that takes me way too much time to recreate by just reading the documentation.

    This is a simple example of a class that can be serialized to/from XML. In this case the "ServerConfig" XML string can contain a list of servers, looking like this …

    » Read more

  8. Pretty-formatting XML in C#

    I had a need to convert an XML string to a nice, indented format. It was a little more complicated than I expected, so I'm posting this snippet here where I can find it again when I need it.

    using System;
    using System.Text;
    using System.Xml;
    using System.Xml …

    » Read more

« Page 10 / 34 »

© 2003-2023 Kristopher Johnson