Archive for the 'Programming' Category
Some quick notes on the basics. I’ll try to follow this up with another post soon on some of the particulars. Creating a new configuration: Build -> Configuration Manager In the drop down of current configurations, go all the way to the bottom and select “Add new…” You can choose to copy settings from an [...]
After including a control from the ASP.Net AjaxControlToolkit I got this error: Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll. I believe there are many other problems which can cause this [...]
I recently setup an ASP.Net 3.5 web application on a new Windows 2008 R2 server with IIS 7 and ran into a few issues. I will post about them all under the tag: “asp.net 3.5 with iis 7“. After setting up the file system and creating the application, I tried to load the default document [...]
I have been developing a strategy for deploying an ASP.Net Web Application (Visual Studio 2008, .NET 3.5) to staging servers, and to production. In the process, I have encountered 3 products from Microsoft that almost sound synonymous to the untrained ear, but are very different and are designed for completely different purposes. I wish that [...]
Each time a new project is started, there is always a discussion (or there should be!) of what guidelines should be used in design, naming conventions, etc. I typically like to defer to the standards given by the company that creates the language, and then define any differences. For the case of C# and .NET [...]
I have written a command line application that, among other things, converts Word Documents to HTML using the Microsoft.Office.Interop.Word library. I haven’t used it for a while, and recently had to re-run some conetnt and found this error: “Word cannot start the convertor mswrd632″ occurring quite frequently. Apparently Microsoft released a security update on 2009-12-08 [...]
Using LINQ in C# .Net 3.5, I have often had cases where I wanted to build my predicates dynamically based on the value of different runtime conditions or by iterating through a list, etc. You can easily append where clauses to an IQueryable<T> like so: query = query.Where(u => u.Name == “Scott”);query = query.Where(u => [...]
I haven’t used the Team Suite of the Visual Studio projects, so I can’t speak to their effectiveness, but it seems that Microsoft has obviously shifted their focus there instead of trying to further the Visual Source Safe product line. The release of Visual Source Safe 2005 was a token release at best. It supposedly [...]
To get command line parameters in a standard console app (C#): static void Main(string[] args){ foreach (string arg in args) { … }} To get command line parameters in a windows forms app (C#): string[] args = Environment.GetCommandLineArgs(); foreach (string arg in args){ …}
Learning to Program
Teaching computer science is something that I think about occasionally, and as such I am interested in different stiles of books and tutorials. I have even recently considered writing some programming tutorials, just for the exercise it would be to me. Yesterday, I came across an essay from Peter Norvig, who I respect as a [...]