Monday, 19 July 2010
Comments on Applied Numerical Analysis, by Curtis F. Gerald, Patrick O. Wheatley, 3rd Edition
On the dark side, there are no proofs of theorems, which are of theoretical interest, especially to the mathematicians.
All in all, the book is a huge success, now at the 7th edition, suitable for engineers, or readers fond of the practical view of mathematics.
Comments on Numerical Solution Of Partial Differential Equations: Finite Difference Methods, 2nd Edition by G.D. Smith, Oxford Press
On the dark side its second edition, (1977) which I have studied, has no unsolved exercises, problems or any questions to reinforce learning and apply the theoretical techniques. Moreover, the book is not accompanied by any program or source code for tools such as Matlab or Mathematica.
All in all, the book is a success, now in its 3rd edition. Its main readers should be mostly students of mathematics, but not of engineering.
Tuesday, 13 July 2010
Getting the current date in your model layer
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
java.util.Date date = new java.util.Date();
String datetime = dateFormat.format(date);
System.out.println("Current Date Time : " + datetime);
In case you use ADF business components for your Model project, you get the
current date in a slightly different way. Consider for example the following code snippet,
from an adf business components, employees entity object:
import oracle.jbo.domain.Date; ...
In case you need to convert oracle.jbo.domain.Date to java.util.Date, please consult this:
http://forums.oracle.com/forums/thread.jspa?threadID=2185902&tstart=15
or
http://www.ecotronics.ch/webdesign/javadate.htm
References
More help about: using timestamps
http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html
Comments on Oracle XSQL, by M.Thomas
All in all, the book can be well used as a reference, provided that several corrections need to be made by the reader, in both its source code and text.
Monday, 12 July 2010
JDeveloper 11g:Using Log4j in EJB projects
All that 's written there is still valid. I would like to add a couple of things. First, you need to create the log4j.properties file in the following path:
C:\...\Model\src\
A copy of the log4j.properties file is given here for your convenience:
# **Set root logger level to DEBUG and its only appender to A.
log4j.rootLogger=DEBUG, A
# ***** A is set to be a ConsoleAppender.
log4j.appender.A=org.apache.log4j.ConsoleAppender
# ***** A uses PatternLayout.
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Secondly, when it comes to EJB model projects, you need to add the following code in italics, in order to avoid the expensive use of System.out.println() in your client classes:
...
import org.apache.log4j.Logger;
public class PlaceOrderClient {
static Logger logger =Logger.getLogger("PlaceOrderClient");
/* instead of Logger logger = Logger.getLogger(this.getClass().getSimpleName());*/
public static void main(String [] args) {
try {
final Context context = getInitialContext();
PlaceOrder placeOrder = (PlaceOrder)context.lookup("ejb3inaction-Model-PlaceOrder#actionbazaar.buslogic.PlaceOrder");
if (logger.isDebugEnabled())
logger.debug("Exercising PlaceOrder EJB...");
// System.out.println("Exercising PlaceOrder EJB...");
The full source code is available on OTN:
http://www.oracle.com/technetwork/indexes/samplecode/jdeveloper-adf-sample-522118.html
and is given without any guarantee of support whatsoever.
Finally, in case you prefer working with Eclipse, the process is quite similar. See for example:
http://snippets.dzone.com/posts/show/3248
If you need more tips about appenders:
http://www.mobilefish.com/developer/log4j/log4j_quickguide_appenders.html
Saturday, 10 July 2010
Comments on CompTIA Project + Study Guide
On the dark side, the schedule development techniques and the performance reporting tools paragraphs are rather complicated and difficult to understand. Moreover, the book is heavily text based with very few diagrams and graphs.
All in all, the book provides you with all you need to pass the exams. In addition, it can be used as a reference resource throughout your professional career.
Friday, 9 July 2010
Comments on PeopleSoft Developer's Guide for PeopleTools & PeopleCode, by Judi Doolittle
On the dark side, the second part is only good for leisure reading, not for learning how to code. There are only two chapters of merely showing the structure of Peoplecode, without any tutorial, or exercises. Themes such as combining it with Crystal reports are missing. Its source code is not available, you have to type it! You can read more acid criticism by a more experienced reader at:
http://www.amazon.com/review/R15036IT6F1BI2/ref=cm_cr_pr_viewpnt#R15036IT6F1BI2
All in all, the book serves only as an introduction, you cannot use it to actually learn how to write code.
Comments on Object-Oriented Systems Analysis and Design, 2nd edition, by S.Bennet et al
The text is easy to understand and to follow most of the times, thanks to the examples of a couple of case studies provided.
The book is full with helpful diagrams, graphs, flowcharts, questions, exercises etc, to help the reader make a quick progress. It is not technology biased towards any I.D.E., or framework, presenting both Sun/Oracle and Microsoft alternatives. Its indexes are valuable as a reference to the professional as well.
On the dark side, one could use more solutions to the exercises and answer pointers appendix instead of having to pay more for them(as of 2nd edition!). More use cases would be welcome as well!
All in all, the book is a success, a best seller,as of now at its fourth edition, valuable both as an introduction to the student and the professional as a reference.
Thursday, 1 July 2010
Comments on Beginning JavaServer Pages, by Chopra, Jones Li, Bell
http://www.wrox.com/WileyCDA/WroxTitle/Beginning-JavaServer-Pages.productCd-076457485X,descCd-ERRATA.html
The source code of the book is complete, working (with the exception of the Struts chapter 19) and mostly reusable. The tutorial form of the text makes it easy to follow, so that you can practice further on your own, working on open source tools and frameworks, such as Apache ant, JUnit, JMeter, Hibernate, Tiles and the Tomcat web container.
On the dark side, the book does not delve into Servlets theory, nor does any use of any open source integrated development environment.
All in all, the book serves well the novice to intermediate reader, both as an introductory text at first and as a reference book in a later stage.