Sign In
jaredpar's WebLog
Code, rants and ramblings of a programmer.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
API Design
C#
C++
Closures
Debugging
DotNet
F#
Futures
Generics
Gotcha
Immutable
Lambda
LINQ
Misc
Orcas
Patterns
PInvoke
PowerShell
Rant
Threading
Tuple
Type Inference
VB
Visual Studio
VsVim
Archive
Archives
May 2012
(1)
July 2011
(1)
March 2011
(3)
January 2011
(3)
November 2010
(2)
October 2010
(2)
September 2010
(1)
July 2010
(5)
June 2010
(8)
May 2010
(2)
April 2010
(1)
March 2010
(2)
February 2010
(5)
January 2010
(2)
December 2009
(6)
November 2009
(3)
October 2009
(1)
September 2009
(1)
August 2009
(1)
June 2009
(2)
May 2009
(1)
April 2009
(3)
March 2009
(2)
February 2009
(3)
January 2009
(10)
December 2008
(6)
November 2008
(7)
October 2008
(20)
September 2008
(8)
August 2008
(11)
July 2008
(5)
June 2008
(13)
May 2008
(9)
April 2008
(16)
March 2008
(7)
February 2008
(11)
January 2008
(13)
December 2007
(6)
November 2007
(9)
October 2007
(10)
September 2007
(5)
August 2007
(8)
July 2007
(2)
June 2007
(2)
May 2007
(3)
April 2007
(3)
February 2007
(3)
January 2007
(8)
December 2006
(3)
November 2006
(2)
October 2006
(4)
September 2006
(1)
August 2006
(1)
July 2006
(2)
April 2006
(7)
November 2005
(3)
October 2005
(1)
September 2005
(1)
August 2005
(2)
July 2005
(8)
June 2005
(1)
May 2005
(7)
April 2005
(4)
March 2005
(4)
February 2005
(2)
January 2005
(2)
November 2004
(1)
September 2004
(3)
October, 2008
MSDN Blogs
>
jaredpar's WebLog
>
October, 2008
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
jaredpar's WebLog
Presentation Follow up
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
Thanks to everyone who showed up at the presentation on monday . For those interested, I've uploaded the contents of the presentation here . I was unable to upload the large DB file used during the demo due to size limitations (sky drive will...
jaredpar's WebLog
Is IntPtr(long) truncating?
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
The short answer is: No, not when it matters A colleague and I were discussing a particular scenario around IntPtr,PInvoke and 64 bit correctness. Eventually our discussion lead us to the IntPtr constructor which takes a long. To my surprise...
jaredpar's WebLog
Properly handling a WinForms Timer event
Posted
over 4 years ago
by
JaredPar MSFT
4
Comments
The WinForms Timer class allows the user to perform a particular action at a set interval. Timer objects fire a Tick event at the set time which users can easily respond to. This is very useful if a developer wants to check for a particular...
jaredpar's WebLog
Redefining Success
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
Spent about an hour debugging a bit of code today. I was attempting to read data from a particular source and kept getting back failure codes. After some debugging I discovered the data didn't actually exist in the source I was reading from...
jaredpar's WebLog
Presenting at Net Developers Association Meeting Oct 27
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
I will be presenting at the Net Developers Associating meeting this upcoming Monday. If you're interested in hearing me ramble on in person please drop by. Event Details: When: Oct 27 7:00PM Where: Microsoft Building 40: The Steptoe Room ...
jaredpar's WebLog
When can you catch a StackOverflowException?
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Answer: When you're the one who threw it. Starting with the CLR version 2.0, the policy for handling a StackOverflowException was changed. User code can no longer handle the exception[1]. Instead the CLR will simply terminate the process...
jaredpar's WebLog
Program Files, I just want the 32 bit version
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
As part of my transition into using 64 bit windows I keep running into a problem with some scripts. I have a whole set of Powershell scripts that are dedicated to ensuring certain programs are installed on all of my dev machines. Or that certain...
jaredpar's WebLog
Custom Exceptions: When should you create them?
Posted
over 4 years ago
by
JaredPar MSFT
5
Comments
I think the best answer is: rarely. It's really hard to go straight to a justification here though. I find that answering a different question will eventually shed led on when to create a new exception. "What are the benefits of...
jaredpar's WebLog
Community Interview
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
Recently I did a community interview with Microsoft MVP Alessandro Del Sole . The Italian version can be read here. And no, I don’t speak Italian. The original transcript is below. 1. Nice to meet you Jared Parsons! Let’s begin by asking...
jaredpar's WebLog
Powershell and 64 bit windows helper functions
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Recently at work I started using Windows 2008 64 bit edition. Mainly for hyper-v but powershell also comes as part of the deal. I'm starting to work through the fun issues of getting some of my environment specific scripts to run in a 64 bit...
jaredpar's WebLog
Regular Expression Limitations
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
I'm struggling with an introduction line to this blog post so I'm just going to go for bluntness: Regular expressions are limited and it's important to understand these limitations. Ok, now that the premise is out of the way, lets go to a...
jaredpar's WebLog
PInvoke and bool (or should I say BOOL)?
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Boolean value types are a constant source of problems for people attempting to generate PInvoke signatures. It's yet another case of managed and native types differing on size. There are two common boolean types in native code: bool and BOOL. As with...
jaredpar's WebLog
If it's not broken, maybe you should fix it anyway
Posted
over 4 years ago
by
JaredPar MSFT
2
Comments
I know this is goes against conventional wisdom but it's something I believe in. Every sufficiently large project has that section of code nobody wants to go near. The mere mention of it causes people to leave the room. It usually has...
jaredpar's WebLog
stackoverflow: a new addiction
Posted
over 4 years ago
by
JaredPar MSFT
4
Comments
If you haven't visited stackoverflow.com yet I encourage you to take a trip. It's a great tag based newsgroup system. Check it out.
jaredpar's WebLog
VB Catch ... When: Why so special?
Posted
over 4 years ago
by
JaredPar MSFT
5
Comments
The VB Catch syntax has a particular feature not present in C#: When. It allows users to filter expressions based on something other than their type. Any arbitrary code can enter a When block to decide whether or not to handle an Exception Sub Sub1()...
jaredpar's WebLog
Functional C#: Providing an Option Part 2
Posted
over 4 years ago
by
JaredPar MSFT
3
Comments
In my previous post I discussed creating an Option style construct for C#/.Net. This post is a followup with the complete code snippet. It’s been updated in response to several bits of feedback I received. Namely Option is now a struct...
jaredpar's WebLog
Unfold
Posted
over 4 years ago
by
JaredPar MSFT
3
Comments
F# has a handy method called Unfold. Think of it as the logical opposite of an Aggregate function. Aggregates take a sequence of elements and convert them to a single element. An unfold method will take a single element and turn it into...
jaredpar's WebLog
Functional C#: Providing an Option
Posted
over 4 years ago
by
JaredPar MSFT
5
Comments
Sorry for the terrible pun in the title. I wanted to blog about developing an F# style Option class for C# and I couldn't resist. The basics of an Option class are very straight forward. It's a class that either has a value or doesn't. ...
jaredpar's WebLog
When is a LONG not a long?
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
Answer: When PInvoke is involved. I ran across a common error today on stackoverflow regarding P/Invoke that is worth blogging about. The question regarded the translation of a native API with a parameter of type LONG. The user mistakenly used the...
jaredpar's WebLog
Learching: Definition to live search
Posted
over 4 years ago
by
JaredPar MSFT
3
Comments
Unfortunately when creating Live Search, the live team did not use a term which could easily be converted to a verb (i.e. google and google-ing). The term "live searching" doesn't really flow well in a hallway conversation nearly as well...
Page 1 of 1 (20 items)