Tag Archives: miscellany

Why Twitter recently wanted you to change your password

A few days ago, Twitter asked all of its users to change their passwords. The reason they did that was that they found a bug in their system that made an internal log file store passwords in an unencrypted form. … Continue reading

Posted in cryptography, internet, miscellany | Tagged , , , , , , , , , , , | Leave a comment

Disable the charms gesture in Windows 8 (and learn a bit about user interface design)

I still really like my new laptop (see my post Quick review of a new laptop), but one thing I really hate about Windows 8 is the way the charms bar kept popping up at seemingly random times. I would … Continue reading

Posted in miscellany, user interface | Tagged , , , , , , , , , , , | 2 Comments

Make a Shakespeare insult generator in C#

This example shows how to build a Shakespeare insult generator by selecting one word from each of three arrays and combining the results. The following code shows the arrays (with many values omitted to save space). // The insult pieces … Continue reading

Posted in arrays, miscellany, strings | Tagged , , , , , , , , , , , , , , | Leave a comment

The most popular posts at C# Helper over the last 12 months

Just for fun, here’s a list of the C# Helper web site’s most popular posts over the last 12 months. This isn’t “fair” to the most recent posts because they haven’t been posted for as long. I still think it’s … Continue reading

Posted in books, miscellany | Tagged , , , , , , , , | Leave a comment

Determine whether two lists contain the same sequences of objects in different orders in C#

The SequenceEqual method determines whether two IEnumerable sequences contain the same objects in the same order. There is a simple way to determine whether the lists contain the same objects in different orders: sort the objects and then call SequenceEqual. … Continue reading

Posted in LINQ, lists, miscellany, OOP | Tagged , , , , , , , , , , , , , | Leave a comment

Determine whether two lists contain the same sequences of objects in C#

The IEnumerable interface provides a SequenceEqual method that determines whether two IEnumerable sequences contain the same objects. Normally, it uses reference equality so it considers two objects equal only if they refer to the same instance. However, if the objects … Continue reading

Posted in lists, miscellany, OOP | Tagged , , , , , , , , , , , | 2 Comments

Copy a directory hierarchy into the executable directory in C#

The example Copy files into the executable directory in C# explains how to make Visual Studio copy a file into the executable directory when it builds a project. That makes it easy for the executable to find the file when … Continue reading

Posted in files, miscellany, system | Tagged , , , , , , , , , , , , , , , | Leave a comment

How to use the examples at C# Helper

First, read over the text and the code shown on the web page. If you only need a small piece of code, that may be all you need. For example, if you don’t remember how to draw lines with custom … Continue reading

Posted in example program, miscellany | Tagged , , , , , , , | Leave a comment

Make a scrolled window in C#

Making a scrolled window is really easy, at least if you’ve seen how to do it before. If you haven’t seen it, you can spend a lot of time building your own scrolled window out of PictureBox, VerticalScrollBar, and HorizontalScrollBar … Continue reading

Posted in miscellany, user interface | Tagged , , , , , , , , , | Leave a comment

How to send an SMS text message in C#

This example finishes the series showing how to make a C# program send an SMS (Short Message Service) message. You could use this technique to make a program monitor some sort of ongoing process and send you a message if … Continue reading

Posted in miscellany, system | Tagged , , , , , , , , , , , , , , , , , | Leave a comment