Category Archives: Programming

Write a Windows Console Application in C# that uses Twitter (and do it in 30 minutes or less)

I decided to write a program called “microSpeak140″ that would be a Windows command-line tool to let me post Twitter updates. The reason for such a seemingly useless tool comes from an idea I had about subscription-based communication to unmanned … Continue reading

Posted in .NET, Programming | Comments Off

Free Sequence Diagram PNG and PDF Generator

I want to share a link quite useful for explaining the sequence of events. In the technology world, there is a thing called a sequence diagram. A sequence diagram is useful for showing messages that pass back and forth between … Continue reading

Posted in Programming | Comments Off

Customize the front page of a WordPress blog to merely list your articles

In my WordPress 3.x blog, I use the default theme, and now I want the main page to be a list of all my articles — nothing more, and nothing fancy. I don’t want any of the articles to have … Continue reading

Posted in Wordpress | Comments Off

Pipe Stdin to a C# program and filter out data

I need a program that will filter command line input, and strip out CR+LF from any line that has a certain text. Solution (in C#): http://www.mrrives.com/Programming/Filter/Filter.cs And the EXE file: http://www.mrrives.com/Programming/Filter/Filter.exe Here is the code (simple): using System; using System.Collections.Generic; … Continue reading

Posted in .NET, Programming | Comments Off

Part 1: Building an ActiveX Control in C# (with CAB file via CabArc)

I will show you how to write MyActiveX.cs, turn it into a DLL, place it on an HTML page and distribute it with a CAB file. But I will start in reverse order. I will start with the HTML code … Continue reading

Posted in .NET, Programming | Comments Off

Generate an HTML Data Dictionary for your Microsoft Database

If you want to auto-generate an HTML Data Dictionary for your Microsoft SQL database, here is a free and simple tool to do it. It is a Windows command line script. Just drop down to a command window, and run … Continue reading

Posted in Programming | Comments Off

WordPress Tips

Shortcodes are square bracket tags you can insert into your wordpress blog. http://en.support.wordpress.com/shortcodes/

Posted in Wordpress | Comments Off

Create a .NET 4 MVC 3 Web Site or Migrate MVC 2 to 3

In earlier posts, I explained the move from Silverlight 3 to 4. Now I want to explain the move from MVC 2 to 3. You need to upgrade, as one day we may well be on MVC 13, and you … Continue reading

Posted in Programming | Comments Off

Part 3 of 3: Speed Comparison of C# BigInteger and C++ mpir

In Part 2 we looked at a C# program that does a little bit of large integer math (using BigInteger). The program was built in release mode, and it gave us its answer in about 55 seconds. Now it is … Continue reading

Posted in Big Numbers, Math, Programming | Comments Off

Part 2 of 3: Speed Comparison of C# BigInteger and C++ mpir

In Part 1 I discussed how to use Visual Studio C++ with MPIR and how to use BigInteger and BigRational in C#. Now I want to compare the speed between the two number packages. We may instinctively suspect that C++ … Continue reading

Posted in Big Numbers, Math, Programming | Comments Off

Part 1 of 3: Doing Large Integer Math with Visual Studio 2010 in C# or C++

If you want to work on Number Theory problems, or Diophatine Equations, you need a math package that allows you to use large integers (MATLAB, e.g.). Optionally, you need to encode your ideas as programs and test your theories the … Continue reading

Posted in Math, Programming | Comments Off

Mobile Phone Apps

Click to enlarge. Source: Flowtown

Posted in Programming | Comments Off

Create XML from Excel

When working with MS-SketchFlow, you may want to use their Sketch Datagrid. And with version 4 of Expression Blend, you can associate that grid with an XML source. If your data is in a table format, put it in Excel, … Continue reading

Posted in Programming | Comments Off

Build a dynamic newspaper site, quickly and free

A local paper needed a web site. After two calls to set up a face-to-face meeting (and we met today for just one hour), I got all the business requirements. The same day they had their site: The Louisburg Journal. … Continue reading

Posted in Programming, Wordpress | Comments Off

Axis and Allies Ti-83 Program

I bought the Axis and Allies starter kit (the exact one shown here). I wanted to play with my younger kids, but I found that the dice rolling was too time consuming and cumbersome. So I wrote a Ti-83 / … Continue reading

Posted in Game, Ti-83 | Comments Off

Ti-84 Risk Game

I have some friends who play RISK regularly enough that they decided to write a C# program that speeds up the game for dice rolling. Just enter the number attacking and the number defending, and the laptop tells you who … Continue reading

Posted in Game, Programming, Ti-83 | Comments Off

SQL Express Server 2008 and the Upgrade to Silverlight 4 RIA

In the past two articles, I explained deployment of a 2010 RIA application and my upgrade from Silverlight 3, VS 2008 to Silverlight 4 on VS 2010. Here is a gotcha: When you upgrade to VS 2010, you also get … Continue reading

Posted in Programming, Silverlight | Comments Off

Convert Silverlight 3 (VS 2008) to Silverlight 4 (VS 2010) – RIA

This is my conversion experience. I hope it is of some assistance to you — and, I must say, the link to the DOCx file is essential for your efforts. Scenario: I have a Silverlight 3 RIA application built with … Continue reading

Posted in Silverlight | Comments Off

Siliverlight 4 .NET 4 RIA Deploy

Install Visual Studio 2010 and the Silverlight 4 Tool RC2. Create a new project (Silverlight Business Application). Build the application. Buy space on an ASP.NET 4 enabled IIS7 server (I used two providers, and it was only through Discount ASP.NET … Continue reading

Posted in Silverlight | Comments Off

DOS Batch Program to Parse Strings

A friend asked me to write a script that will tell how much space is used in a directory. Using the Microsoft CMD script (the batch program) the answer follows. This cmd script demonstrates three important ideas: 1) Recursive function … Continue reading

Posted in Programming | Comments Off

Connections between Thought Realms

Computers can be programed to sift unstructured texts in order to find connections.  If you want to connect two realms of thought, you need data from both realms. You should also have a theory on how to connect the realms. … Continue reading

Posted in Connecctionism, Programming | Comments Off

A Free OpenSSL Visual C++ Object: Part 2

This is Part 2 in a series about integrating OpenSSL into an existing C++ project.  In Part 1 I presented a scenario that would necessitate such integration and I outlined the contours of the problem.   In essence, the goal of … Continue reading

Posted in OpenSSL, Programming | Tagged , | Comments Off

Adding OpenSSL to an existing Visual C++ Socket Program in C++

Your boss comes into your office and says she wants to support encrypted communications over your HTTP server. She wants your company web site to use HTTPS instead of HTTP. Among other things, they need to handle credit card transactions … Continue reading

Posted in OpenSSL, Programming | Tagged , , , , , | Comments Off