C# Predicates

Friday, June 29th, 2007

I know this is really simple stuff but it is my first venture into predicates. This is really coo!

using System;
using System.Collections.Generic;
using System.Text;

namespace Predicate
{
class Program
{
static void Main(string[] args)
{
List<string> stringList = new List<string>();

stringList.Add(”Jamie”);
stringList.Add(”Thom”);
stringList.Add(”Monkey”);
stringList.Add(”Badger”);

stringList.Find(HasAnE);
stringList.FindAll(HasAnE).ForEach(Console.WriteLine);
Console.WriteLine(stringList.Find(HasAnE));
Console.ReadLine();
}

public static bool HasAnE(string val)
{
return val.IndexOf(’e') > -1;
}
}
}

Useful link for setting up GMail in Thunderbird

Thursday, June 28th, 2007

http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite

Flade Flash Dynamics engine - Really useful!

Wednesday, June 27th, 2007

http://www.cove.org/flade/

MX Record lookup check - really useful!

Monday, June 25th, 2007

http://www.mxtoolbox.com/index.aspx

Web Deployment Projects for Visual Studio

Monday, June 25th, 2007

Thought I might find this useful:

http://www.123aspx.com/redir.aspx?res=36150

Gmail and MX records

Friday, June 22nd, 2007

Use Gmail but with your own domain:

http://paulstamatiou.com/2006/05/18/how-to-setup-gmail-for-hosted-domains/

Symfony PHP framework

Friday, June 22nd, 2007

 Not sure if it is any good - might try it - might not

http://www.symfony-project.com/

Actionscript Unit Testing ASUnit

Thursday, June 21st, 2007

This is a great tutorial for getting started using ASUnit:

http://www.flashcodersny.org/wordpress/?p=103Â

Like a redirect / include

Wednesday, June 20th, 2007

Server.Transfer(”/file/test.asp”)

Highlighted input and textarea on focus

Wednesday, June 20th, 2007

Highlighted input and textarea on focus
HTML

CSS
input:focus, textarea:focus{
background-color: lightyellow;
}

==============================

Style up the ul list markers
HTML
<ul>
<li>News</li>
<li>Sports</li>
<li>Webmaster<ul>
<li>CSS Drive</li>
<li>PHP.net</li>
</ul>
</li>
</ul>

CSS
ul li{
list-style-type: square;
list-style-image:url(fold.gif);
padding-left: 3px;
}

ul li ul li{
list-style-image:url(list.gif);
}

===============================
Tableless forms
HTML
<form>

<label for=”user”>Name</label>
<input type=”text” name=”user” value=”" /><br />

<label for=”emailaddress”>Email Address:</label>
<input type=”text” name=”emailaddress” value=”" /><br />

<label for=”comments”>Comments:</label>
<textarea name=”comments”></textarea><br />

<label for=”terms”>Agree to Terms?</label>
<input type=”checkbox” name=”terms” class=”boxes” /><br />

<input type=”submit” name=”submitbutton” id=”submitbutton” value=”Submit” />

</form>

CSS
label{
float: left;
width: 120px;
font-weight: bold;
}

input, textarea{
width: 180px;
margin-bottom: 5px;
}

textarea{
width: 250px;
height: 150px;
}

.boxes{
width: 1em;
}

#submitbutton{
margin-left: 120px;
margin-top: 5px;
width: 90px;
}

br{
clear: left;
}