Pull over Mario


This is available as a T-Shirt from Teefury.com

Typechart lets you flip through, preview and compare web typography while retrieving the CSS.

Joel Spolsky writes quite possibly the best tech article I’ve ever read. It’s easy to read, it’s funny and it teaches you something – something that seems complicated when you read about it elsewhere – and makes it seem easier than falling off a log.

How many software developers does it take to change a light bulb?
10
One to change it and one to supervise.

Firstly, an example of querying a single table using the JPA Query Language (JPQL). Assume in all example that the em object is an instantiated EntityManager.
Query q = em.createQuery( "select c from Customer c" ); List<Customer> list = q.getResultList();
Here we have an entity called Customer, which represents our underlying customer table in our database. The above query selects all rows from the customer table. The resulting List could be used like this:
for (Customer cust : list)
{
System.out.println( "customer's name = " + cust.name );
}
We can iterate over the List and print the name value from each Customer entity.
Now, assuming we want to read from the customer and store tables in a single query but they have no foreign key relationship. Our query would now be:
Query q = em.createQuery( "select cus, st from Customer cus, Store st where cus.visited = st.name" ); List<Object[]> list = q.getResultList();
The query looks similar but we name the Customer and Store entities and define the join with the where clause. To use the ResultSet List is now also a little different as the List no longer contains Customer objects, each element is now an array containing a Customer and a Store. We can use it like:
for (Object[] objects : list)
{
Customer cust = (Customer)objects[0];
Store store = (Store)objects[1];
System.out.println( "Customer's name = " + cust.name );
System.out.println( "Store's address = " + store.address );
}
This technique is useful when creating HTML tables of search results that span across multiple tables that don’t have foreign keys to easily join them.

Cheat sheets has several benefits from saving you a lot of time to also helping you improve your skills and productivity in that certain task.
They provide a great and quick reference and also helps your learn faster by showing all the necessary information needed. There are documentations, but they can sometimes be a hassle.
It is pretty hard to remember everything and thankfully, there are cheat sheets. So, here are the list of some of the most essential cheat sheets every web developer and designer should have.
The cheat sheet list on Pro Blog Design.


Hirsute History – Shirts featuring the hair of famous people. Not like ‘Britney’ famous, more like important. Well, mostly. Oh, and some beards too.

If you are creating JSF pages and are getting an error like this:
java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@2c02699b not expected type. Expected: javax.faces.component.UIData. Perhaps you're missing a tag? com.sun.faces.taglib.html_basic.DataTableTag.setProperties(DataTableTag.java:265) javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:604) javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1126) com.sun.faces.taglib.html_basic.DataTableTag.doStartTag(DataTableTag.java:372) org.apache.jsp.steve_jsp._jspx_meth_h_005fdataTable_005f0(steve_jsp.java:125) org.apache.jsp.steve_jsp._jspService(steve_jsp.java:83) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408) com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
Then you need to make sure that you are surrounding your database-aware JSF controls with a <f:view></f:view> pair.
As a simple fix add <f:view> before the <html> tag and </f:view> after the </html> tag.

The revolution in scientific publishing that has been promised since the 1980s is about to take place. Scientists have always read strategically, working with many articles simultaneously to search, filter, scan, link, annotate, and analyze fragments of content. An observed recent increase in strategic reading in the online environment will soon be further intensified by two current trends: (i) the widespread use of digital indexing, retrieval, and navigation resources and (ii) the emergence within many scientific disciplines of interoperable ontologies. Accelerated and enhanced by reading tools that take advantage of ontologies, reading practices will become even more rapid and indirect, transforming the ways in which scientists engage the literature and shaping the evolution of scientific publishing.

This site walks you through creating a Pong game for J2ME-enabled mobiles. Starting with setting up your development environment, through to deploying the thing.
Have you ever wanted to program a game, but did not know where to start? Or have you wanted to program a game for mobile phones, but found the introductions provided by SUN, Nokia and other more confusing than enlighting? Then you’ve come to the right place.
This course takes you through every single step required to program your own J2ME game (that is, a game for mobile phones).