الأحد، ٣١ أكتوبر ٢٠١٠

Synch Framework vs. Gears


Microsoft Sync Framework
is a data synchronization platform from Microsoft that can be used to synchronize data across multiple data stores. Sync Framework can be used for offline access to data, by working against a cached set of data and submitting the changes to a master database in a batch, as well as to synchronize changes to a data source across all consumers (publish/subscribe sync) and peer-to-peer synchronization of multiple data sources
Unlike Gears, which Google launched in late May, Sync Framework's purpose is not only to provide a way to save data both locally and in the cloud -- a prerequisite for enabling a Web-based application to work offline.
"It's a general purpose tool. It's not just for applications, but also for services and devices," Carrabino said
According to the download site, Microsoft Sync Framework will enable "collaboration and offline scenarios for applications, services and devices." That includes P2P synchronization of relational databases, NTFS/FAT file systems and all sorts of data ranging from contacts to music, videos, and user settings

We're doing something different from Google, said Anthony Carrabino, a senior product manager for SQL Server. "Sync Framework is really a tool that lets developers build applications that can sync any data -- files, contacts, it could be anything -- over any type of protocol.



Google Gears
is software offered by Google that "enables more powerful web applications, by adding new features to your web browser. It allows some online files to be used offline

it's important to note that because the database portion of Gears is really just a client-side database accessible from javascript, there's nothing in Gears that specifies a specific server-side implementation, or even a specific server api. Thus, doing things like the data partitioning you describe are up to the developer, as is interfacing with the server in general


Several web applications from a variety of companies have used Gears at some point, including Google (Gmail, YouTube, Docs, Reader, Picasa for mobile, Calendar, Wave), MySpace (Mail Search), Zoho (Writer, Mail), Remember The Milk, and Buxfer.[15] WordPress 2.6 added support for Gears, to speed up the administrative interface and reduce server hits

References:
Microsoft launches Google Gears competitor
A quick overview of Gears
Microsoft: Sync Framework isn't Google Gears
wikipedia-Microsoft_Sync_Framework
wikipedia-Google Gears

الجمعة، ١٥ أكتوبر ٢٠١٠

Version Control Systems



Version Control System (VCS) is a software that allows to manage changes of documents, programs, images and other information that is stored in form of computer files.

Some popular Version Control Systems:
Subversion - cross-platform open source VCS with great User Interface implementations (TortoiseSVN is the most known implementation for Windows shell integration).
Git - open-source VCS for distributed development that does not require a central server, yet lacks a convenient UI.
Mercurial - yet another distributed open source version control system which is less popular than Git (5 times less popular, if you trust Google).
TFS - is a Microsoft product offering source control, data collection, reporting, and project tracking, and is intended for collaborative software development projects. It is available either as stand-alone software, or as the server side back end platform for Visual Studio Team System (VSTS).

Martin Fowler conducted the survey on 99 developers in his company ThoughtWorks and its the result
The results were this
:











































































































Tool

BestOKProblematicDangerousNo
Opinion
Active ResponsesApproval %

Subversion


20


72


6


1


0


99


93%


git


65


19


1


0


14


85


99%


Mercurial


33


27


2


0


36


62


97%


ClearCase


0


3


14


41


41


58


5%


TFS


0


0


32


22


44


54


0%


CVS


0


14


59


11


15


84


17%


Bazaar


1


13


3


0


80


17


82%


Perforce


1


26


16


1


54


44


61%


VSS


1


1


11


64


22


77


3%


الثلاثاء، ٨ يونيو ٢٠١٠

زوجتي ام حمزه



النهارده ان شاء الله وبعد كمية المقالات العلميه انا قلت عايز اطلع من قلبي حبة مشاعر واحاسيس

انا عايز اتكلم عن الحلم اللي بحلم بيه كل يوم تقريبا
قاعد انا وام حمزه في الصاله وحمزه واسماء عمالين يذاكروا واحنا بنراجعلهم دروسهم اكيد انت عرفتوا الموضوع هيبقي عن ايه؟

الموضوع هيبقي عن زوجتي ان شاء الله وانا بحلم بزوجه مواصفاتها كالتالي

ان تكون ملتزمه دينيا وده هيبقي ظاهر علي ملابسها طبعا تكون ملابس فضفاضه لا تشف والألوان طبعا تكون هاديه

ان تكون علي قدر علمي جيد حيث لا اشعر بفجوه في النقاش

ان تكون من اسره طيبه متوسطه الحال وان تكون مشهوره بالأدب وبالتردد علي المسجد والأب مشهور بالصلاح وان تكون الأسره خاليه من الأمراض الوراثيه

لا بد ان ام حمزه تكون راضيه تتقبل الأزمات الماليه وان تساعدني علي اجتياز المحن اي ان تكون خير معين

ياسلام بقي لو ام حمزه طلبت ان تنتقب يااااااااااااه وتساعدني علي الإلتزام طبعا ان هحاول اساعدها بحيث ننهض سويا الي الصلاح

اكتر حاجه تضايقني في البنات انهن يضيفوا ولاد علي الفيس بوك والمسنجر ود بيسمح بحدوث انهيار في الجانب الأخلاقي عند البنات

ان تشعر بالمسئوليه دوما اي لديها القدره علي حل المشاكل بسهوله ويسر

أن تبني البيت علي اساس ديني متين لا يتزعزع ابدا

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

الخميس، ٢٩ أبريل ٢٠١٠

HTML 5 -Bye Flash & SilverLight & Java FX


HTML5 is being developed as the next major revision of HTML (HyperText Markup Language), the core markup language of the World Wide Web.
It aims to reduce the need for proprietary plug-in-based rich internet application (RIA) technologies such as
Adobe Flash
Microsoft Silverlight
Sun JavaFX
Markup
HTML5 introduces a number of new elements and attributes that reflect typical usage on modern Web sites
new functionality through a standardized interface, such as the audio and video elements
The HTML5 syntax is no longer based on SGML despite the similarity of its markup
New APIs
The canvas element for immediate mode 2D drawing
Timed media playback
Offline storage database
Document editing
Drag-and-drop
Cross-document messaging
Browser history management
MIME type and protocol handler registration

Ref : http://en.wikipedia.org/wiki/HTML5

الأربعاء، ٢٤ مارس ٢٠١٠

SQL Injection



SQL injection is a code injection technique that exploits a security vulnerability occurring in
the database layer of an application

Example
SELECT * FROM users WHERE name = 'a';DROP TABLE users; SELECT * FROM userinfo WHERE 't' = 't';

If this code were to be used in an authentication procedure then this example could be used to force the selection of a valid username because the evaluation of 't'='t' is always true.

Reference : http://en.wikipedia.org/wiki/SQL_injection

الثلاثاء، ٢٣ فبراير ٢٠١٠

Anders Hejlsberg author of C# and Turbo Pascal



Anders Hejlsberg was the original author of Turbo Pascal, the chief architect of Delphi, and currently works for Microsoft as the lead architect of the C# programming language.

In 1996, Hejlsberg left Borland and joined archrival Microsoft. One of his first achievements was the J++ programming language and the Windows Foundation Classes; he also became a Microsoft Distinguished Engineer and Technical Fellow. Since 2000, he has been the lead architect of the team developing the C# programming language.

He received the 2001 Dr. Dobb's Excellence in Programming Award for his work on Turbo Pascal, Delphi, C# and the Microsoft .NET Framework.


الأحد، ١٠ يناير ٢٠١٠

Aspect Oriented Programming

In computing, aspect-oriented programming (AOP) is a programming paradigm in which secondary or supporting functions are isolated from the main program's business logic. It aims to increase modularity by allowing the separation of cross-cutting concerns, forming a basis for aspect-oriented software development.

AOP addresses the problem of cross-cutting concerns, which would be any kind of code that is repeated in different methods and can't normally be completely refactored into its own module, like with logging or verification. So, with AOP you can leave that stuff out of the main code and define it vertically like so:

function mainProgram()
{ var x = foo();
doSomethingWith(x);
return x;
}

aspect logging
{ before (mainProgram is called):
{ log.Write("entering mainProgram");
}

after (mainProgram is called):
{ log.Write( "exiting mainProgram with return value of "
+ mainProgram.returnValue);
}
}

aspect verification
{ before (doSomethingWith is called):
{ if (doSomethingWith.arguments[0] == null)
{ throw NullArgumentException();
}

if (!doSomethingWith.caller.isAuthenticated)
{ throw Securityexception();
}
}
}


And then an aspect-weaver is used to compile the code into this:



function mainProgram()
{ log.Write("entering mainProgram");

var x = foo();

if (x == null) throw NullArgumentException();
if (!mainProgramIsAuthenticated()) throw Securityexception();
doSomethingWith(x);

log.Write("exiting mainProgram with return value of "+ x);
return x;
}


There are two different ways AOP programs can affect other programs, depending on the underlying languages and environments:
(1) a combined program is produced, valid in the original language and indistinguishable from an ordinary program to the ultimate interpreter
(2) the ultimate interpreter or environment is updated to understand and implement AOP features.

The following are some standard terminology used in AOP:

  • Cross-cutting concerns: Even though most classes in an OO model will perform a single, specific function, they often share common, secondary requirements with other classes.
  • Advice: This is the additional code that you want to apply to your existing model.
  • Pointcut: This is the term given to the point of execution in the application at which cross-cutting concern needs to be applied.
  • Aspect: The combination of the pointcut and the advice is termed an aspect.
AOP has been implemented (in either the language itself or as external library) for the following programming languages & tools:
  1. Java AspectJ
  2. .Net framework (C# & VB.Net)
  3. C/C++
  4. PostSharp

الثلاثاء، ٥ يناير ٢٠١٠

PostgreSQL for Solaris 10


PostgreSQL for Solaris 10 is the open source enterprise database platform of choice, fully integrated into Solaris 10 with comprehensive support offerings from Sun.
Features
Open source, integrated, and included—for free
Performance-optimized and enhanced to take advantage of leading Solaris technologies
Supported by Sun
Reliable and highly available
Built to be secure by default
High performing and scalable under heavy loads

الخميس، ٣١ ديسمبر ٢٠٠٩

JDC2010 on 27th Feb 2010


Event : JDC2010
When:27th feb 2010
Where :Cairo International Conference Center
Organizers : EGJUG with contribution of DNB NGO
Fees:100 EGP

The JDC 2010 will discuss interesting topics which will add a lot for the Egyptian developers and enrich their skills. The topics of JDC:-
1- Rich Internet Application and Client
- JSF, JavaFX, Adobe Flex, JBoss Rich Faces ..etc
2- Enterprise Application Integration


Ed Burns is currently a Senior Staff Engineer at Sun Microsystems, Inc. At Sun, Ed leads a team of web experts from across the industry in developing JavaServer™ Faces Technology through the Java Community Process and in open source.

Hazem Saleh has six years of experience in JEE and open source technologies. He is an Apache MyFaces committer. He is the initiator of many components in the MyFaces projects such as Tomahawk CAPTCHA, Commons ExportActionListener, Media, PasswordStrength and others. He is the founder of GMaps4JSF (an integration project that integrates both Google Maps with Java ServerFaces) and Mashups4JSF (an integration project that integrates famous mashup services with Java ServerFaces). He is the author of the "The Definitive Guide to Apache MyFaces and Facelets (Apress)" book. He is an author of many JSF articles and a JSF public speaker. He is now working for IBM Egypt as a staff engineer. He is recognized as a SME (Subject Matter Expert) in web 2.0 technologies.

Cagatay Civici is the founder and project lead of popular PrimeFaces Component Suite, PMC member of open source JSF implementation Apache MyFaces and committer of Atmosphere Ajax Push/Comet Framework.

Mike Keith has been a distributed systems and persistence expert for 20 years, and has a great deal of teaching, research and development experience in these and many other areas

If you are waiting for JDC 2010 news, follow it on twitter http://twitter.com/egjdc
and check the website http://jdc2010.egjug.org

الاثنين، ٧ ديسمبر ٢٠٠٩

Egyptian developer got rank 4 in Google Code Jam 2009




Google Code Jam is a coding competition in which professional and student programmers are asked to solve complex algorithmic challenges in a limited amount of time. The contest is all-inclusive: Google Code Jam lets you program in the coding language and development environment of your choice


In 2009, total 8605 people competed. In the qualification round 5 out of top 10 participants were from US, 3 from Russia and 1 each from Egypt and Netherlands


Ahmed Ali who got rank 4
Egyptian devlopers also got rank 19(oa12gb),67(Naguib),76(Islam Diaa)
Participants who did 99 score from Egypt were 24 participants

Congratulation for all Egyptian developers

الاثنين، ٩ نوفمبر ٢٠٠٩

Alice Teaches Kids To Program


Computer scientists have found a way to make computer programming visual. Instead of using numbers, letters, and punctuation like other programming languages, Alice uses three dimensional figures placed in a storyline. Users select from a gallery of characters and backgrounds, then select the character's movements through a pulldown menu.
Alice is an educational software that teaches students computer programming in 3D environment.

Sun Microsystems presented its 2009 Duke’s Choice Award for Java Technology in Education to Carnegie Mellon’s innovative Alice software system during the JavaOne conference at San Francisco’s Moscone Center

You can download Alice 2.2, Alice 2.0 Designed for High School and College and Storytelling Alice Designed for Middle School

الثلاثاء، ٣ نوفمبر ٢٠٠٩

Intro to GIS By Thabet

This my first presentation in GIS and it focus on developers specially to know what benefits of using GIS in our life ?
I did my greatest efforts to create this presentation to do the task I want.

الاثنين، ١٩ أكتوبر ٢٠٠٩

You've got to find what you love-Steve Jobs



Steve Jobs is an American businessman, and the co-founder and chief executive officer of Apple Inc. Jobs previously served as CEO of Pixar Animation Studios & NEXT.

I attached here his video in

Stanford Commencement 2005 about his 3 real stories
1-Connecting to dots
2-Love & Lose
3-Death


also I attached here the text here
http://news-service.stanford.edu/news/2005/june15/jobs-061505.html

السبت، ١٠ أكتوبر ٢٠٠٩

Google Wave

Google Wave is "a personal communication and collaboration tool" announced by Google at the Google I/O conference on May 27, 2009. It is a web-based service, computing platform, and communications protocol designed to merge e-mail, instant messaging, wikis, and social networking.It has a strong collaborative and real-time focus supported by extensions that can provide, for example, robust spelling/grammar checking, automated translation between 40 languages,and numerous other extensions.Initially released only to developers, a "preview release" of Google Wave has been extended to about 100,000 users on September 30, 2009.


الاثنين، ٢٤ أغسطس ٢٠٠٩

EnterpriseDB


EnterpriseDB:
is a privately-held company that provides enterprise class support for PostgreSQL through its product Postgres Plus Standard Server, an open source relational database management system (RDBMS) built as a superset of PostgreSQL with additional open source packages and targeted for the enterprise market

Benefits of EnterpriseDB
-1
EnterpriseDB is a reliable, accountable company - not a loosely organized community of developers - from which customers can acquire the database and associated services
2-
EnterpriseDB has extended PostgreSQL to enable it to run database applications written for Oracle
3-
EnterpriseDB has significantly increased PostgreSQL's run-time performance
4-
EnterpriseDB provides professional-quality tools for use with the databas.

الخميس، ٢٠ أغسطس ٢٠٠٩

Crystal Report with PostgreSQL




Problem:
I want to create reports from PogreSQL DB, But when I used a crystal report wizard I couldn't find PostgreSQL from available DataSources

Solution:

Check my post @ C# Corner Crystal Report with PostgreSQL using dataset

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

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