ASP.NET MVC Framework

Thursday, October 30th, 2008

Something that I have been looking forward to having a go with - and soon all being well.

Things to watch and read:

http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx

http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx

Bed time reading….

Friday, October 24th, 2008

http://en.wikipedia.org/wiki/Lambda_calculus

http://en.wikipedia.org/wiki/Church%E2%80%93Turing_thesis

http://c2.com/ppr/checks.html

Fisher Yates Shuffle - very useful

Thursday, October 23rd, 2008

Useful for random stuff:

int[] array = new int[6] {1,2,3,4,5,6};
Console.WriteLine(”BEFORE”);
foreach (int i in array)
{
Console.WriteLine(i.ToString());
}

Random rng = new Random();
int n = array.Length;
while (n > 1)
{
int k = rng.Next(n);
n–;
int temp = array[n];
array[n] = array[k];
array[k] = temp;
}

Console.WriteLine(”AFTER”);
foreach (int i in array)
{
Console.WriteLine(i.ToString());
}

Console.ReadLine();

Tips and tricks from Scott Gu

Thursday, October 23rd, 2008

I like reading Scott Gu’s blog there is usually some really good stuff on there including a large list of tips and tricks:

http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx

App_Code directory assembly

Thursday, October 23rd, 2008

If you are just testing something you might pop a class in the App_Code directory (I was messing with extending web controls) you may need to the reference the assembly for that class. You can by using “__code”.

Here is what I did:

<%@ Register TagPrefix=”ExtendedAnchor” Assembly=”__code” Namespace=”WhatEver.Namespace”%>

Jobs a good’en!

Hiding and showing initial content with JavaScript

Monday, October 20th, 2008

http://www.robertnyman.com/2008/05/13/how-to-hide-and-show-initial-content-depending-on-whether-javascript-support-is-available/

Reference for c# stuff

Sunday, October 19th, 2008

Can’t remember everything? Sometimes you just need to be refreshed!

http://msdn.microsoft.com/en-us/library/kx37×362.aspx

Removing lines bash style

Wednesday, October 15th, 2008

sed '/^$/d' input.txt > output.txt

grep -v '^$' input.txt > output.txt

acer users forum

Wednesday, October 15th, 2008

http://www.aspireoneuser.com/forum/

http://www.aspireoneuser.com/forum/viewtopic.php?f=31&t=1256&st=0&sk=t&sd=a&hilit=custom+desktop+script

n95 modem:http://wosten.blogspot.com/2008/08/usb-modemnokia-n95-with-acer-aspire-one.html

Vi Reference

Wednesday, October 8th, 2008

As I don’t use vi very often I seem to forget many of the commands - I know what it can do but sometimes I forget how to do it!

http://www.cs.ucl.ac.uk/staff/t.pagtzis/unix/vi/vi-weq.html