stop, grok, and roll
| | Sun | Mon | Tue | Wed | Thu | Fri | Sat | | 26 | 27 | 28 | 29 | 30 | 31 | 1 | | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | 9 | 10 | 11 | 12 | 13 | 14 | 15 | | 16 | 17 | 18 | 19 | 20 | 21 | 22 | | 23 | 24 | 25 | 26 | 27 | 28 | 29 | | 30 | 1 | 2 | 3 | 4 | 5 | 6 |
Search
Navigation
Categories
Blogroll
|

Wednesday, October 22, 2008

Friday, September 19, 2008

Saturday, February 16, 2008

Friday, June 30, 2006
ASP.NET authors online
Scott Mitchell:
Scott's blog
An Extensive Examination of the DataGrid Web Control: Part 1-18
Another way to see Scott's stuff
Scott's books
Stephen Walther:
Stephen's blog
Stephen's books
on MSDN
6/30/2006 8:40:55 PM (GMT Daylight Time, UTC+01:00)
geek | learning adventures
Getting started with ASP.NET v2.0
Here's a list of books, websites, articles that I recommend for getting started with ASP.NET v2.0:
 |
.NET 2.0: A Developer's Notebook By Wei-Meng Lee 348 pages ISBN: 0-596-00812-0 http://www.oreilly.com/catalog/aspnetadn/ |
-quick to go through -single topic/control focused -just enough discussion of how things work, not too many details |
 |
Murach's ASP.NET 2.0 Upgrader's Guide - VB Edition by Anne Boehm and Joel Murach 16 chapters, 526 pages, 244 illustrations ISBN 1-890774-36-7 http://www.murach.com/books/ugvb/index.htm |
-thorough coverage of fundamental concepts/controls -follows a single application -after 1st complete pass through, it makes a good reference (hint: start on chp1 and go straight through) |
 |
-or-
Murach's ASP.NET 2.0 Web Programming with C# 2005 by Joel Murach and Anne Boehm 26 chapters, 841 pages, 391 illustrations ISBN 1-890774-31-6 http://www.murach.com/books/a2cs/index.htm |
- I don’t have this one yet, but it looks equally thorough. - possibly a better place to start. |
 |
ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso 576 pages ISBN: 0-7645-8464-2 http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764584642.html |
|
-follows a single application, starting with basic framework and then walks through 5 modules -not just syntax, a lot of real-life design decisions/best practices -for really getting to understand ASP.NET apps, this may be my favorite book ever! |
6/30/2006 6:35:45 PM (GMT Daylight Time, UTC+01:00)
geek | learning adventures

Tuesday, June 27, 2006
extract list of email addresses from Outlook Folder export
I send out a lot of emails to my user group and collect the "address unknown" returned emails in a folder. Today I finally got around to cleaning up the old/unused emails from my distribution list.
First I exported the contents of the Outlook folder to an Excel file. (
I need to check into the output of this because I think some data [with email addresses] got truncated.)
Excel's initial parsing makes it easy to get rid of the extraneous text in columns where I knew no email addresses existed.
The code below runs so quick this step may not be neccessary.
===
using System;
using System.IO;
using System.Text.RegularExpressions;
public class Readtextfile
{
public static void Main(string[] args)
{
StreamReader re = File.OpenText("C:\\rejected - input.txt");
FileInfo file = new FileInfo("C:\\rejected - output.txt");
StreamWriter Tex = file.CreateText();
// Try this pattern "\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b";
// \b doesn't seem to work...
string sPattern = "(?i)[A-Z0-9._%-]+@[A-Z0-9._%-]+\\.[A-Z]{2,4}";
Match oMatch;
string input = null;
while ((input = re.ReadLine()) != null)
{
if (input.Contains("@"))
{
oMatch = Regex.Match(input, sPattern);
Console.WriteLine(oMatch.Value);
Tex.WriteLine(oMatch.Value);
}
}
re.Close();
Tex.Close();
Console.WriteLine("Text file created.");
Console.ReadLine();
}
}
===
Now that i can produce a list of all email addresses, let's eliminate the duplicates:
(adustments are in bold)
===
using System;
using System.IO;
using System.Collections;
using System.Text.RegularExpressions;
public class Readtextfile
{
public static void Main(string[] args)
{
StreamReader re = File.OpenText("C:\\rejected - input.txt");
FileInfo file = new FileInfo("C:\\rejected - output no dupes.txt");
StreamWriter Tex = file.CreateText();
// Try this pattern "\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b";
// \b doesn't seem to work...
string sPattern = "(?i)[A-Z0-9._%-]+@[A-Z0-9._%-]+\\.[A-Z]{2,4}";
Match oMatch;
ArrayList ListOfMatches = new ArrayList();
string input = null;
while ((input = re.ReadLine()) != null)
{
if (input.Contains("@"))
{
oMatch = Regex.Match(input, sPattern);
if (ListOfMatches.Contains(oMatch.Value))
Console.WriteLine("Dupe: " + oMatch.Value);
else
{
Console.WriteLine("New Item: " + oMatch.Value);
Tex.WriteLine(oMatch.Value);
ListOfMatches.Add(oMatch.Value);
}
}
}
re.Close();
Tex.Close();
Console.WriteLine("Text file created.");
Console.ReadLine();
}
}
===
6/27/2006 10:44:59 PM (GMT Daylight Time, UTC+01:00)
geek

Monday, June 19, 2006

Saturday, June 17, 2006

Monday, February 20, 2006
save a dataset into the view state
I spun my wheels a bit today getting some parameters to pass into a da.selectCommand. - i definately need to come up with a way store/find/use some common dal snippets.
Along the way i found some good examples on msdn that need to be looked into, search: "dataset examples"
here's how to save a dataset into the view state and rehydrate it:
The example stores a dataset in view state on a Web Forms page.
It first creates an XML representation of the dataset and then stores the XML as a string.
Dim sw As New System.IO.StringWriter
DsNorthwind1.WriteXml(sw)
ViewState("dsNorthwind") = sw.ToString()
This example loads a typed dataset from view state.
DsNorthwind1.Clear()
Dim sr As New System.IO.StringReader(CStr(ViewState("dsNorthwind")))
DsNorthwind1.ReadXml(sr)
2/20/2006 4:54:31 AM (GMT Standard Time, UTC+00:00)
geek

Friday, February 17, 2006
SQL Profiler
I always wondered what was happening in SQL Srv once a sqlcmd got executed. (especially when it didn't work)
At the WinForms .NET Fundamentals SIG this week Mike Brown showed it in use and mentioned it was one of the top 3 sql tools he uses, so I thought I'd give it a shot.
My first attempt I just used any old template, and let the defaults remain... very murky results as it reported stuff at regular intervals from all over. Next I tried changing templates, but that didn't seem to help. I finally went the F1 route - no help there, had to go to help menu. again fruitless, just details of how to do each setting using the menu and no recommendations of what to set to get usefull results. google: sql profiler and found this clue - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenethowto15.asp This pointed me to filtering out just one app or just one database. good stuff and probably very useful oneday, but today I still had a bunch of regular events popping up and muddying up the results table.
Then I stumbled across setting "NTUserName NOT Like SYSTEM". so simple. now all is good and i can clearly see what I'm interested in.
2/17/2006 6:44:25 PM (GMT Standard Time, UTC+00:00)
geek