Category Archives: .NET
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
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
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
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.
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
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
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