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

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