News Archives 
   
(click month to expand)
  

Recent Technology News Stories

Solentive News
2,5 ≠ 2,500  [click for more...]

Over in the microsoft.public.dotnet.internationalization newsgroup, Marcel asks:

Hi NG!
I have a little question about the localization of a double.

If I use the CultureInfo "en-US" I have the following behavior:

1.) If I enter the value 2.5 into a textbox the double.Parse(text1.Text) returns 2.5 as expected.
2.) If I enter the value 2,5 into a textbox the double.Parse(text1.Text) returns 25...why 25 and not 2500. The , is the group-separator.

Is it possible to ignore these behavior to ensure the 2,5 and 2.5 will always be interpreted as 2.5 (like in the calculator) ? Or do I have to implement this behavior by my self?

Regards
Marcel

Unfortunately, there is no way to do this within the .NET Framework. There is only one decimal separator. And the grouping separator is treated as an ignorable thing, without it having zeroes added aiutomatically....

And applications like the Windows calculator are doing what they do all by themselves.

Though it is worth considering what you would want an application to do with strings like:

1,234,567,890.123

1.234.567.890,123

Noting of course that the Windows calculator does not do much that one might expect in many different cases.

When one writes a parser, one should definitely keep the weird cases in mind....

 

This post brought to you by . (U+002e, aka FULL STOP)

4/12/2007   [Link]
Performance Analyzer for Windows SharePoint Services 3.0  [click for more...]

Even if you aren't currently experiencing performance issues with your WSS environment, it's always a good idea to take a step back and inspect your environment and WSS setup to look for areas of improvement and potential points where there may be trouble down the road.  But where do you start?  There's a lot to look at... so why not let a tool make recommendations for you based upon Microsoft's best practices.

Microsoft actually provides such a tool. 

From Microsoft Download Center:
------------
Microsoft Best Practices Analyzer for Windows SharePoint Services 3.0 and the 2007 Microsoft Office System

The Microsoft Best Practices Analyzer for Windows SharePoint Services 3.0 and the 2007 Microsoft Office System Best Practices Analyzer programmatically collects settings and values from data repositories such as MS SQL, registry, metabase and performance monitor. Once collected, a set of comprehensive ‘best practice’ rules are applied to the topology.

Administrators running this tool will get a detailed report listing the recommendations that can be made to the environment to achieve greater performance, scalability and uptime.
------------

You can download it here: http://www.microsoft.com/downloads/details.aspx?FamilyID=cb944b27-9d6b-4a1f-b3e1-778efda07df8&DisplayLang=en

4/12/2007   [Link]
Visual Studio® 2008 Web Deployment Projects - December 2007 CTP  [click for more...]

For those of you that have not seen, Microsoft has released the Web Deployments Project add-in to Visual Studio 2008.

Overview

Visual Studio 2008 Web Deployment Projects is an add-in to Visual Studio 2008 which provides developers with advanced compilation and deployment options. A Web Deployment project is extensible, enabling web developers to create pre-build and post-build actions.
Web Deployment projects do not change the way Visual Studio 2008 Web Sites or Web Application Projects build. Instead, they take an existing Web project as input and generate a precompiled Web as an output. A Web Deployment project does not change the files in the source Web site project in any way either.
Visual Studio 2008 Web Deployment Projects has all the functionalities that Visual Studio 2005 Web Deployment Projects had. Developers can read more about this core functionality at “Using Web Deployment Projects with Visual Studio 2005”.
However, there are certain enhancements in this CTP, to learn more about this release, please visit the Visual Studio Web Developer Team Blog.
This CTP targets early adopters of the Microsoft technology, platform, and tools offerings. It enables developers to experience the upcoming tool improvements. This release is also specially targeted for the developers who have been using Web Deployment Projects with Visual Studio 2005 and would like to use the functionality with Visual Studio 2008.
This CTP release is available in English only.

Get it here: http://www.microsoft.com/downloads/details.aspx?FamilyId=0FF6B63F-F79D-4590-B619-A2A4E06820F0&displaylang=en

4/12/2007   [Link]
Using Windows Live Writer 2008  [click for more...]

About 4 times a year I "refresh" my working computer with a fresh install of the latest OS and software tools.  With the release of Visual Studio 2008, I recently "refreshed" again (no longer using Visual Studio 2005).

One of the benefits I enjoy with "refreshing" is the discovery of new versions of software I enjoy using.  For example, since my last "refresh", there is a newer version of Camtasia (v5.0), ListPro (v5.0), and Windows Live Writer (2008).  The installation of Live Writer is managed through the Windows Live Installer, which also allows quick and easy access to all of the other Live applications.

windows_live_Installer

So here is my first blog using the latest and greatest Live Writer (which appears to have fixed a bug regarding categories that I am very happy about!)

Technorati Tags:
4/12/2007   [Link]
ASPInsiders: Update Your NDAs  [click for more...]
Just a quick reminder to fellow ASPInsiders that your updated NDA is due by December 21. Don't lose your status - check the lists now for details!...(read more)
4/12/2007   [Link]
New .NET Framework namespaces and types in French  [click for more...]
We now have a French language version of the .NET Framework namespaces and types poster available for download ....(read more)
4/12/2007   [Link]
An Alternative to InDiggnation  [click for more...]
NewsTrust.net, which rates news stories’ credibility instead of their popularity, plans to add a left-wing-right-wing breakdown in 2008.
4/12/2007   [Link] info@redherring.com (Red Herring)
.NET Framework 3.5 Affects 2.0  [click for more...]
I have installed .NET Framework 3.5 along with already existing 2.0 as a part of Visual Studio .NET 2008 installation. What a surprise it was to find out that the old "web site" projects were all broken... after a few hours of investigation, my coworker, Glen and I have found that the 3.5 is not so innocent and it writes to 2.0 new version of assemblies. Why in the world it would do it?! So far this is under MS engineers investigation and I hope it was an error on our side. And this KB can be useful...(read more)
4/12/2007   [Link]
Hosting Plans  [click for more...]

Hosting is about renting hardware where your website can reside. For ASP.NET , this obviously means renting space on Windows platform, where IIS hosts the ASP.NET website.

 

Different Types of Hosting:  There are 3 types of hosting plans found commonly

 

Free Hosting : Funded by advertisement banners and domain registration costs cut by using sub-domains to host your website, free hosting solutions may be useful only for a very limited segment – definitely not for a business as the flashing ads and un-intuitive domain names do not help in establishing the business’s identity.

Shared Hosting:  The middle ground and probably the most popular, shared hosting offers optimal results for the hobbyists and the vast segment of small businesses. “Shared hosting” means that one server (or a cluster) is used to simultaneously host several asp.net websites. While packing websites like sardines offers economy, there are certain inherent risks and limitations owing to how different websites sharing a common roof behave with one another.

Dedicated Servers:  The rich man’s solution, dedicated server means that a separate machine (or cluster) may be dedicated exclusively for the renter’s use. Often used by larger companies for more sophisticated arrangements and usually for a higher visitor volume, this type of plan requires a network professional to manage the operations.

 

4/12/2007   [Link]
Copyright © 2007 Solentive | Disclaimer | Contact | Home