jaredpar's WebLog

Code, rants and ramblings of a programmer.
Posts
  • jaredpar's WebLog

    Debugging Managed Code with Object ID's

    • 0 Comments
    Just found out about a neat way to keep track of managed object references while debugging. Check out this blog entry http://blogs.msdn.com/greggm/archive/2007/01/17/setting-conditional-breakpoints-using-object-ids.aspx
  • jaredpar's WebLog

    Readonly TextBox that doesn't look funny

    • 1 Comments
    When you make a WinForm TextBox ReadOnly, it aquires a distinctive look because it changes the background. Users often want the appearance of the TextBox to stay the same, they just don't want it to be mutable. Here's a snippet to make a TextBox ReadOnly...
  • jaredpar's WebLog

    Blogging about Code

    • 0 Comments
    It's somewhat frustrating to try and post code to the internet for your blog. Getting the color scheme right isn't easy if you're like me and don't use a standard color scheme for coding. I prefer a very dark coding environment (inkpot) and most people...
  • jaredpar's WebLog

    PowerShell and SVN

    • 0 Comments
    I often delete versioned files from Visual Studio without great care for the source control impact. However I eventually have to go through and clean up the mess I made by not properly deleting the files from svn as well as on disk. When you delete a...
  • jaredpar's WebLog

    The problem with PowerShell is that sometimes you can't use it

    • 2 Comments
    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...
  • jaredpar's WebLog

    Serialization, understanding the problem

    • 0 Comments
    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...
  • jaredpar's WebLog

    Publishing Web Application Projects via FTP

    • 0 Comments
    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...
  • jaredpar's WebLog

    Boolean Parameters

    • 4 Comments
    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...
  • jaredpar's WebLog

    Determining if you're an Administrator from Powershell

    • 0 Comments
    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...
  • jaredpar's WebLog

    Where is this script?

    • 0 Comments
    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...
  • jaredpar's WebLog

    Passing data between ASP.Net pages

    • 0 Comments
    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...
  • jaredpar's WebLog

    Windows Forms Event LifeCycle

    • 1 Comments
    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...
  • jaredpar's WebLog

    C++ preprocessor and template identifiers

    • 0 Comments
    A couple of hours of tracking down a compiler error a couple of days ago taught me something about the preprocessor I'd like to pass on so others can avoid the ... learning :). I kept getting confronted by "constant expression must be followed by a...
  • jaredpar's WebLog

    Dispose vs Delete

    • 1 Comments
    Programs allocate resources for use during execution. The problem with resources is that they are limited and often times need to be recycled. Languages devise constructs and patterns for developers to periodically free up resources so that their programs...
  • jaredpar's WebLog

    LUA + MSI + Luanch program now on Vista

    • 0 Comments
    I'm a huge fan of the LUA support in Vista. It has it's quirks but it's a major step forward for Windows programming. As a former *nix guy I've had to run LUA the hard way before Vista. The support in Vista is tons better than it used to be. There...
  • jaredpar's WebLog

    Using PowerShell to update ACLS

    • 2 Comments
    I've been an avid fan of running as a limited user account (LUA) for almost all of my computing career. It's in large part a holdover from my *NIX days but it's an important practice for Windows as well. I'm very excited about this being the default for...
  • jaredpar's WebLog

    ComboBox SelectedItem, SelectedValue, SelectedWhat???

    • 0 Comments
    ComboBox has a lot of helpful properties that allow you to get access to items selected by the Control. The problem is knowing which one is best in which scenario. The documentation is not 100% clear on what the values will be in various situtations....
  • jaredpar's WebLog

    Using PowerShell to automate redundant tasks

    • 0 Comments
    It's nice to have powershell when you need to do a lot of redundant file work. I'm use Subversion as the source code control backing for a lot of my hobby projects. I have pretty much all the code I've ever written as a hobby or for school stored in SVN...
  • jaredpar's WebLog

    Responding to Windows Shutdown

    • 0 Comments
    .Net 2.0 Added a lot in the way of allowing programmers to easily interact with Windows. One of the best additions is the Microsoft.Win32.SystemEvents class. It holds events for a lot of system relatied events (hence the name). A common scenario I...
  • jaredpar's WebLog

    Custom ComboBox

    • 2 Comments
    This is another forum request. I've seen multiple requests from users who are looking to customize the drop down window for the ComboBox control. There is no builtin way to do this with the existing control. Instead you must create a custom solution....
  • jaredpar's WebLog

    PowerShell Tutorial

    • 0 Comments
    PowerShell is an exciting product coming out of Microsoft. It's a shell technology many old *nix junkies will find refreshing and very intuitive. It's based on .Net and has a syntax feels like a mix between Pearl, C# and VB. I've blogged about it before...
  • jaredpar's WebLog

    LinkButton

    • 1 Comments
    A highly rated post on the VB MSDN Forum recently asked "How can I open up a web browser when a user clicks on a button?" The first problem is "How can you start a web browser to a specified URL". This is actually very easy to do in windows. You only...
  • jaredpar's WebLog

    Dragging a Controls around a Form

    • 1 Comments
    A frequent question I see on the forums is how can you drag controls around in a form with the mouse. Drag and drop is a very big and complex subject but this is one subset that can be implemented very quickly in VB. For this sample I've created a simple...
  • jaredpar's WebLog

    DataBinding to ToolStripDropDown

    • 0 Comments
    Several people have asked on the newsgroups about a good method to bind a list of items to entries in a ToolStripDropDown instance. I've run into this issue a couple of times and wanted to share some sample code. The class takes in a ToolStripDropDown...
  • jaredpar's WebLog

    Role Change

    • 0 Comments
    After working a little over 2 years with the VSTS Architect SKU I've decide to take on a new role at Microsoft. I am taking a job with the Visual Basic Core Compiler team. This is an exciting oppuritunity for me to get back to a lot of the topics I worked...
Page 11 of 13 (321 items) «910111213