.NET
Convert Egypt Phone Numbers to new Schema
0Dear All
we all know about the problem of conversion of phone numbers to new schema as below

Now you can change your phone numbers to Egypt new schema by using this small application
if you are depending on google contacts services and you sync your contacts with it , this application is what you really need.

just download it and login with google account then convert and re-sync your numbers again
Note: don’t do this before 06/10/2011
update
check newer version it have more featues
1- Remove Egypt Codes 002 ,+2
2- Remove ‘-’ dashes from phone number like 01x-xxx-xxxx
3- Add Egypt Code after you finish converting your numbers
How to get Windows Login credentials using C#.Net , ASP.Net
5one of the most famous topics is how we can know the current user credential like
user name, Groups, Authentication Type (I hope to find a way to know password
)
check this code
Console.WriteLine("AuthenticationType =" + WindowsIdentity.GetCurrent().AuthenticationType); Console.WriteLine("Name ="+WindowsIdentity.GetCurrent().Name); Console.WriteLine("Groups :"); foreach (IdentityReference ir in WindowsIdentity.GetCurrent().Groups) { Console.WriteLine(ir.Translate(typeof(NTAccount)).ToString()); }
and this a another way to get Windows Identity
WindowsPrincipal p = Thread.CurrentPrincipal as WindowsPrincipal; (p.Identity as WindowsIdentity)
and for ASP.Net
HttpContext.Current.User.Identity
for more information
Windows Principal , Windows Identity
Puzzle Game using WPF
0After Spending my weekend to Read about WPF
The Windows Presentation Foundation (or WPF), formerly code-named Avalon, is a graphical subsystem in .NET Framework 3.0 (formerly called WinFX), which uses a markup language, known as XAML, for rich user interface development. WPF is included with Windows Vista and Windows Server 2008, and is also available for Windows XP Service Pack 2 or later, and Windows Server 2003. It provides a consistent programming model for building applications and provides a clear separation between the user interface and the business logic. A WPF application can be deployed on the desktop or hosted in a web browser. It also enables rich control, design, and development of the visual aspects of Windows programs. It aims to unify a number of application services: user interface, 2D and 3D drawing, fixed and adaptive documents, advanced typography, vector graphics, raster graphics, animation, data binding, audio and video. Although Windows Forms will continue to be widely used, and Microsoft has created only a few WPF applications, the company promotes WPF for line-of-business applications. Future Microsoft software will be built on WPF; for example, the code editor in Visual Studio 2010 has been rebuilt on WPF.
it is really interesting technology and it will change the way to Design GUI for Standalone and Websites Solutions.
I have to read more about its concepts and how it is really work to make my Small Puzzle Game
and this is the code for this game Download Source Code
Nice Start with Project Euler
0Today I have Start to solve problems in Project Euler
It is really amazing website to start practice your self in programming tricks and also mathematics
I solve the first problem which was very easy , it can be solved by many ways and more simpler than my way
but I love .net 3.5
Here is my solution
var numbers = from number in Enumerable.Range(0, 1000) where ((number % 3 == 0) || (number % 5 == 0)) select number; var answer = numbers.Sum(); Console.WriteLine(answer);
How to make Console Programs Interactive
3Hello every body
I had to make console programs every time, you know console screen is very poor.
So ,I write Small Helper Class to make console program more interactive with user.
This Class helps me to make menus, read some Primitive data types and also reading them in some range
this the class Diagram of Console Helper Class
and this the code Download Code
any way
here is my work
I need your Comments
