Dev ramblings from a master of nothing.
In Java, this is not the case as far as I know. However, when working with regular expressions in .NET, be weary of just slapping /d in when you need a number alone. Just like Char.IsDigit isn't just numbers, /d follows suit. The reason is that /d and Char.IsDigit are both validating against the Unicode designation "Nd". This stands for number decimal digit, but does not limit itself to just 0-9. If you're using regular expressions to begin with, you probably already realize that it is fairly easy ......
In a previous .NET Tip, I compared IsDigit to IsNumber for parsing numbers from a string. I wanted to point out that it is true that Char.IsDigit does only get decimal digits, but to further elaborate that this isn't just 0 through 9. Sure, 0 through 9 are the decimal digits that most of us would consider the only ones. However, with the globalization being a major push for .NET, we've got to think outside of our local scope. Char.IsDigit will also pick up other culture specific decimal digits. What ......
This tip might not fix everyone's issue, but for the problem I was facing today this worked out just fine. We have a scheduled weekly DTS package that is failing for the reason specified in this title: "Protocol error in TDS stream". For weeks we've just been running the thing manually, but that's not a solution, just a delay of the problem. I decided to investigate. I found an article on the SQLTeam.com forums that helped get this working finally. For us, all that was necessary was to switch the ......
Looking for a good deal on your first exam towards a handful of MCTS's? Give the MSDN's Ramp Up program a shot. After completing any of the tracks you will get the following great discounts. 25% off exam plus one free retake if you don't pass the first time for Exam 70-536 only: TS: Microsoft .NET Framework Application Development Foundation, the first of the MCTS Certification exams 50% off on select E-Learning collections: Collection 5160: Core Development with the Microsoft .NET Framework 2.0 ......
Clint Edmonson over at http://www.notsotrivial.net put together a collection of language specific coding standards reference documentation. This is a great starting point for your organization or a good resource to evaluate your current standards. View the article and get the goods here: http://www.notsotrivial.net... Technorati Tags: coding standards,VB.NET,C#.NET ......
Tomorrow I'm taking the 070-536 exam. This will be my first Microsoft certification exam, and I'm hopeful to pass but I won't be terribly surprised if I do not. From what I've seen around the forums online and other blogs, this exam is not one that is a breeze. So, here's a look at how I've prepared, and maybe some helpful links for those of you looking to take this exam in the future. After I take the test tomorrow I will review how I could do better, and what might be better advice to those looking ......
I'm currently studying for my first Microsoft certification exam, the 070-536, and during the process I came across this small quirk. Although most object arrays or collections in VB.NET start at 0, the Match.Groups collection starts at 1. This could potentially be a small frustration for those who don't use regex that often (especially with the added need to extract the information instead of just validating it). So, if you are extracting information using regex in the future, keep in mind your ......
Char.IsDigit and Char.IsNumber are both methods within the System namespace. The methods themselves are almost confusing in name at first glance. You might think that they do the same thing, but then why have both? Well, because they don't do the same thing. IsDigit refers to only the decimal digits whereas IsNumber can refer to anything in the numeric Unicode category. So, if you just want decimal, stick with IsDigit. Otherwise, you'll be getting a lot more than you bargained for if cleaning data ......
Sadly, our web server here at work is still running ASP.NET 1.1. Sigh. This hasn't been a problem for me, but this latest project requires a lot of work that we've done in newer versions. Also, I'm growing soft and using the improvements often. As a result, here's a list of improvements I really miss now that I'm having to work in 1.1 again: Code Snippets. I was working on a class to decrypt our query strings, and all of a sudden my snippets are completely missing! Not really, they just didn't exist ......
On the Community Credit forums there was mention of this really cool spatial operating environment likened to the ones in Minority Report. Visit http://www.oblong.com for a video demonstration, which is way awesome. From their site: Oblong Industries is the developer of the g-speak spatial operating environment. The SOE's combination of gestural i/o, recombinant networking, and real-world pixels brings the first major step in computer interface since 1984; starting today, g-speak will fundamentally ......
Like it or not, if you are purchasing gifts during the holidays, you're playing a miniature game of requirements analysis. Your niece Suzie isn't just getting her new (hopefully favorite) doll and your children aren't just getting the next thing that'll be all over your house, they are receiving the final product of their own miniature project, and you happen to be the project manager. Sure there won't be SCRUMM meetings, or code reviews, and no formal requirements analysis (well, at least in my ......
So it may make sense to you how to fetch information from a DefaultView using RowFilter by binding the view, but what about when you just need to extract a value? After applying a RowFilter, the first inclination might be to use the DefaultView.Table.Rows to get information that is filtered. Well, that is ultimately wrong. The DefaultView.Table returns the table the view had originated from. The table you get does not have the RowFilter restrictions applied, and therefore returns the whole table. ......