2009-09-02

A great article about JSF 2

I found a great article on the JSF 2 Spec (the View technology of choice for the Java EE 6 stack) and what's new/updated from JSF 1.2.

It serves as an overview to the new features in the JSF 2 and not as a comprehensive review of a single feature, it covers:

  • The inclusion of the Facelets technology in the JSF standard and the View Declaration Language
  • The composite components (or construct-your-own-component-without-major-hassle)
  • New standardized Ajax support and the Ajax request lifecycle management
  • The (inspired by Apache MyFaces Trinidad) partial state saving
  • New system events
  • Improved navigation system
  • GET requests improved support and the view parameters
  • The (Seam-inspired) additional scopes (View/Flash/Custom Scopes)
  • The new (and much awaited) Managed Beans annotations
  • New project stage declaration (for separation between production and development stages)
  • The new client behaviors
  • New bean validation system and the new validators
  • Improved error handling
  • Resource Loading

The article is available here What’s New in JSF 2 by andyschwartz

2009-08-26

تخاريف واحد مبسوط حبتين




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

لإن أنا مبسوط.

منقول من مدونة حكواتي الصورة بتاعة عمرو سلامة

2009-08-18

Geomtry Kernels in AEC/BIM field

A geometry kernel is the core of any modeling software, it is simply the part of the program that understands geometry and the relationships of the various entities the program allows you to draw (let it be a 2D line, rectangle, polygon, or a 3D cube, 3D polygon, face, mesh or that cool NURBS object you had been creating for 3 days).

The geometry kernel is an indicator of the robustness of the modeling software.

Some of the kernels used by key players in the CAD/AEC/BIM and MCAD field:

  • Autodesk AutoCAD: Autodesk Shape Manager (ACIS based)
  • Autodesk Revit: Proprietary kernel from earlier versions of Revit
  • NNA Vectorworks 2009: Siemen’s Parasolid
  • NNA VectorWorks 2008 (and earlier): IntegrityWare Solids++
  • Graphisoft ArchiCAD: Spatial’s ACIS
  • Bentley Microstation: Siemen’s Parasolid
  • PTC Pro/ENGINEER: Proprietary kernel (with Parasolid for compatability)
  • CATIA: Proprietary kernel (with Parasolid for compatability)
  • Dassault SolidWorks: Siemen’s Parasolid (despite owning the ACIS maker)

Articles About the usage of geometry kernels:

http://architosh.com/2008/09/architosh-talks-to-dr-biplap-sarkar-about-parasolid/

http://www10.aeccafe.com/nbc/articles/view_weekly.php?articleid=594268

http://aec.cadalyst.com/aec/Review%2C+AEC+Software/ArchiCAD-12-Cadalyst-Labs-Review/ArticleStandard/Article/detail/556437?contextCategoryId=6574

http://discussion.autodesk.com/forums/message.jspa?messageID=5236836

http://www.dezignstuff.com/blog/?p=2281

2009-07-18

Oracle to Buy Sun, a second look

For some time now, I've been learning parts of the Java Enterprise Edition platform, and what I've seen is a great platform that can be the best-in-class if used properly and if it was easier to learn.

But what I find so much interesting is the multitude of frameworks in the market, two different presentation layer standards (JSP and its successor JSF), many different JSF extension frameworks (Apache MyFaces Tomahawk, Sun Woodstock, ICEfaces, JBoss RichFaces, Apache MyFaces Trinidad, Oracle ADF Faces), other not-in-the-specification frameworks (Tapestry, Struts, Apache Wicket, GWT, Spring MVC and others), many implementations of the JPA standard (the de-facto standard Hibernate, the JPA2 reference implementation EclipseLink, the Oracle TopLink, OpenJPA, and others), many Servlets containers (Tomcat, Jetty and commercial offerings) and various EJB containers, the complete enterprise applications building frameworks as Spring, Seam, and many others.

And that's just for the parts I explored so far.

Also the desktop front suffers from less overlap/duplication with 2 GUI widgets framework (the Java standard Swing, and the IBM/Eclipse influenced SWT framework) and their respective applications framework (the Swing Application Framework and the Eclipse Rich Client Platform).

The same is true in the IDEs front, we just don't have 2 major IDEs (Eclipse and NetBeans), but we have many commercial IDEs built over the Eclipse foundation (many of the IBM Rational offerings, RedHat/JBoss Developer Studio, Embarcadero/Borland JBuilder), some commercial offerings (most notably the IDEA IntelliJ) and the Oracle free (but less fair to play with the market standards) JDeveloper.

At first I just thought that is a waste of brain cycles and time of a talented and very smart community, and not just how many things has been done and redone and then-again redone, it is just plain confusing to try to learn or even design an application while taking in consideration the pros and cons of each framework/standard/application/library and presents a real challenge for a topic that could be easier to penetrate and learn, also such duplication creates many different-and-separated camps of experienced developers in the market.

But then I found that the real reason all these people are still in the Java camp is because of the ability to do things just as you want it (just think of any barely-reasonable way to do enterprise applications and chances are that a framework is out there waiting for you to be used) and the many different ideologies behind each framework (ranging from heavily-closed source and commercial frameworks to BSD-style open source frameworks) and that the ability of the Java community to re-invent the wheel when desired easily a key feature for the backing of virtually all the big software companies in the world (except Microsoft of course, not because it was uninterested, but because it wanted to play it too-hard with the market).

How such community will be affected by the Oracle acquisition is yet to be seen, but I'm not so optimistic as before, the Java EE may grow better under the Oracle umbrella, but it may be less free and less open to the community, which is exactly what the Java EE community doesn't need, the backing of the various software companies and open source communities what makes Java a market leader and the biggest player in the enterprise applications market.

I hope that Oracle understands the chemistry between Java and freedom (or it keeps enough Sun executives to keep such freedom possible) and that only a multiplayer game is a game worth playing.

2009-07-03

New Global DEM released from METI and NASA

The Ministry of Economy, Trade, and Industry (METI) of Japan and the United States National Aeronautics and Space Administration (NASA) at 29th of June jointly released Version 1 of the ASTER (Advanced Spaceborne Thermal Emission and Reflection Radiometer) Global Digital Elevation Model (GDEM).

Some information about the ASTER instrument:

  • Building Agency: METI of Japan
  • Carrier Spacecraft: USA NASA’s Terra
  • Launch date: December 1999
  • Stereoscopic capability: Along-track (no need to pass multiple times over the same area to collect stereo image data)
  • Bands available for DEM generation: VNIR (near infrared spectral band)
  • DEM base-to-height ratio: 0.6
  • Spatial resolution: 15m in the horizontal plane
  • Single ASTER VNIR scene size: About 60 km-by-60 km ground area (4,100 samples by 4,200 lines)
Some information about the ASTER GDEM:
  • Land surface coverage: between 83°N and 83°S
  • Grid cell size: 1 arc-second (30 m)
  • Tiles Format: GeoTIFF
  • Number of tiles: 22,600
  • Single tile size: 1°-by-1°
  • Coordinate System Type: Geographic (Lat/Long coordinates)
  • Earth Model: WGS84/EGM96 geoid
  • Collection Date: 2000-2009
  • Vertical accuracy estimate: 20 meters (at 95 % confidence)
  • Horizontal accuracy estimate: 30 meters (at 95 % confidence)
  • Area of missing data: Areas with constant cloud coverage

This mission is remarkable because it involved the automated processing of the entire 1.5-million-scene ASTER archive, it took approximately one year to complete production of the beta version of the ASTER GDEM using a fully automated approach.

The process included:

  1. Stereo-correlation to produce 1,264,118 individual scene-based ASTER DEMs
  2. Cloud masking to remove cloudy pixels
  3. Stacking all cloud-screened DEMs
  4. Removing residual bad values and outliers
  5. Averaging selected data to create final pixel values
  6. Correcting residual anomalies
  7. Partitioning the data into 1°-by-1° tiles.

Previously, the most complete Global DEM publicly available was the SRTM (Shuttle Radar Topography Mission), it has an 80% land coverage (between 60°N and 57°S). The ASTER GDEM expands coverage to 99%; also the SRTM data has a grid cell size of 3 arc-seconds (90 m) outside of the USA borders, despite being captured at 1 arc-second, it was later averaged before being publicly released.

I hope that NASA would release the full resolution 1 arc-second data of the SRTM DEM globally to augment the ASTER GDEM data and allow for a unified DEM which benefits from the ability of the Radar to collect data in the places constantly covered by clouds.

I currently don't know the shoreline data used to outline the DEM data, but I hope they release it as well or use a publicly available one, such as the NGA Prototype Global Shoreline (PGS) data.

A good technical page about the new ASTER GDEM can be found here.

METI and NASA marks version 1 of the ASTER GDEM as “experimental” or “research grade”, but the size and accuracy of the data makes such an initial release a very good step toward a highly enhanced and accurate Global DEM very near.

Download sources:

I will post shortly about my experience with the download of the new GDEM and its estimated size and usage characteristics.

Sources and News Coverage:

2009-06-16

JDeveloper and Oracle Java

I've started to use JDeveloper the last few days, and as a Java novice that is drowning in the sea of acronyms and the multitude of implementations in the market of Java Enterprise Edition, I find the JDeveloper as the solution to any Java Developer looking for an Oracle-centric IDE (that is half open and half tightly-coupled with various Oracle flagship applications).

As Oracle will now have the upperhand in the Java world, I assume that going the Oracle way would not bring the best value to the Java EE applications, but would bring the best integration of the various Java technologies.

2009-05-14

ضد حجب الحريات بإسم الأخلاق

صحيت الصبح علي الخبر الجميل ده ... إصطبحا و أصطبح الملك لله.

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

أعتقد إن الموضوع واضح .... موقع الإخوان المسلمين موقع إباحي (ماهو إللي بيحرضك تعمل حاجات عيب في الشارع بتخل بالأمن العام) و موقع حزب الغد موقع إباحي هوا كمان (دول بيزوروا التوقيعات يابا ... مش هايعلموك قلة الأدب!) و أي موقع بيتقال فيه كلمة حرة إباحي (يالهوي ... ده بيقول حرة) و إي موقع بيتكلم عن مقاطعة (إنت عايز أمريكا هيا إللي تعمل معانا حاجة قلة أدب) أو عن حق ضايع (يا عم قضيها ... هوا حد لاقي حق أصلاً لما يبقي فيه حبة منه ضايعين) يبقي هوا كمان موقع إباحي.

بس انا أحب أقولهم إن إللي بيستحل حريتي بإسم الأخلاق هوا إللي بيعمل حاجة قليلة الأدب فعلاً و هوا ده إللي المفروض أحجبه من حياتي و أتخلص منه و من تأثيره. 

2009-05-12

يالليل من الحب صاحى

يالليل من الحب صاحى .. ومن الشقا نعسان
على كل طوبة ندى .. وشذى وأمل أنسان
من الضلام فى الضى ومن العطش فى الرى
من ألف حى وحى
من ألف عام وانا عايش فى الزمان الجاى
يالليل من الحب صاحى .. ومن الشقا نعسان

--فؤاد حداد

أنا غالباً سمعتها قبل كده في حفلة من حفلات وجية عزيز الخمستاشر إللي أنا حضرتهم لحد دلوقتي (في ثلاثة أربعة لوحدي ... و إثنين مع كريم و واحدة مع شوقي و ثلالة أربعة مع لميس و واحدة مع راتب) بس  مافتركتهاش غير لما عم مهدي قالها و هوا في مصر من إسبوع كده ... ربنا يجيبه بالسلامة

2009-05-05

Finished my first step in Oracle

I've just finished my first 2 Day Guide to Oracle Administration (or 2 Day Oracle DBA), I've managed my first Oracle Installation and gone over all the steps, but this beast is too big to grok anytime soon, and I assume I'll need some months (to speak optimistically) to gain an entry-level knowledge of this platform, but I think it is worth the effort.