dcnm

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.javabeginner.com/learn-java/java-threads-tutorial Multithreading refers to two or more tasks executing concurrently within a single program. A thread is an independent path of execution within a program. Many threads can run concurrently within a program. Every thread in Java is created and controlled by the java.lang.Thread class . A Java program can have many threads, and these threads can run concurrently, either asynchronously or synchronously. Multithreading has several advantages over Multiprocessing such as;

Java Threads Tutorial

This document provides a step by step tutorial for starting java programming with Apache Ant. It does not contain deeper knowledge about Java or Ant. This tutorial has the goal to let you see, how to do the easiest steps in Ant. Content Preparing the project

Tutorial: Hello World with Apache Ant

http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html
http://sourcemaking.com/design_patterns

Design Patterns

In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Uses of Design Patterns

Java API Design Guidelines

Dr. Dichotomy's Development Diary Java API Design Guidelines by Eamonn McManus December 28, 2005 Summary There are tons of books and articles about how to design and write good Java code, but surprisingly little about the specific topic of API design. Here's a summary of what I've learnt on the subject from various sources and my own experience. http://www.artima.com/weblogs/viewpost.jsp?thread=142428

Abstract Factory Design Pattern

Intent 01 Provide an interface for creating families of related or dependent objects without specifying their concrete classes. A hierarchy that encapsulates: many possible “platforms”, and the construction of a suite of “products”. The new operator considered harmful. http://sourcemaking.com/design_patterns/abstract_factory
http://www.java-samples.com/showtutorial.php?tutorialid=234

How to use ArrayList in Java

The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed. In Java, standard arrays are of a fixed length. After arrays are created, they cannot grow or shrink, which means that you must know in advance how many elements an array will hold. But, sometimes, you may not know until run time precisely how large of an array you need.

Use DOM methods to navigate a document: jsoup Java HTML parser

Problem You have a HTML document that you want to extract data from. You know generally the structure of the HTML document. Solution Use the DOM -like methods available after parsing HTML into a Document . http://jsoup.org/cookbook/extracting-data/dom-navigation

coding, by Derek Young: Using Eclipse Efficiently

Using Eclipse Efficiently Wednesday November 14, 2007 by Derek Young Eclipse is a powerful tool with a lot of features. I’m always looking for tips on working more efficiently. Most of the time when I come across a page of Eclipse tips it’s just the most basic usage, like “hit F3 to go to a declaration!” I’ve tried to put together some lesser known tips and features that I see my coworkers overlooking when I stop by their cube. http://dmy999.com/article/29/using-eclipse-efficiently

Downloader.java

http://gmailassistant.sourceforge.net/src/org/freeshell/zs/common/Downloader.java.html /** * Downloader.java * Copyright 2008 Zach Scrivena * zachscrivena@gmail.com * http://zs.freeshell.org/ * * TERMS AND CONDITIONS: * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.
The myth of the Muslim vote bank, though denied by sociologists and debunked by psephologists, refuses to die. It reasserts itself with new vigour at every election. Even those well aware of the diversity within the community cannot resist building their arguments on this spurious claim. http://www.thehindu.com/opinion/lead/believe-me-muslims-are-not-a-herd/article2863455.ece

Opinion / Lead : Believe me, Muslims are not a herd

Mohammad Abdus Salam , [ 2 ] NI , SPk , KBE [ 3 ] ( Punjabi , Urdu : محمد عبد السلام ‎; Hindustani pronunciation: [əbd̪ʊs səlɑm] ; 29 January 1926 – 21 November 1996) [ 4 ] was a theoretical physicist who, when he shared the 1979 award for his contribution to electroweak unification , [ 5 ] became the first Pakistani and to receive a Nobel Prize in Physics . [ 6 ]

Abdus Salam

XML Parsers

In order to avoid the difficulties inherent in parsing raw XML input, almost all programs that need to process XML documents rely on an XML parser to actually read the document. The parser is a software library (in Java it’s a class) that reads the XML document and checks it for well-formedness. Client applications use method calls defined in the parser API to receive or request information the parser retrieves from the XML document.

How to use HttpURLConnection POST data to web server?

Here is one sample. ... public static String excutePost(String targetURL, String urlParameters) { URL url; HttpURLConnection connection = null; try { //Create connection url = new URL(targetURL); connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Length", "" + Integer.toString(urlParameters.getBytes().length)); connection.setRequestProperty("Content-Language", "en-US");

A RESTful Web service, an example

It's often hard for people to "get" REST, this is mostly due to the fact that REST isn't a tangible thing like a piece of software or even a specification, it's a selection of ideals, of best practices distilled from the HTTP specs. I've always found that the best way to understand something is to see an example, to see the principles in action first and worry about the details later once I understand the general gist. So here's a little example of a RESTful version of a simple Web service you might already know about, the Delicious API . Delicious has a simple REST API , or rather, a simple POX over HTTP API, that is, it has a perfectly usable HTTP and XML based API for accessing your bookmarks and tags, but it isn't very RESTful.

Become an Eclipse hotkey showoff

Tips for using the Eclipse IDE By Sam Brodkin, JavaWorld.com, 08/29/05 The great thing about Eclipse is that it's so feature rich. If you can't find a feature, then either you just haven't looked hard enough or there's a plug-in that adds it.