الأربعاء، ١٠ يونيو ٢٠٠٩

PostgreSQL & PostGIS operations @ codeproject



This is my first post at The Code Project site , You kindly evaluate this post at the following url
http://www.codeproject.com/KB/database/PostgreSQLTasks.aspx
This post is a bout PostgreSQL(open source DB) and PostGIS(spatial DB) to create a backup & load a backup of your DB and convert Esri Shapefile to & from PostGIS

Please if you have any comments don't hesitate and remember that the slogan of my blog is
ConTribUte jUst a coMment

الأحد، ٢٤ مايو ٢٠٠٩

PostgreSQL support Arabic



PostgreSQL:
is an object-relational database management system (ORDBMS). It is released under a BSD-style license and is thus free software. As with many other open-source programs, PostgreSQL is not controlled by any single company, but has a global community of developers and companies to develop it.
Problem:
PostgreSQL cannot support arabic fonts as it used SQL-ASCII Encoding as default.
Solution:
You just choose UTF-8 encoding to enable DB to be arabic.
You can now make a simple C# application that connect to postgre DB to check if it run right or no?You have recourse to simple application of
Adrian Pasik to test

الثلاثاء، ١٢ مايو ٢٠٠٩

القضاء الإدارى يقضي بحجب مواقع الإنترنت الإباحية في مصر



قضت محكمة القضاء الإداري بمجلس الدولة في جلستها المنعقدة الثلاثاء بإلزام كل من وزارة الاتصالات والجهاز القومي لتنظيم الاتصالات بحجب المواقع الإباحية على شبكة الإنترنت، وذلك في الدعوى المقامة بهذا الصدد من أحد المحامين ويدعى نزار غراب.

قالت المحكمة في حيثيات حكمها: إن الدستور المعدل، مسايراً في ذلك الاتفاقات الدولية المقررة لحقوق الإنسان قد كفل حرية التعبير بمدلوله العام،وما توخاه الدستور من خلال ضمان حرية التعبير هو أن يكون التماس الآراء والأفكار وتلقيها عن الغير ونقلها إليه غير مقيد بالحدود الأقليمية على اختلافها، حسبما ذكرت وكالة أنباء الشرق الأوسط.

وأضافت :إن الدستور أكد على ضرورة ألا تنحصر حرية التعبير في مصادر بذواتها، بل قصد أن تترامى أفاقها وأن تتعدد مواردها، إلا من الأغلال أو القيود التي تفرزها تقاليد المجتمع وقيمه وثوابته بحسبان أن الحريات والحقوق العامة ليست حريات وحقوق مطلقة وإنما مقيدة بالحفاظ على الطابع الأصيل للأسرة التي هي أساس المجتمع والتي قوامها الدين والأخلاق والوطنية والتزام الدول والمجتمع بمراعاة المستوى الرفيع للتربية الدينية والقيم الخلقية والوطنية والتراث الحقيقي للشعب والآداب العامة.

وأشارت المحكمة إلى أنه بشبكة الإنترنت مواقع إباحية تنفث سمومها في نشر الرذيلة بين طوائف المجتمع المصري بالصوت والصورة، بما يهدم كل العقائد الدينية الراسخة والقيم الأخلاقية والآداب العامة.

وأوضحت أن الإبقاء على هذه المواقع وعدم حجبها يهدم القيم المشار إليها ولا يمكن أن يدور ذلك في فلك حرية التعبير لأن ما يعرض على هذه المواقع يعد أبرز صور الإخلال بالمصالح العليا للدولة والأمن القومي الاجتماعي، ومن ثم كان لزاماً على الإدارة اتخاذ كافة الوسائل اللازمة لحجب هذه المواقع عن المواطن المصري ويضحى القرار السلبي بالامتناع عن ذلك اعتداء صارخاً على أحكام الدستور والقانون.
المصدر: وكالة أنباء الشرق الأوسط

السبت، ٩ مايو ٢٠٠٩

الساحر اليمني التائب

فيديو حلقات الساحر اليمني التائب التي عرضت على قناة المجد

الساحر اليمني التائب نشأ في أسرة متأثرة بالسحر وكان والده ساحراً شهيراً، وبالرغم من امتهانه السحر والشعوذة وهو في بداية شبابه بفعل اصرار والده على ان يورثه مهنته لتذهب جهود والدته التي حاولت إبعاده عن هذا الطريق ادراج الرياح، ومع ذلك برع في أمور السحر والشعوذة وامتلك القدرة على مخاطبة الجان والشياطين وتسخيرهم لصالحه طوال عشرين عاماً، قبل ان يتوب ويهتدي الى الطريق الحق..
من اعماله السحرية الذي كان يشتكي من عدم حمل زوجته بأنه قادر على علاجها، وهذه كانت البداية وكان يوهم الناس بأنه يعلم بكل شيء بمساعدة الشياطين والجان فكان يزرع في قلوبهم الخوف والرعب من تصرفاته وأفعاله وكان يصور لهم أنه يغرس «الجنبية» خنجر يمني في جسمه وهذا غير حقيقي
قصص مخيفة حصلت له
وما قصة الصليب على ظهره
ورحلته الى ملك النمارد

الجزء الأول
http://www.wadijazan.org/Download/video/wadi_alsaher-1.rm

الاثنين، ٢٧ أبريل ٢٠٠٩

Application.Exit vs Environment.Exit



System.Windows.Forms.Application.Exit()

Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed. This method stops all running message loops on all threads and closes all windows of the application. This method does not force the application to exit. The Exit method is typically called from within a message loop, and forces Run to return. To exit a message loop for the current thread only, call ExitThread. This is the call to use if you are running a WinForms application. As a general guideline, use this call if you have called System.Windows.Forms.Application.Run.

System.Environment.Exit(exitCode)
Terminates this process and gives the underlying operating system the specified exit code. This call requires that you have SecurityPermissionFlag.UnmanagedCode permissions. If you do not, a SecurityException error occurs. This is the call to use if you are running a console application.

System.Windows.Forms.Application.ExitThread()
Exits the message loop on the current thread and closes all windows on the thread.

الاثنين، ٦ أبريل ٢٠٠٩

جهاز تنظيم الاتصالات فى مصر يوافق على استخدام المواطنين لتقنية (جى بى أس)



القاهرة – محرر مصراوى -
اقر مجلس إدارة الجهاز القومي لتنظيم الاتصالات في اجتماعه برئاسة الدكتور طارق كامل وزير الاتصالات وتكنولوجيا المعلومات يوم السبت عدة قرارات خاصة باستخدام أجهزة تحديد المواقع "جى بى إس" في مصر، وذلك في إطار تشجيع الاستثمار وتحسين خدمات الاتصالات للمواطنين.
وقال الدكتور عمرو بدوي الرئيس التنفيذي للجهاز "ان هذه القرارات تتضمن السماح بدخول السيارات المجهزة بأنظمة تحديد المواقع وبرمجيات الملاحة الأرضية التي توجه سائقي السيارات للاماكن التي يرغبون في التوجه إليها من خلال الشاشات المتوفرة داخل سياراتهم المجهزة حيث قام الجهاز القومي لتنظيم الاتصالات بإخطار مصلحة الجمارك بذلك للتنفيذ الفوري".
وأضاف أن القواعد الجديدة تقضي بالسماح باستيراد أجهزة تحديد المواقع في تليفونات المحمول والحاسبات وغيرها بما تحوي من بعض التطبيقات المدنية، على أن يقوم جهاز تنظيم الاتصالات بإجراءات اعتماد النوع لهذه الأجهزة طبقا للإجراءات الخاصة به وقد تم بالفعل إخطار مصلحة الجمارك بذلك.
وأوضح الدكتور بدوى أنه بالنسبة لخدمات التتبع الآلي والمعروفة باسم "إيه فى إل" فلن يتم السماح بها إلا بعد الحصول على التصاريح والتراخيص اللازمة من الجهاز القومي لتنظيم الاتصالات وفق ضوابط محددة وذلك بالتنسيق مع الأجهزة الأمنية والمعنية، مشيرا إلى أن الجهاز سوف يعلن قريبا على موقعه الالكتروني كافة الإجراءات التفصيلية لهذه القرارات.
جدير بالذكر أن خدمة التتبع الآلي تتم تجربتها حاليا في قطارات السكك الحديدية والإسعاف.
وكانت ازمة قد اندلعت فى 2008 بين القاهرة وشركة نوكيا العالمية، بسبب إصرار الحكومة علي عدم السماح بإدخال السوق المصرية أجهزة محمول، تعمل بتقنية تحديد المواقع الجغرافية GPS.
وقالت الشركة آنذاك إنها تنوي مخاطبة الدكتور أحمد نظيف رئيس الوزراء، للتوصل إلي حل.
وقال إيدي رزق، المدير الإقليمي لنوكيا، إن مصر وسوريا وكوريا الشمالية، هي الدول الوحيدة علي مستوي العالم التي ترفض إدخال الهواتف التي تعمل بتلك التقنية، بالرغم من فائدتها في مجالات توجيه السيارات وتحديد المواقع الخدمية للمواطنين مثل المستشفيات والمتاجر والمدارس وغيرها.

رابط الخبر في الجهاز القومي لتنظيم الإتصالات
http://www.tra.gov.eg/arabic/News_NewsDetails.asp?PID=36&ID=155

الأربعاء، ١ أبريل ٢٠٠٩

Visual Studio Express vs Professional



Visual Studio Express
Visual Studio Express Editions are a set of free lightweight individual IDEs which are provided as stripped-down versions of the Visual Studio IDE on a per-language basis, i.e., it installs the language services for the supported languages onto individual Visual Studio Shell AppIds. It includes only a small set of tools as compared to the other systems - devoid of remote database support for data designer, class designer and several other tools and features as well as support for plug-ins. x64 compilers are not available for the Visual Studio Express edition IDEs. Microsoft targets the Express IDEs at students and hobbyists. Express editions also do not use the full MSDN Library but use the MSDN Express Library. The languages available as part of the Express IDEs are
Visual Basic Express
Visual C++ Express
Visual C# Express
Visual Web Developer Express
Visual Studio Standard
Visual Studio Standard Edition provides an IDE for all supported products and can support the entire MSDN library. It supports XML and XSLT editing, object test benches, and can create deployment packages that only use ClickOnce. However, it does not include tools like Server Explorer or include integration with Microsoft SQL Server. Visual Studio Standard can only consume Add-Ins for extensibility. Mobile development support was included in Visual Studio 2005 Standard, however, with Visual Studio 2008, it is only available in Professional and higher editions. Remote debugging support is included in Visual Studio 2008 Professional and Team Edition only.
Visual Studio Professional
Visual Studio Professional Edition includes the tools in Visual Studio Standard and augments it with other functionality such as Microsoft SQL Server integration (which allows databases to be created from within Visual Studio) and a remote debugger (for 2005 Editions) (that allows debugging a remote system from within Visual Studio debugger provided a debugging server is running on the remote system). Visual Studio Professional accepts all three extensibility mechanisms.
Suppose I have 4 developers:

- one developer uses Visual Studio 2005 Standard Edition
- one developer uses Visual Studio 2005 Professional Edition
- two developers use the Visual Studio 2005 Express Edition

Can all of them contribute to the *SAME* web project using their version of Visual Studio 2005?

Web Project, yes. But, this depends on what you call a web project.

Here are some issues:

1. If you are working multiple tiers
a) Professional
i. All projects in a single solution
ii. Full database support
b) Standard
i. All projects in a single solution
ii. Little data support, have to write more code
c) Express
i. Has to reference other projects without much help from IDE
ii. Little data support in the product

2- Can I use Visual SourceSafe 2005 to maintain this project?

Yes, but the Express developers will have to check out from VSS client and
not in the IDE.

3- can a project (written entirely with the Express Edition) be used in the Professional Edition, and vice versa?
Yes. The question comes down to whether you are writing 100% of your logic
in your web application or using multiple tiers. As mentioned above, Express
has no direct support for multiple projects in a single solution, so you
cannot debug all tiers in the product for an end-to-end debug
.