stop, grok, and roll
 Wednesday, October 22, 2008
I just installed Live Writer!

So far this seems pretty cool.

I hope I can save stuff locally because sometimes i need to stop in the middle of writing an entry.

ok… there’s a save draft button that seems to todo the trick.

btw- I had to go here :

http://dasblog.info/PostingToDasBlogWithWindowsLiveWriter.aspx

to figure out how to set LiveWriter up with DasBlog.

not too tough – just your url + /blogger.aspx


10/22/2008 4:16:36 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0]  learning adventures | geek

 Friday, September 19, 2008
how to generate a machine key

how to generate a machine key:

1. http://www.orcsweb.com/articles/aspnetmachinekey.aspx
2. click the button
3. copy the key you just generated to <system.web> in your web.config

- thanks Scott!

 


9/19/2008 11:03:57 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]  geek | learning adventures

Free-eBook: The Foundation Of Programming Series by Karl Seguin

Here's a great read:

The Foundation Of Programming Series Free ebook By Karl Seguin
http://codebetter.com/files/folders/codebetter_downloads/entry179694.aspx

If I understand the story correctly, Karl started writing this book as a series of online articles for his website 'Code Wiki' and it turned out so well that it made more sense to put it in an eBook format. I've come across the info in this books more than a handful of times over the past year or so while googling around for coding best practices, architectures, and coding techniques like dependency injection.

Some of what stands out about this work is Karl's ability to


9/19/2008 2:35:02 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]  books | geek | learning adventures

 Saturday, February 16, 2008
CodeCampRDU - spring '08

CodeCampRDU - spring '08 was great!

Here's my WCF Basics presentation slides and code:

Demo Slides...  WCF Basics - Demo.ppt (141 KB)

Demo Code: (the content is really from Dan' Wahlin's video / blog tutorial / code ) so grab it from there - Thanks Dan!

other Slides: (content abstracted from MSDN - wcf pages) WCF Basics - Presentation.ppt (99 KB)

 


2/16/2008 4:20:01 PM (GMT Standard Time, UTC+00:00)  #    Comments [0]  geek | TRINUG

 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)  #    Comments [0]  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)  #    Comments [0]  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)  #    Comments [0]  geek

 Monday, June 19, 2006
MapPoint

Here's the toc page for MapPoint resources:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_mappointmain.asp

I'd like to use this for a web services demo. (WinForms SIG)


6/19/2006 7:58:52 PM (GMT Daylight Time, UTC+01:00)  #    Comments [2]  geek | learning adventures | TRINUG

 Saturday, June 17, 2006
Design Patterns

This is cool!

http://www.dofactory.com/Framework/Framework.aspx

Lots of code, well organized, ties in with 2 of the Design Patterns books that are my favorites, and not too expensive. Wow.

Patterns of Enterprise Application Architecture                  Heads First Design Patterns
       

Heads First Design PatternsPatterns of Enterprise Application Architecture

 

 

 

 

 

 

 

 



6/17/2006 9:16:52 PM (GMT Daylight Time, UTC+01:00)  #    Comments [2]  geek | learning adventures | TRINUG

back to basi[cs]

After a year of focusing on vb apps I'm revisiting some basic c# syntax.

As a guide, I'm using MSDN

 MSDN Library > Development Tools and Languages > Visual Studio > Visual C# > C# Programming Guide >

It's a bit boring, but helpful... typing everything as I go [rather than cut&paste] helps stick it to my brain a bit better. Only up to Arrays so lots of commandline stuff at the moment.

For Winform stuff I found some videos at:  http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx 
-a 16 lesson series for beginners
-10 control focused lessons

also, found http://www.windowsforms.net/Default.aspx which is the Windows App equivalent to http://asp.net . Funny how I never came across this before.

In order to inject a bit of fun, i checked out the game stuff at: http://msdn.microsoft.com/coding4fun/gamedevelopment/
I will be trying these out as a small reward for getting through the dry stuff.

 

 


6/17/2006 8:21:25 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0]  geek | learning adventures

 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)  #    Comments [0]  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)  #    Comments [0]  geek