Main content

C

Created on Friday, 28 March 2014 / Coding
Tags: c#
A question came up while reviewing some code that I needed to answer before I gave the feedback. What is faster: adding objects or strings to Dictionary(TKey, TValue). I was pretty certain that the object ... [ +++ ]
Created on Friday, 07 March 2014 / Coding
Tags: html, css, javascript
The website I'm working on uses a responsive design and the mobile layout has the menu hidden along the side. We want it to slide out when the user clicks the menu button (or swipes). I wanted to do this ... [ +++ ]
Created on Wednesday, 05 March 2014 / Uncategorised
Tags: html, css
For styling, sometimes you want all items to have the same width as the longest item. Some solutions either fix the width, which doesn't work well for responsive designs or where things translated. Other ... [ +++ ]
Created on Friday, 14 February 2014 / Coding
Tags: c#
As someone relatively new to C#, I don't always think of the simplest way to express my intent. We use Resharper in my workplace and it is quite good at picking up where I think too much in C++. A common ... [ +++ ]
Created on Wednesday, 13 November 2013 / Coding
Tags: c#, stylecop
A project I'm working on uses StyleCop to automatically enforce a set of style and consistency rules. It took some time for me to get a project setup because the StyleCop SDK is missing a few details. ... [ +++ ]
Created on Tuesday, 05 November 2013 / Coding
Tags: oecl
An OECL file aims to be a complete description of a component or an entire library of components. Dictionaries It does that by defining a series of dictionaries that describe various aspects of components. ... [ +++ ]
Created on Tuesday, 29 October 2013 / Coding
Tags: oecl
Finally I can talk about the longest and biggest project I have ever worked on: OECL.  So what is it? Well, let's start with the name. OECL stands for Open EDA Component Library and it is NI's way ... [ +++ ]
Created on Tuesday, 03 September 2013 / Coding
Tags: c#
Obviously C# is not C++, and so it is important to not simply assume that things true in C++ are also true in C#. A good question is the cost of the is operator compared to a virtual (or abstract) function. ... [ +++ ]
Created on Sunday, 19 May 2013 / Coding
Tags: html, accessibility, link
You can find lots of information about how to create HTML links to call a phone number. The syntax is essentially <a href="tel:NUMBER">NUMBER</a>. Most examples however would not work for people ... [ +++ ]
Created on Sunday, 19 May 2013 / Life
Tags: shanghai, china unicom, cell phone
I wrote before that I decided to go with China Unicom for cell phone service in China, primarily because they offer 3G which I use extensively, and I think I have a 1 year contract. (Oh the fun of not ... [ +++ ]
Created on Tuesday, 23 April 2013 / Coding
Tags: c/c++, software development, unit testing
I've always followed the mantra that branch points in unit tests are bad practice, but I'd never tried to give specific reasons why it is bad practice. If you think about it, it is actually quite easy ... [ +++ ]
Created on Friday, 19 April 2013 / Coding
Tags: c/c++
During a code review, I was asked why I wrote the following C code: double dval = ...; uint16_t uval = (uint16_t) MAX(0, MIN(dval, UINT16_MAX)); If I am going to store the value unsigned, why do I ... [ +++ ]
Created on Wednesday, 13 February 2013 / Coding
Tags: c/c++, windows
The Windows API provides the GetDateFormat and GetDateFormatEx functions for formatting time information into the appropriate locale specific format. Using the function, you can decide whether to return ... [ +++ ]
Created on Thursday, 31 January 2013 / User Experience
Tags: windows, user experience
Terminology in Windows can be a quite confusing. What exactly is the difference between customization, options, personalization, preferences, properties, schemes, and settings. The Windows User Experience ... [ +++ ]
Created on Friday, 07 December 2012 / Coding
Tags: c/c++
Last time I posted about why you should prefer streams to buffers. That post was motivated by some work I asked of an intern. I asked her to use the streaming interface functions with the XML parser instead ... [ +++ ]
Created on Tuesday, 04 December 2012 / Coding
Tags: xml, c/c++
I've been working with the xmlwrapp library on Gibhub for parsing XML in C++. For parsing XML, it provides two interfaces. The first one takes a file name and the second takes a buffer. For unit testing, ... [ +++ ]
Created on Wednesday, 28 November 2012 / Coding
Tags: c/c++
It is probably less well known, but many of the C++ STL algorithms can operate on containers and C-style arrays. The evidence is that few examples cover C-style arrays. But C-style arrays are great, particularly ... [ +++ ]
Created on Wednesday, 28 November 2012 / Coding
Tags: html, css, accessibility
An earlier post of mine describes the purpose of skip links. Now that you want to implement it, what is the best way? Searching online gives lots of options and an equal number of exceptions. What actually ... [ +++ ]
Created on Tuesday, 27 November 2012 / Coding
Tags: html, css, accessibility
I've decided to give a talk on web accessibility in a few months, in particular, on how to make web pages accessible. I've spent time trying to make this site more accessible, but until today I never turned ... [ +++ ]
Created on Friday, 23 November 2012 / Coding
Tags: c/c++, windows
A common problem I've had is measuring text (strings) that will be drawn to the screen from code that knows nothing about drawing. The problem is that the measure text functions expect a device context ... [ +++ ]
Page 1 of 3
by Aixeena Joomla Extensions