Category Archives: Programming

The Halving Algorithm and the Guessing Game for the TI-83/TI-84

The first task for each student is to write a program where the computer thinks of a number, and the student gets to guess the number (and the program says if the guess is too high, too low, or just … Continue reading

Posted in Ti-83 | Leave a comment

Crypt Program

In my last post, I talked about an encryption scheme to add to a Twitter custom app. That’s great if you can write a custom app. If not, here is an EXE program that uses those functions. For the source … Continue reading

Posted in .NET | Leave a comment

Encrypting My Thoughts by Encrypting Twitter Messages

Twitter has become a kind of extension to my brain. And now, like a brain, my Twitter messages are only accessible to me. But it didn’t start this way. In the beginning, what I wrote on Twitter was a simple … Continue reading

Posted in Programming | Leave a comment

How to deploy a new MVC 4 or MVC 5 app to and older IIS 6 server

You can install newer MVC apps on an older Windows 2003 server (it can be done very easily). You must simply configure your Web.Config with a few settings (as shown below) and you may need to go into the Windows … Continue reading

Posted in .NET | Leave a comment

Programming by existence

If something is there, it has existence. In C# this makes all the difference. I realized this morning that I don’t wire-up relationships, but the C# MVC system works on the basis of mere existence. If a filename with a … Continue reading

Posted in .NET, Programming | Leave a comment

VS 2010 Intellisense for JQuery in C# Razor (cshtml) Files not working

If you know what the title of this blog means, then you are looking for this: @if (false) {<script type=”text/javascript” src=”../../Scripts/jquery-1.6.2-vsdoc.js”></script>} Put this before your jquery include.

Posted in .NET | Leave a comment

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 | 1 Comment

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 | Leave a comment

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 | Leave a comment

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 | Leave a comment

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 | 17 Comments

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 | Leave a comment

WordPress Tips

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

Posted in Wordpress | Leave a comment

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 | 3 Comments

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

Jan, 2012 Update: With properly coded C#, C++ (in certain cases) is only 2.37x faster (for more, see Patrick’s comment below). In Part 2 we looked at a C# program that does a little bit of large integer math (using … Continue reading

Posted in Big Numbers, Math, Programming | 3 Comments

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 | Leave a comment

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 | Leave a comment

Mobile Phone Apps

Click to enlarge. Source: Flowtown

Posted in Programming | Leave a comment

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 | 1 Comment

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. Here is the … Continue reading

Posted in Programming, Wordpress | Leave a comment

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 | Leave a comment

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 | Leave a comment

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 | Leave a comment

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 | Leave a comment

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 | 1 Comment

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 | Leave a comment

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 | Leave a comment

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 , | 6 Comments

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 , , , , , | 2 Comments