Wednesday, February 29, 2012

mojarra or myfaces

Why do I need more jars if I use MyFaces?

Because those dependencies are not bundled in MyFaces. On the other hand, if you're using other libraries from Apache.org which also use those dependencies, then you ultimately end up with smaller total size libraries.


Should I prefer Mojarra as lighter

This is a non-argument. You should look at how robust and well maintained the JSF implementation is.

The grandfather of Mojarra, Sun JSF RI 1.0, and the early versions of RI 1.1 were cluttered by nasty bugs. At that moment (around 2004-2006), MyFaces was definitely the more stable alternative.

Since 1.1_02 and 1.2_02 around early 2006 the new Sun/Oracle JSF dev team did great work. Not only with bugfixing, but also with performance enhancements. About halfway the Mojarra 1.2 lifetime (around 2007-2009), Mojarra was the better choice than MyFaces.

Right now, with Mojarra 2.0/2.1, one can't really say beforehand which one is better. Bugs often expose only later and robustness can only be evaluated during the aftermath. Just pick whatever implementation you "feel" is the best. Browse through their issue reports (MyFaces and Mojarra) to learn about the previously fixed issues and the currently open issues. If you encounter a specific bug, try with both implementations to exclude the one and other. Report if necessary to keep the overall quality of the both implementations high.


At first view, both JSF implementations (MyFaces and Mojarra) do the same, because they are based on the same standard. The fact that you can change from one implementation to other is a fact of the quality of JSF standard spec.

But on the bottom there is a lot of reasons why MyFaces Core 2.x is better than Mojarra. Note I'm a committer of MyFaces project, so I'll give you here just my point of view:

  • A lot of issues has been fixed. Only in 2.0.x branch from 2.0.0-alpha to 2.0.7 it has been closed 835 issues. This gives a "raw" measure of how many contributions and feedback has been provided by the community over the time. This is the numbers for closed issues over the time: 2.0.0-alpha: 274, 2.0.0-beta: 58, 2.0.0-beta-2: 41, 2.0.0-beta-3: 39, 2.0.0: 51, 2.0.1: 148, 2.0.2: 77, 2.0.3: 63, 2.0.4: 23, 2.0.5: 27, 2.0.6: 29, 2.0.7: 5.

  • Community over code: MyFaces community counts with a lot of folks with outstanding knowledge on JSF. Suscribe to user and dev mailing list are the best way to know what's going on, receive feedback and know other people interested in JSF. See MyFaces Mailing Lists

  • Apache is well known to take everything from Sun/Oracle and make it better. In this case, MyFaces Core has some cool optimizations over partial state saving, composite components and much more!.

  • MyFaces Core is OSGi friendly. It provides some SPI interfaces to deal with special setups, when you need more control over classloading.

  • MyFaces Core has better compatibility with facelets 1.1.x!. Just set org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS web config param to true, and a special mode will be activated. No c:if tags or c:forEach or ui:include broken anymore!.

  • MyFaces has other projects (Trinidad, Tobago, Tomahawk, ExtVal, CODI, Orchestra, PortletBridge RI, ....) that helps keep code tune up, because all those projects test against MyFaces Core, and if there is a bug, it is handled more quickly.

  • You can checkout using svn and build easily any MyFaces project, because all of them maven based and most IDEs provides maven support.

  • Mojarra at the current time (JUN 2011) has some nasty bugs related to state saving, that MyFaces does not have because its implementation is completely different. In fact, MyFaces partial state saving algorithm offers better compatibility with JSF 1.2 state saving than Mojarra. But note Mojarra guys are working on that, but fix that will take them months, even years.

  • Innovation happens on MyFaces.


    I recently started a JSF 2.0 project using Myfaces and Primefaces. Last week, to investigate a bug, I tried to run it on Mojarra. All it took was exchanging the JARs and removing Myfaces-specific entries in web.xml - and everything worked without any problems. Admittedly this was a prototype that doesn't use all of the JSF functionality, but I was quite impressed by this demonstration of compatibility via standards compliance.

    Why do I need more jars if I use MyFaces?

    • myfaces-impl and myfaces-api JARs are the equivalent of Mojarra's jsf-impl and jsf-api.
    • myfaces-bundle contains both of these for convenience, you need either this or the other two, not all three.
    • commons-* are libraries that contain useful basic functionality for dealing with collections, Java beans, etc. that one would otherwise have to reimplement (probably slower and with more bugs). Many other projects use these as well.

Mojarra vs. MyFaces performance

Hello and welcome.

Since Andy Schwarz posted following link in the MyFaces mailing list, with especially page #73 showing MyFaces in a relatively bad light compared to Mojarra without any further data given, I have become curious where we really stand. I could not believe the diagram shown here, because it did not resemble my personal day to day experience (the entire numbers shown also the html size etc..) seemed like a rather old build of MyFaces probably around 2.0.2-2.0.4.

My personal assumption was that the implementation used was a rather old MyFaces version.
We have made major performance improvements between 2.0.4 and the current snapshot version which is 2.1.4-SNAPSHOT and 2.0.10-SNAPSHOT and Mojarra on version 2.1.2.

So here is my test setup. I basically took an existing integration test suite I have had developed the last month and added client side timestamp performance measurements.
By comparing the succeeded tests on both platforms under identical conditions you can get a good overview over the client side and server side performance numbers of both implementations.

Both tests were run in Production mode which resembles a live system under the same setup, with all optimisations on, a Maven Jetty configuration was used as servlet runner. Test browser was the latest Mozilla Firefox, but on other browsers the results are pretty similar.


So here are the numbers:

TestcaseMyFaces (ms)Mojarra
1. JSF Protocol Tests239207
2. Full Body Replacement4235
3. Multi form situation41344426
4. Testing for decorated api calls2434
5. Double Eval Detection20472060
6. Table Test, replacement of table elements72899229
6. Partial Page Rendering Nav Case21682308
7. Event Lifecycle test130131


Tests 1 and 2 are pure servlet based tests so they give a good indication about the javascript performance differences, which are roughly in a 10% margin. (with MyFaces being somewhat slower, but that is understandable given the extra functionality provided and the testing framework influencing slightly the performance of myfaces but not Mojarra (an issue already fixed))

The rest of the tests are slightly ahead of Mojarra, so the server seems to be under the same test setup conditions slightly ahead of Mojarra, here also in a 10-15% range.

On the page rendering side however the generated code from Mojarra seemed to be about 5-10% smaller than MyFaces´s code. The difference used to be much bigger but some improvements have been made in this area as well on our side.

To sum this up, performancewise you definitely cannot go wrong with any of both implementations.
And none of both implementations has a significant performance advantage over the other.

But back to the original article.

I really would like which version the authors used to come to their conclusion on page #73 and how it would look like with the latest codebase.

Sunday, February 26, 2012

More universities combine MBA, legal programs

Maricelle Ruiz-Calderon • March 04, 2011

An increasing number of contemporary politicians have graduated from JD and MBA programs. U.S. President George W. Bush and Bush Administration Treasury Secretary Henry Paulson graduated from Harvard Business School. President Barack Obama graduated from Harvard Law School, while Secretary of State Hillary Clinton is an alumna of Yale Law School.

Law and business degrees are not only great assets if you plan to become a politician, but also if you strive to succeed in a world where legal and financial matters increasingly intermingle. As a result, more universities are combining JD and MBA programs, and some are even reducing the time it takes to complete dual law and business school degrees.

"I knew coming in that I wanted to practice corporate law, and the complementary MBA and JD degrees offered by this School of Management program have helped me reach my goal," Brett Church, a 2009 MBA and JD graduate, says at the Boston University site. "The MBA program increased my financial literacy, such that I feel confident discussing complex business concepts with clients and associates."

Combining JD and MBA degrees not only provides an added edge. It should also expand professional opportunities and boost the salaries of graduates.

Legal and MBA programs

About 42 schools throughout the United States combine legal and business school education, according to The Wall Street Journal. Among the universities providing dual law and business degrees are:

  • Columbia University
  • Boston University
  • Northwestern University
  • Yale University
  • University of Pennsylvania
  • Stanford University

Columbia University has been one of the latest schools to reduce the time to complete the JD and MBA degree from four to three years to allow students to join the job market faster. The first three-year law and business school class at Columbia should begin classes in August 2011.

Students interested in simultaneously attending JD and MBA programs must submit two applications at the same time, one to Columbia Law School and another one to Columbia Business School. Although the schools may consult with each other during the evaluation of applications, at the end of the process, each makes an independent decision based on its own admission criteria. Students accepted into the JD and MBA programs should spend their first and third years at Columbia Law School and their second year at Columbia Business School. Courses could include: Corporate Finance, Capital Markets & Investments, Deals, and The Law, Economics and Regulation of Executive Compensation.

Lawyers could pursue business school training through masters of law or mini MBA programs, as well.

Concord Law School offers exclusively online the Small Business Practice LLM, a master of law degree focused on small business matters. Core courses include Regulation and Finance in Starting and Growing a Small Business, Electronic Contracting and E-Commerce, Taxation of Small Businesses and Succession Planning.

Combining law and business school training is also popular overseas. Starting in 2011, the Sorbonne Law School and INSEAD should offer a nine-month LLM for business lawyers in Paris and Singapore, according to the Financial Times article "Insead resorts to the law."

As a minimal example, the Association of Corporate Counsel and Boston University School of Management offer a three-day Mini MBA for In-house Counsel seminar. Topics include Corporate Finance, Financial Accounting for Lawyers, Risk Analysis and Management Skills for In-house Counsel.

Law and business school careers

The Bureau of Labor Statistics (BLS) reports that the employment of lawyers in the United States is expected to grow 13 percent between 2008 and 2018 due to population and business growth. Bankruptcies, corporate and security litigation, antitrust cases and mediation and dispute resolution should keep lawyers busy. Experienced lawyers specialized in areas, such as tax, patent and maritime law could also do well.

Organizations interested in lawyers with business school training could include:

  • Government agencies
  • Federal, state and local courts
  • Urban and suburban law firms
  • Banks, insurance and real estate companies
  • Other large corporations

As of May 2009, the median annual wage for lawyers in the United States was $113,240. The highest-paid lawyers worked in the energy and technology industries or represented public figures and lived in D.C., New York, Delaware, California and Georgia.

Business lawyers trained by the Sorbonne and INSEAD, meanwhile, are expected to become chief financial officers or managers at large companies.

"The LLM is going to be more like the MBA in the global market," José Maria de Areilza, dean at Spain's IE Law School, tells the Financial Times. "Law schools are talking more to business schools."

J.D./M.B.A.

From Wikipedia, the free encyclopedia

A J.D./M.B.A. or M.B.A./J.D. is a dual degree program offered jointly by many law and business schools. The program generally lasts four years (saving one year over completing both degrees separately) and results in the candidate earning both a Juris Doctor degree and a Master of Business Administration degree. Many schools including Northwestern University,[1] Cornell University, Yale University, Columbia University,[2] and the University of Pennsylvania[3] have begun to offer three year programs (saving two years). Students may apply to the joint program before matriculating to either program, or after matriculating to either law school or business school.[4] Graduating J.D./M.B.A. students may choose to practice law, or enter the business world. Even though a majority of JD/MBAs graduate from a single university, there are people who earn these degrees from different universities.[citation needed]

Some prominent law firms, like Goodwin Procter and Paul Hastings, give generous signing bonuses (e.g., $20k[5][6]) to incoming first-year associates who hold JD/MBA degrees. In fact, Goodwin Procter has launched a "JD/MBA initiative" to attract more JD/MBA applicants.[7]

The University of Hong Kong offers a BBA/LLB program at the undergraduate level (and a similar BSocSc (Government and Law) and LLB program).

See also

References

  1. ^ "Kellogg School of Management JD-MBA Program". Retrieved 2011-05-13.
  2. ^ "Columbia Law School". Retrieved 2011-05-13.
  3. ^ "The Wharton MBA Program, MBA/JD". Retrieved 2011-05-13.
  4. ^ "When To Apply for a JD/MBA". University of Chicago JD/MBA Association. 2010. Retrieved 2010-08-04.
  5. ^ "Goodwin Procter Careers, Law Students, JD/MBA". Goodwin Procter. 2008. Retrieved 2008-11-12.
  6. ^ "Paul Hastings Career Center FAQ". Paul Hastings. 2008. Retrieved 2008-05-12.
  7. ^ "Goodwin Procter Careers, Law Students". Goodwin Procter. 2008. Retrieved 2008-11-13.


Tuesday, February 21, 2012

How To Install Ubuntu Linux on your HP TouchPad?

AUGUST 24, 2011

in GADGETS, HOW TO

With the demise of webOS, all HP TouchPad owners are looking at various options to make their devices worthwhile. Work is already on way to root Android to the TouchPad. If your unwilling to wait till then and also a Linux fan, you could very well install Ubuntu Linux on your HP TouchPad.

Ubuntu Linux How To Install Ubuntu Linux on your HP TouchPad?

Ubuntu is an Open Source Operating System and the advantage with installing Ubuntu on your TouchPad is that you could dual-boot both webOS and Ubuntu Linux on your TouchPad.

Also Check: Android to port on HP TouchPad soon!

Also Check: HP TouchPad Android Installation Guide

Follow the steps below to install Ubuntu Linux on your HP TouchPad:

1. Install Preware

Preware is a collection of free homebrew applications, patches, themes and kernels for your webOS devices. With Preware you could install any of the open standard package repositories on preware.org. The current version of Preware is 1.6.3.

You can use any of the following methods to install Preware on your HP TouchPad:

  1. Installing Preware using the Official HP/Palm SDK

  2. Installing Preware with WebOS Quick Install

  3. Installing Preware with the Standalone Installer

  4. Installing Preware from the Commandline

Detailed instructions of the various methods to install Preware on your HP TouchPad can be found here.

2. Install ext3fs with Meta-Doctor

You will need to create a 2 GB partition to install Ubuntu Linux on your TouchPad. To do this you will need to install ext3fs with Meta-Doctor. For more information on Meta-Doctor and its installation go here.

You can use Meta-Doctor to create a ext3fs partition by using the following command:

EXT3FS_PARTITION_SIZE = 2GB
(Note: It is 2 GB in this case, you could specify any size depending on your requirements)

Now, your partition will be found at /media/ext3fs on device.

3. Mount ext3fs partition at device boot

You need to have the ext3fs partition mounted at device boot. To do this:

Create folder at /media/ext3fs using:

mount -o remount,rw /
mkdir -p /media/ext3fs

Use only /media/ext3fs as the location because only then Ubuntu 11.04 Chroot will be able to find it.

Edit the fstab file to set it up to mount at bootup using:

mount -o remount,rw /
echo "/dev/mapper/store-ext3fs /media/ext3fs ext3 noatime,data=writeback 0 0" >> /etc/fstab

Now to mount ext3fs at bootup use:

mount -a

4. Install Xecutah, XServer and Ubuntu 11.04 Chroot

Enable WebOS Internals Testing Feeds.

From Preware install Xecutah, XServer and Ubuntu 11.04 Chroot.

Run XServer and this will open a XServer window. Now, return to Xecutah and tap Ubuntu 11.04 Chroot. Return to XServer window and you will see a Ubuntu command prompt. Use “apt-get install” to install apps from Ubuntu.

This is it and now, you are ready to run Ubuntu on your HP TouchPad.

Note: Amazon still has HP TouchPad 16 GB and HP TouchPad 32 GB in stock.

Check: XAMPP for Ubuntu Download

Do tell us about your experiences on installing and running Ubuntu Linux on your HP TouchPad.

Source1 | Source2