Libertarianism and Christianity …

While looking up information on Strymon pedals I stumbled across a blog concerning playing guitar in a church worship band. In my current church a few members have stated their liberal leanings and one complimented me on being civil in my staunch capitalist/constitutionalist, freedom loving facebook posts. I’m wondering how they would respond to the […]

The possibility of leaving .NET behind

I’ve been rather happy with ASP.NET and especially with ASP.NET MVC. I’ve got to say that C# and especially Linq is just a plain pleasure to use. I have no issues with the programming side. Ever since I’ve gone from running my own Windows Server to using shared hosting it’s been one headache after another. […]

Intermittent internet connection failure using Vista on Verizon DSL

I’ve been having issues with Verizon DSL randomly shutting down and not coming back up for an unacceptable length of time. Strangely it only happens on the Vista machine in the house. None of the Macs have this issue. I think I discovered the issue. I had changed my settings in Opera using about:config. I […]

Shoutcast Radio server

I helped a friend set up his Shoutcast server for his web site. It was a fun project and I really enjoyed it. I may have to install one for myself one of these days. πŸ™‚ Check out Polish New Castle for polka goodness 24 hours per day. πŸ™‚

Dynamic Javascript using ASP.NET MVC

Create a new MVC applictaion Open /Views/Shared/Site.Master <script src=”/Scripts/script.js” type=”text/javascript”></script> This doesn’t point to anything yet Open Global.asax Add a MapRoute routes.MapRoute(“Javascript”, “Scripts/{scriptFile}.js”, new { controller = “Scripts”, action = “Index”, scriptFile = “script” }); Now /Scripts/script.js points to Script/Index Add a view for CssController/Index <%= Url.Content(“~/Content/test.jpg”) %> Change contenttype in page directive of Views/Scripts/Index.aspx […]

Dynamic CSS using ASP.NET MVC

I’ve been considering the usefulness of adding a CSS management system to my CMS that I’ve been working on. Here are the steps I’ve taken to implement it. Create a new MVC applictaion Open /Views/Shared/Site.Master <link href=”/Css/Site.css” rel=”stylesheet” type=”text/css” /> This doesn’t point to anything yet Open Global.asax Add a MapRoute routes.MapRoute(“Css”, “Css/{cssFile}.css”, new { […]

SCOPE_IDENTITY() with LINQ

While reading about a recent question concerning @@Identity and the reasons to use SCOPE_IDENTITY() instead I experimented with LINQ to get the SCOPE_IDENTITY() results. using (var dbc = new siteDataContext()) { dbc.Log = Console.Out; repertoire newSkill = new repertoire { skill = “a new item” }; dbc.repertoires.InsertOnSubmit(newSkill); dbc.SubmitChanges(); Console.Write(newSkill.id.ToString()); } It seems that calling the […]