Archive for July, 2010

Building Java Programs: A Back to Basics Approach (2nd Edition)

Building Java Programs: A Back to Basics Approach, Second Edition, introduces novice programmers to basic constructs and common pitfalls by emphasizing the essentials of procedural programming, problem solving, and algorithmic reasoning. By using objects early to solve interesting problems and defining objects later in the course, Building Java Programs develops programming knowledge for a broad audience.

Rating: (out of 17 reviews)

List Price: $ 108.00

Price: $ 78.00

Java Mosaic Tiles ? – Tips for Getting the Best Results!

It isn’t just about simple redecoration; Java Mosaic Tiles remodeling is about bringing a different style and natural atmosphere into your home design. If you wish to bring the contemporary, yet natural look into your home’s interior and exterior design, you should explore the countless opportunities provided by these unique panels. The following review will show you how you can easily remodel any room setting by using one of the most popular tiling techniques.

Basic introduction

The difference between this tiling method and other methods is the fact that Java Mosaic Tiles redecoration is actually based on a collection of unified smooth stones carefully sorted and then mounted onto a seamless mesh backed tile. Among thousands of seashores around the globe it seems like the South East Asian beaches provide the largest variety natural rock panels. Where can you use it? Practically anywhere inside and outside your home: Bathroom surfaces, kitchens, backsplash covering, patio floors, decks, pools, and even wine cellars.

What are the main benefits?

Let’s quickly examine what is in it for us:

* Durable to most common home detergents.
* Can be used for virtually unlimited applications at home, in the office, in restaurants, hotels, etc.
* Easy to be replaced if needed.

Useful advices!

* Order a small sample of the desired tiles prior to making a complete order – just to make sure it answers your expectations.

* Most recommended grout is sanded grout – it is suitable for both internal and external use.

* Upon completion, it is important to wait the adhesive’s recommended drying time before you begin on grouting.

There are probably many other benefits provided by this trendy redesigning technique simply because most people find it extremely easy to install and maintain.

On the bottom line

Many home-makers find this Java Mosaic Tiles technique quite effective due to the fact that it provides numerous opportunities and applications that easily enable you to transform any room setting modern and appealing. It is advised to keep the above advices before you begin with installation.

Related Java Articles

Question by Mimi: What is the difference between Java and Adobe Acrobat Reader?
I thought that Java was a computer language and that the Reader is of course a PDF reader. But doesn’t this Adobe Reader 9 (the version that I just downloaded a month ago) work as the Flash Player as well?

How do I tell what version of Flash that I have?

Thanks in advance!

Best answer:

Answer by Mercuri
Adobe Reader 9 is not a flash player. That would be Adobe Flash Player.

Your first thoughts were correct. Java is a computer language and Reader is used to open PDF files.

Add your own answer in the comments!

Java Pebble Tiles ? – Surprising Remodeling Solution!

Did you ever consider remodeling home surfaces by yourself? Have you already tried using do-it-yourself Java Pebble Tiles remodeling? It seems like no other tiling technique can be used for so many applications as provided by these stone panels. Find out how to quickly and easily decorate any surface.

Getting some basics

This unique Java Pebble Tiles redecoration method is made of a set of identical beach-stones manually and carefully attached onto a mesh backing of 12′ by 12′ size. Among thousands of seashores around the globe it seems like the South East Asian beaches provide the largest variety natural rock panels. You can practically tile anywhere and for any purpose: a) Bathrooms b) Kitchens c) Internal and external flooring (patios for example) d) all types of backsplashes etc.

Benefits

Let’s quickly summarize the main advantages and benefits of this unique technique:

* Can be used inside as well as in the outside.
* Impervious to water and other liquids.
* Durable to any extreme temperatures such as around fireplaces and stoves for example.

Free valuable tips!

* Upon completion, it is important to wait the adhesive’s recommended drying time before you begin on grouting.

* When you prepare the grout avoid adding too much water in the initial mix – that additional water can result in weak grout that can flake.

* Order a small sample of the desired tiles prior to making a complete order – just to make sure it answers your expectations.

There are probably many other great benefits provided by this fashionable home redesigning technique simply because any home-maker can use it at minimal effort.

Quick summary

This affordable Java Pebble Tiles technique is probably one of the easiest and most effective coating choices available today. Should it be your first time installation, it is recommended to go over the above tips before installation.

Question by Juliette: How would I create a Java program using arrays to examine temperature?
What would coding look like that took user input of 10 temperatures and told if each day was above average based off the average of the ten day input.

Thanks!

This is more or less to help me understand so that I can help my daughter with her work–I don’t understand much about Java programming.

Best answer:

Answer by Ya it’s me….
Here’s the easiest way:

Server-side code:

System.Text.StringBuilder javaScript = new System.Text.StringBuilder();
DataTable dataTable = this.CreateTestDataSource();

for (int i=0; i {
if (i == 0)
{
javaScript.Append("\n");
}
else
{
javaScript.Append(",\n");
}
}
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "ArrayScript", javaScript.ToString());

protected virtual DataTable CreateTestDataSource()
{
DataTable dataTable = new DataTable("TestDataTable");
dataTable.Locale = System.Globalization.CultureInfo.InvariantCulture;

dataTable.Columns.Add(new DataColumn("ID", typeof(string)));
dataTable.Columns.Add(new DataColumn("Subject", typeof(string)));

{
DataRow dataRow = dataTable.NewRow();
dataRow[0] = "0";
dataRow[1] = "Test0";
dataTable.Rows.Add(dataRow);
}
{
DataRow dataRow = dataTable.NewRow();
dataRow[0] = "1";
dataRow[1] = "Test1";
dataTable.Rows.Add(dataRow);
}

return dataTable;
}

Client-side code to test with:

NC...

Know better? Leave your own answer in the comments!

Mount Bromo East Java Indonesia

Mount Bromo East Java Indonesia

There were 30 bikers from HTML Jakarta and 10 bikers from HTML Jogja who joined with HTML Honda Tiger Mailing List in order to participated “Tour d’Bromo”.

One of the touring purposes is the endurance from Jakarta to Bromo East Java (vice versa) but this event called as “Road to Unity for Tiger Community” with long distance at least 2,050 km.

Mount Bromo 3392 M and Mount Semeru 3676 M (photographer bro Dondee)

Saturday 8 April 2006 at 07.00 AM all bikers from Jakarta should stand-by in the meeting point in Jl. Sabang Jakarta Pusat where this place also known as the central meeting point of all HTML members on weekly basis.

This program said as a part of recreation touring but it was also included endurance test the engine oil of “Pertamina Enduro 4T”.

On the other hand, “Safety Riding Campaign” as the major program and prior should be practiced into HTML member. The campaigns as the commitment between HTML and Pertamina were supported safety riding on the national program.

“Pertamina Enduro 4T” also provides a free jacket, pin and T’shirt which to be used for all HTML Bikers and we wore a same uniform.

As usual before start all motorbike in physically and gear apparel bikers should be checked and screened in details following to the HTML Standard Operating Procedures (SOP). It was very details, professionally screening where all riders could not avoid this procedure in order to make sure everything warranted must safe, and participants are ready to go.

Following to HTML rules that each group should be divided into 3 groups maximum 8 riders. This small group a part of new rule from HSRT (HTML Safety Riding Team).

All bikers who start from Jakarta would met friends with HTML Jogja in Semarang City Central Java and thereafter the journey continued to Batu, Malang East Java.

Due to the a long distance journey, there were a good opportunity for all bikers who wants to develop his riding skill, especially to perform the individual skills, for instance how to become the Road Captain, VO, Sweeper, Technical Officer and Group Leader. Here everybody can enjoy with the replacement position after their finish at least for one or two sections trip.

It was 7 (seven) days spent the journey and it was really very tight schedule.

Day 1: Jakarta – Pamanukan – Cirebon – Tegal – Semarang.

Day 2: Semarang – Salatiga – Suruh – Gemolong – Sragen – Ngawi – Caruban – Nganjuk – Kertosono – Pare – Kandangan – Pujon – Batu – Malang.

Day 3: Malang – Lawang – Pasuruan – Probolinggo and Bromo.

Day 4: Bromo – Pasuruan – Madiun – Magetan – Karanganyar – Solo – Jogja.

Day 5: Jogja stay for one day.

Day 6: Jogja – Magelang – Weleri – Pemalang.

Day 7: Pemalang – Cirebon – Subang – Cikampek – Karawang – Bekasi – Jakarta.

Photos are exclusive taken by Bro Dondee and Fajar Is: Bro Dondee

Around Bromo

An early morning waiting Sunrise in Bromo

Sunrise coming in Bromo

Background the Mount Semeru (3676 M)

Photo with tourist from UK with background the Mount Semeru (3676 M)

Photo with the group of HTML Member who joined touring to Bromo

The HTML Bikers

In Top of Mount Bromo (3392 M)

In Top of Mount Bromo (3392 M)

Stairs to reach the Top of Mount Bromo (3392 M)

Group HTML Member

HTML Bikers Action in Bromo sand

My style with Honda Tiger 200cc in Bromo sand

Bro Dondee

Return To Jakarta

The End.

More Java Articles

Techniques For Integrating Hibernate Into Legacy Java Code – Part 1

If you’re like me, you spend a lot of time dealing with legacy code that, for whatever reason, does not take advantage of modern methodologies and libraries. I’ve taken over Java projects that contain hundreds of thousands of lines of code and not a single third-party jar other than a JDBC driver! One of the most common examples of this is the implementation of the data access layer. These days, the de facto methodology involves Hibernate and DAOs, usually managed by Spring.

This article will detail the steps I recently took to covert a large application from custom-written data access to Hibernate and Spring using the refactoring facilities in Eclipse. The key with this refactorization is to get the existing business logic code (Struts Actions, JSPs, Delegate classes, Business Service classes, etc.) to access the datastore using Hibernate, managed by Spring, without manually changing any of that code directly. Part 1 will include creating the Hibernate data object classes, DAOs, and refactoring the existing code to work with these newly created types. Part 2 will conclude the project with integration of the Hibernate DAOs and wiring everything up with Spring.

First of all, we need to create our Hibernate model and DAO classes. Obviously, since we’re dealing with a legacy application and data structure, we will want to use a bottom-up approach to building our data access layer. This just means that we’re going to generate the Java code and appropriate Hibernate config files from the existing database. There are many tools freely available to make this process very painless. I recommend an Eclipse Plugin for creating and maintaining the Hibernate artifacts (Google “Hibernate Eclipse Plugin” to get started). The structure and requirements for creating Hibernate classes and config files are well documented elsewhere, so I won’t go into detail here. However, in this particular project, the Hibernate DAO lifecycles are managed by Spring, so the DAO classes should all extend HibernateDAOSupport.

Now we have java classes (POJOs) which map to our database tables, but none of the existing code uses these new data object classes. This is where the refactoring tools of Eclipse comes in really handy. For example, say we have a legacy class called AccountInfo which corresponds to the ACCOUNT database table. Right-click the class and select Refactor -> Extract Interface. On the dialogue box, call the new interface IAccount and make sure you select “Use the extracted interface type where possible.” Choose the other options according to your preferences. Click OK and kick back while Eclipse changes every occurence of AccountInfo references to IAccount references and recompiles. Of course, do this with each object model class.

If you never realized why OOP languages are so great, you’re about to. Now we’re going to refactor the code so that all of the existing legacy can be hooked into the new Hibernate model classes instead of the legacy ones. Continuing with the AccountInfo example, create a new class – you’ll probably want to create a new package for this step – called Account that extends the Hibernate POJO for Account and implements the new IAccount interface.

This next part is the most time-consuming, but really isn’t that bad. At this point, the newly created class will probably contain a bunch of empty methods containing only TODO comments. This is because the IAccount interface most likely defies a bunch of methods that are not implemented in the Hibernate Account POJO. To deal with these, we basically want the new Account class to delegate to its generated superclass whenever necessary to satisfy its contract as an IAccount type. As a real world example from the application I was working on, the legacy AccountInfo class defined a getter/setter pair for a property called username, whereas the corresponding column in the ACCOUNT table was actually LOGIN_NAME. To deal with this, you would simply implement the get/setUsername methods in Account to delegate to get/setLoginName (from its superclass). I also had to translate between various data types quite a bit. For example, the legacy code would define many properties as Strings even though the corresponding piece of data in the database was defined as an INT or TIMESTAMP. Again, do this with each object model class.

To finish up the data model layer, edit the appropriate Hibernate and Spring configuration files to refer to these new object model classes. The application now has the ability to map database records to Java objects via Hibernate, and the legacy code which refers to these classes has not required any editing by hand. To finish up this refactorization project, we need to hook in the Spring-supported Hibernate DAOs in a similar way. In Part 2 of this article, I will discuss refactoring the legacy code to read, write, and update data using Hibernate and Spring.

Question by Darren R: How do i start to use graphics in Java Programming?
I would like to start doing some 2d graphics programming with Java although i don’t know where to start of with it…so if anyone knows what tutorial i can start with for 2d graphics programming in java…please help out..thanks!

Best answer:

Answer by modulo_function
Here’s a link to the Sun Java tutorial:

http://java.sun.com/docs/books/tutorial/

Highly recommended (by me)!

What do you think? Answer below!

Big Java: Compatible with Java 5, 6 and 7

Big Java: Compatible with Java 5, 6 and 7

This book introduces programmers to objects at a gradual pace. The syntax boxes are revised to show typical code examples rather than abstract notation. This includes optional example modules using Alice and Greenfoot. The examples feature annotations with dos and don’ts along with cross references to more detailed explanations in the text. New tables show a large number of typical and cautionary examples. New programming and review problems are also presented that ensure a broad coverage of top

Price: $ 92.38

Alice in Action with Java?

Alice in Action with Java, an innovative new text by Joel Adams, provides CS1 users with a meaningful and motivating introduction to object-oriented programming. Using a spiral pedagogy, Adams introduces key object-oriented topics using Alice 2.0, then circles back to the same concepts in Java. Alice was developed to help teach introductory programming techniques in a less syntax-intensive environment, and addresses some of the barriers that currently prevent many users from successfully learnin

Rating: (out of 3 reviews)

List Price: $ 90.95

Price: $ 54.89

Build Powerful Java Applications Using Soa With New Book From Packt

This book shows how to use SOA and web services to build powerful applications in Java. It teaches the concepts and the implementation with best-practice real-world examples. You will learn to design a sound architecture for successful implementation of any business solution, the different types of architecture, and various tenets of SOA. The book explains the fundamentals and the advantages of using the Service Oriented Architecture in designing your business solution.

In Detail: Service Oriented Architecture provides a way for applications to work together over the Internet. Usually, SOA applications are exposed through web services.

Web services have been around for a while, but complex adoption processes and poor standardization hampered their use at first. However, with the adoption of new, simpler protocols such as REST, and major companies supporting SOA, the time is now right to adopt these standards.

This book will show you how to build SOA, web services-based applications using Java. You will find out when SOA is the best choice for your application, how to design a sound architecture, and then implement your design using Java.

The book covers the important web services protocols: XML-over-HTTP, REST, and SOAP. You will learn how to develop web services at all levels of complexity and for all kinds of business situations.

Approach:This book is an overview of how to implement SOA using Java with the help of real-world examples. It briefly introduces the theory behind SOA and all the case studies are described from scratch.

The book is out now and is available from Packt. For more information, please visit: http://www.packtpub.com/service-oriented-architecture-for-java-applications/book

Related Java Articles