|
k_dasaprakash wrote: 1-800-453-376-9876 in U.S
Just so you know, that is not a valid format for US phone numbers. It is something like 1-800-123-4567
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Clientside? Is this distributed desktop app clientside, or web app? I assume you're talking web based, so you might want to consider how your validation will be done based on the culture. Where do you think you're actually going to be getting this from?
|
|
|
|
|
Take a look for the E.164 numeric addressing scheme. It is what Microsoft uses in their new Office Communications Server product for number normalization.
It may help you in what you want to do as far as the rules.
|
|
|
|
|
Hi,
I hope this helps you or at least someone.
I am by no means a professional programmer but more of an extreme hobbyist, but I have seen the phone number internationalization done and maybe I can relay the info...remember, I am self taught so I'm sure there will be holes in my explanation but the practice its self works.
I use this in an international logistics system, and instead of a drop down, we utilize a box where we can enter the countries ISO code (or select it from a grid). The format for the phone number is then set in the phone number field, whether that be phone, fax or mobile.
This is all done by 3 files; phonetypelist, phoneformatandvalidation, and phoneinfo.
PhoneTypeList contains the type of phone numbers, i.e. fax, phone, mobile and other.
PhoneFormatAndValidation contains the rules for formating the numbers and the functions for executing the conversion of 7134921212 to +1 713-492-1212. This file is pretty complex since it contains the rules, but it's a fairly small file (class), only 30 kb.
The file that contains the dataset is in this format:
If (PhoneInfo.fData Is Nothing) Then
PhoneInfo.fData = New PhoneInfoDataTable
Dim row As PhoneInfoRow = PhoneInfo.fData.NewPhoneInfoRow
row.CountryIsoCode = "AC"
row.CountryDialingCode = "247"
row.InternationalPrefix = "01"
row.NationalPrefix = ""
row.AreaCodeLength = 1
row.LocalNumberLength = 4
PhoneInfo.fData.Rows.Add(row)
row = PhoneInfo.fData.NewPhoneInfoRow
row.CountryIsoCode = "AD"
row.CountryDialingCode = "376"
row.InternationalPrefix = "00"
row.NationalPrefix = ""
row.AreaCodeLength = 1
row.LocalNumberLength = 6
Hopefully that helps, but if you need additional info, feel free to let me know.
Thanks,
Joe
modified on Tuesday, November 18, 2008 9:14 AM
|
|
|
|
|
In the last two weeks, I was attempting to seek for an open source software with the requirement follow:
Platform: Win32
Language: C++ or C#
Module: Document Management & Knowledge Management
Structure: Client / Server, not Browser / Server
Detail: The Server can store user's files like doc/xls/ppt/txt/pdf/rtf, and provide fulltext search. The Client may easy to search, share Knowledge with others.
So far, I had found no opensource project can meet all the requirement, almost more than 70% opensource project is written in JAVA or PHP, of course Browser/Server structure.
Anyone who can give me a solusion?
|
|
|
|
|
simonsinxer wrote: Anyone who can give me a solusion?
Study the projects you've seen and see how they work. Once you have a firm understanding write your own.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Would you consider LINQ as a Data access layer or business layer or all 2 of them?
I mean how would you incorporate LINQ to the three layer design? I have done a research on this question and would like to know what you think.
|
|
|
|
|
LINQ is a query syntax. Its not a layer.
|
|
|
|
|
Bassam Saoud wrote: I mean how would you incorporate LINQ to the three layer design?
Very, very carefully. Really, to do this, you need to disconnect the data context, otherwise the temptation is there for you to retrieve data in completely the wrong places.
|
|
|
|
|
Would you recommend I do that? I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET?
sorry for not replying to your post earier, When you posted , I just voted it
|
|
|
|
|
Bassam Saoud wrote: sorry for not replying to your post earier, When you posted , I just voted it
Don't worry about it.
Bassam Saoud wrote: I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET?
Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess - and there's a lot of unnecessary wrangling going on. I must admit that I am looking at us moving actively back to ActiveRecord - or possibly EF.
We will still continue to use L4O though.
|
|
|
|
|
Pete O'Hanlon wrote: Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess
Yeah, I totally agree, Its a mess. I have read some good articles though like this MSDN Article[^], but still I dont like. I hope you would write an article about your experience
|
|
|
|
|
I was going to give away the data layer that we wrote, but frankly it's becoming a bit embarrassing.
|
|
|
|
|
Well I would love to see an article Why not to use Linq or This is is how to use Linq in a three tier layer. I am sure many will be intersted in your experience
|
|
|
|
|
When should a class access its own data members through a property rather than directly access them?
|
|
|
|
|
Only when you really need to. Accessing through the property involves more work in the IL than actually directly accessing them.
|
|
|
|
|
Pete O'Hanlon wrote: Only when you really need to.
Ok, then when do you really need to?
led mike
|
|
|
|
|
CodingYoshi wrote: When should a class access its own data members through a property rather than directly access them?
Never. There is no such thing as "property" in C++.
led mike
|
|
|
|
|
When your property methods contain logic that maintains some other value when the property changes. The alternative is to duplicate that logic ( ) wherever you directly change the property value.
|
|
|
|
|
|
Brady Kelly wrote: When your property methods contain logic that maintains some other value when the property changes. The alternative is to duplicate that logic ( [Unsure] ) wherever you directly change the property value.
That's why I would always access a data member through the property, if one is provided by the class designer. Even if it appears that accessing the member directly would accomplish the same thing, you don't know what what might be added to the property later. That's what properties are for; to provide controlled access to a data member. Why circumvent it?
Robert C. Cartaino
|
|
|
|
|
Just when they need to.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi All! I am new to the forum and am hoping you can help with finding a simple source code management software. I've tried downloading older open source versions but either the websites weren't running anymore or the code was for Linux or something. I am running Windows Vista...Other programs I found online were either designed for a server or too much money.
I just want a simple code management program with check in/out functionality, some basic version tracking capability and to be able to export the database for easy backup.
Is there any software like this that is free?
Thanks for your help!
|
|
|
|
|
Subversion[^] comes to mind.
There are a few free version management applications discussed here[^].
|
|
|
|
|
I'll second that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|