Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Pragmatic Programmer

Pragmatic programming at it's best. The book is a light read and worth the time

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.


January 2007 - Posts

The problem with PowerShell is that sometimes you can't use it
PowerShell puts the fun back in scripting and it's horrfying but every now and again I'm forced to write a good old batch script. Batch is good enough to get most jobs done it's just not as "fun" as PowerShell. Recently it came up in an internal alias Read More...

Posted Wednesday, January 31, 2007 1:21 PM by Jared Parsons | 2 Comments

Filed under:

Serialization, understanding the problem
Writing a proper serialization mechanism is ofter very difficult. The problem is most people don't realize this because it just works in their application and .Net makes it very easy to do. A lot of the problem is not understanding what factors you need Read More...

Posted Monday, January 29, 2007 2:13 PM by Jared Parsons | 0 Comments

Filed under:

Publishing Web Application Projects via FTP
Web Application projects are a new project type in Visual Studio 2005 SP1. It almost all of the niceties of the web projects with the semantics of being contained within a class library project. I like the feel of them and do all of my web app development Read More...

Posted Friday, January 26, 2007 2:36 AM by Jared Parsons | 0 Comments

Filed under:

Boolean Parameters
An item I try to avoid in any API I create are methods which ... Take more than one parameter One of the parameters is a boolean Typically this pattern indicates a True/False option on an operation type. This boolean value turns on or off some type of Read More...

Posted Tuesday, January 23, 2007 5:01 PM by Jared Parsons | 4 Comments

Filed under:

Determining if you're an Administrator from Powershell
Here's a handy PowerShell function I used to determine if I'm currently running as an Administrator in PowerShell # Determine if I am running as an Admin function AmIAdmin() { $ident = [Security.Principal.WindowsIdentity]::GetCurrent() foreach ( $groupIdent Read More...

Posted Friday, January 19, 2007 2:34 PM by Jared Parsons | 0 Comments

Filed under: ,

Where is this script?
Scripts often need to dynamically find out what directory they are executed from. In CMD scripts this is done by %~dp0. For powershell the following will do the trick. split-path -parent $MyInvocation.MyCommand.Definition When this is run anywhere in Read More...

Posted Thursday, January 18, 2007 2:41 PM by Jared Parsons | 0 Comments

Filed under:

Passing data between ASP.Net pages
When developing an ASP.Net page I tend to pass a lot of data between pages. A lot of it comes from being fairly OO natured and wanting to have a page that displays a particular type of content. There are lots of articles detailing how to pass data between Read More...

Posted Tuesday, January 16, 2007 11:20 AM by Jared Parsons | 0 Comments

Filed under: ,

Windows Forms Event LifeCycle
When deveploping windows forms app, it's important to understand the event lifecycle of a form. That way you know what code to put where to ensure it's loaded at the appropriate time. That being said I wrote a small app to detail the events in a basic Read More...

Posted Monday, January 08, 2007 2:32 PM by Jared Parsons | 1 Comments

Filed under: ,

Page view tracker