I thought this was pretty funny. And running it in comptabiliy view is not helping. And how do they think I’m going to type anything in that very small textbox and the tiny buttons. Edit: And I found a solution (not that I think I had to look for one). Hi, I have had this issue with IE8 and finally got round to looking for a fix rather than uninstalling it. It was suprisingly easy to fix.
This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.
A while ago (asked Sep 18 at 14:34) I asked a question on StackOverflow. I’m pretty sure I could have found the answer via Google myself but it is so much eaasier to ask someone else to do the work for me and perhaps come up with the better answer. The question was. Why can’t string be mutable in java and .net Why is it that they decided to make string immutable in Java and .NET (and some other languages)? Why didn’t they make it mutable?
Time for another episode of the SQL Friday, The Best SQL Server Links Of The Past Week show. Here is what I found interesting this past week in SQL Land: A DBA utility database in every SQL Server instance? Linchi Shea writes: I was reading Louis Davidson’s post earlier today, and what he said below caught my attention: I am a big believer in having the database be as self contained as possible, so I try to put [maintenance] objects and such in the database, typically in a schema named utility.
In my [previous post][1] (not so long ago). I talked about the Actionlink and it not being very refactor friendly because of all the magic strings in it. But there was a strongly typed version out there somewhere that didn’t work all the time but I couldn’t find it at that time. Well it is hiding [here][2] and you can dowload it by clicking on the ASP.NET MVC v1.0 Futures link.
I installed the brandnew (nearly anyway) [release version of ASP.Net MVC v1.0][1]. I don’t think that will cahnge much for my previous examples since the code all still works. Apart from having to reset the references that is. So in my previous example I removed some of the magic strings. But it seems that some other magic strings are here to stay for a while at least. And this is it.
Mix 09 really turned out to be quite an event, a lot of cool new stuff was announced. ASP.NET MVC 1.0 The first thing I saw was ASP.NET MVC 1.0. I have been waiting for this for a while now since I want to do a MVC site for some stuff at work and don’t want to deal with CTP or RC releases. Now that it is finalized I finally can start working on that. You can download ASP.NET MVC 1.0 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
I worked a little further on my first ASP.Net spike code. I wanted to have a Person that comes frome a repo to show on the screen with less magic string. First I read a bit in this. But I get bored pretty quickly with reading things so I got back to experimenting. This is the result. First I create my trusted Person Class. namespace MvcApplication1.Models { public class Person { private string lastName; private string firstName; public Person(string LastName, string FirstName) { lastName = LastName; firstName = FirstName; } public string FirstName { get { return firstName; } set { firstName = value; } } public string LastName { get { return lastName; } set { lastName = value; } } } }``` Then I needed a repository to return somethig. One that has this as an interface. ```csharp namespace MvcApplication1.Dal.Interfaces { public interface IPerson { Models.Person FindPerson(int index); } }``` And this is one possible implementation. ```csharp using MvcApplication1.Dal.Interfaces; namespace MvcApplication1.Dal.Fake { public class Person:IPerson { public Models.Person FindPerson(int index) { return new Models.Person("Baes","Christiaan"); } } }``` And then I needed to inject this in my controller. But injecting it via the construcor is a bit more difficult than I thought so I will just create a new one for now in the constructor (next time I will inject). ```csharp using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MvcContrib; namespace MvcApplication1.Controllers { [HandleError] public class PersonController : Controller { private Dal.Interfaces.IPerson personRepository; public PersonController() { personRepository = new Dal.Fake.Person(); } public ActionResult Person() { var person = personRepository.FindPerson(1); return View(person); } } } So I got a fakerepository and I get a person from that. Then I inject that persin into the View. Because I don’t specify a specific View it will just route it to Person, which is fine for now. And no more mahic strings in the controller. Now lets look at the view (.aspx).
Whatever you might think threading isn’t easy, I don’t think our brain can really understand it just because using multiple threads takes away the logic of the sequence. You don’t know and aren’t going to know when your new thread is going to execute. You are at the mercy of the OS. So that is one thing to take into account. But on the other hand threading is awesome. It can solve performance problems without to much coding and in these days of multiple cores it’s bound to help. But try to refrain yourself from using them as much as possible they are (or should be) a last resort. Debugging can be a pain if you use them unwisely.
ASP.NET MVC 1.0 has been released. A couple of day ago ASP.NET MVC Release Candidate 2 was released but this is the real deal. You can download ASP.NET MVC 1.0 here: http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en Changes Since RC 2 The following changes were made in this release. • jQuery 1.3.1 was replaced with jQuery 1.3.2 in this release. Bug Fixes since RC 2 The following issues were resolved in this release: • ASP.NET MVC Web Applications created as a result of a new Silverlight Application no longer shows an error stating the project is unavailable.
Let me start by saying that I’m not a webdeveloper I do most of my work in Winforms. I personaly think webdevelopment is a bit frustrating. The way you have to test for x number of browsers just to find out there is another browser ou there you never heard f and that doesn’t render your site like it should. But anyway. I had a stab at ASP.Net MVC just to see how they implement MVC (Model-View-Controller).