CO.CC:Free Domain

Menghilangkan Navbar Blogger

Langkah yang dilakukan adalah sebagai berikut
1. Masuk ke kontrol panel (log in) blogger anda tepatnya di menu sub menu Template yaitu Edit Template
    (Edit   HTML)
2. paste CSS definition code di bawah ini :


#navbar-iframe {
display: none !important;
}

3. Dan tempatkan sebelum tag </head>
4. Ya lu simpen aja tu script lagi,,, selesai deh !!
Read More,.,.,.

Begginer Programming Server Side PHP5

Beginner Programming Sever Side PHP5

History of PHP

ò Rasmus Lerdorf(1995)

ò PHP ( Personal Homepage)

ò PHP3 ( 1998)

ò Zeevsuraskiand Andi Gutmans(Zend)

ò PHP4 ( 2000) Becoming very popular [in] web

ò Expand to OOP ( Java, C#, VB.NET)


What newly at PHP5 ?

ò New and improved MySQLextension

ò PHP 5 bundles SQLite

ò SimpleXMLextension (XML)

ò Iteratorsand SPL

ò Error Handling and Debugging

ò Streams, Filters, and Wrappers




What needing diinstall ?

ò Web Server (Apache, IIS)

ò PHP5 Module

ò Database Server (MySQL, PostgreSQL)

ò Apache2Triad

ò Sokkitv4.0

ò Editor (Edit Plus / ZendStudio)


Declaration Variable

      <?

       $testing = 5; //integer

       echo gettype($testing);

       $testing = "five";
//string

       echo gettype($testing);

       $testing = 5.0; //double

       echo gettype($testing);

       $testing = true; //boolean

       echo gettype($testing);

      ?>

 

Declaration of Constanta

      <?

       define(ôUSERNAMEö,öAlghoö);

   echo ôUser Name :ö.USERNAME;

      ?>


Casting

      <?

       $varpublic= 3.14;

   $vardouble= (double)$varpublic;

       echo gettype($vardouble); //double

       $varstring= (string)$varpublic;

       echo gettype($varstring); //string

      ?>



Operator

ò Arithmetic (+, -, *, /)

ò Concatenation (.)

ò Assigment(+=, -=, /=, *=, %=, .=)

ò Comparison (==, !=, >, <, >=, <=)

ò Logical (||, &&, !)


If Statement

      <?

      $mood = "sad";

      if ($mood == "happy"){

      echo "your happy!";

      }elseif($mood== "sad"){

      echo "wow your suffer!";

      }else{

      echo "not happy and not
suffer but $mood"; }

      ?>


Switch Statement

      <?

      $mood = "sad";

      switch($mood){

      case "happy":

      echo "Mood you good!";

      break;

      case "sad":

      echo "Mood you bad...";

      break;

      default:

      echo "Mood you $mood";

      }

      ?>


While Statement

      <?

      $counter = 1;

      while($counter<=12){

      echo "$counter * 2 is "
.($counter*2)."<br>";

      $counter++;

      }

      ?>


Do Statement

      <?

      $num=201;

      do{

      echo ("Execution number:
$num<br>\n");

      $num++;

      }while($num>200 &&
$num<400);

      ?>


For Statement

      <?

      for($counter=1;$counter<=12;$counter++){

      echo "$counter * 2 is :
" .($counter*2)."<br>";

      }

      ?>




Break Statement


      <?

      $counter=1;

      while($counter<10){

      if($counter==5){

      echo "stop f counter values
5 <br>";

      break;

      }

      echo $counter."<br>";

      $counter++;

      }

      ?>


Continue Statement

      <?

      for($counter=1;$counter<=10;$counter++){

      if($counter==5) continue;

      echo "counter result : $counter<br>";}

      ?>


Usage of Function.

      <? //functionbyvalue.php

      function tax($salary){ //definisi

      $salary = $salary-(($salary/100)*20);

      return $salary;

      }


      $salary = 2000;

      echo tax($salary); //hasil1600

      echo $salary; //hasil2000

      ?>




Function Passing by Reference

      <? //functionbyreference.php

      function tax(&$salary){ //definisi

      $salary = $salary-(($salary/100)*20);

      return $salary;

      }

      $salary = 2000;

      echo tax($salary); //hasil1600

      echo $salary; //hasil1600

      ?>


Setting default parameter function

      <?

      function tax($salary=2000){ //definisi

      $salary = $salary-(($salary/100)*20);

      return $salary;

      }

      echo tax();

       ?>




Scope Variable

      <?

      $welcomemessage= "Hello
World"; //global

      function translate(){

      $welcomemessage= "Halo Dunia";
//local

      return $welcomemessage;

      }

      translate();

      echo $welcomemessage;

      ?>


Nesting Function

      <? //nestingfunction.php

      function pension($total){

      function tax($salary){

      return $salary -(($salary/100)*20);

      }

      $posttax= tax($total);

      return tax(tax($total)-($posttax/100)*3);

      }

      $total = 2000;

      echo pension($total);

      ?>


Array


ò Defenition of array() function

      $users = array(ôtomö,ösharonö,öjhonö,öharyö);



ò Identifier of array

      $user[] = ôtomö; $user[] =
ôsharonö;

      $user[] = ôjhonö; $user[] =
ôharyö;


ò Example used array

      <? //foreach.php

      $user= array("tom","bert","sharon","jhon");

      foreach($user as $key=>$value){

      echo "Array Ke-".$key."
isinya: ".$value."<br>"; }

      ?>


Statement While List

      <? //whilelist.php

      $user=  array(name>"bob",occupation=>"programmer",age=>30,hobby=>"swimming");

      while(list($index,$value) = each($user)){

      echo $index." : ".$value."<br>";

      }

      ?>


FungsiDalamArray


ò implode -> combination array to string

ò explode -> breaking string to array

ò sort() -> sort array scr asc

ò rsort() -> sort array scr desc

ò ksort() -> sort index string array scr asc

ò array_pop() -> delete array in the last character

ò array_push() -> added array



ContohPenggunaanArray

      <? //explodeimplode.php

      $city[0]="padang";

      $city[1]="dharmasraya";

      $city[3]="bukittinggi";

      $strcombination= implode("-",$city);

      echo "after combination:
".$strcombination."<br>";

      $cityarray= explode("-",$strcombination);

      foreach($cityarrayas $key=>$value){

      echo "Array to-".$key."
= ".$value."<br>";

      }

      ?>


Mengambildata dariForm (HTML)

      //formuser.php

      <html><body>

      <form action="lihat.php"
method="POST">

      Name: <input type="text"
name="name"><br>

      Addres: <input type="text"
name="addres"><br>

      Password: <input type="password"
name="password"><br>

      Gender:

      <input name="gender"
type="radio" value="male">Male

      <input name="gender"
type="radio" value="female">Female<br>

      Boldness:<br><textareaname="boldness"></textarea><br>

      <input type="submit">
<input type="reset">

      </form>

      </body></html>



      <? //lihat.php

      echo "<html></body>";
//file lihat.php

      if (empty($_POST["nama"]))
$ket.="name still empety,";

      if (empty($_POST["password"]))
$ket.="password still empety,";

      if (empty($_POST["hobi"]))
$ket.="hobby still empety,";

      if (empty($_POST["alamat"]))
$ket.="addres still empety,";

      if (empty($_POST["gender"]))
$ket.="gender still empety,";

      if (empty($_POST["pilihan"]))
$ket.="choice still empety ";

      if (empty($_POST["keterangan"]))
$ket.="boldness still empety ";

      if (isset($ket)){

      echo "Error :".$ket;

      exit;

      }

      echo "your name: ".$_POST["nama"]."<br>";

      echo "your addres: ".$_POST["alamat"]."<br>";

      echo "your Password: ".$_POST["password"]."<br>";

      echo "your gender: ".$_POST["gender"]."<br>";

      echo "your Hobby:

      foreach($_POST["hobi"]
as $key=>$value){

      echo "Hobby to-".$key."=
".$value."<br>";

      }

      echo "choice your President
: ".$_POST["pilihan"]."<br>";

      echo "Boldnes:".$_POST["boldness"];

      echo "</body></html>";

      ?>





Register Global If Close ?


ò Hence we cannot overcome variable directly

ò$_GET[ôvarnameö]

ò$_POST[ôvarnameö]

ò$_SESSION[ôvarnameö]

ò$_COOKIE[ôvarnameö]

ò$_REQUEST[ôvarnameö]

ò$_FILES[ôvarnameö]



Used Session (HTML)

      <html><body>

      <form action="prosessession.php"
method="POST">

      User Name :<input type="text"
name="username"><br>

      Password :<input type="password"
name="password"><br>

      <input type="submit">

      </form>

      </body></html>




Used Session (PHP)

      <? //prosessession.php

      session_start();

      $username = $_POST["username"];

      $password = $_POST["password"];

      if ($username=="erick"
&& $password=="webdb"){

      $_SESSION["user"] =
$username;

      header("Location: succseslogin.php");

      }else {

      echo "Sorry, you failed
to login";

      }

?>




Set Cookies

      <? //setcookie.php

      setcookie("username[one]","erick",time()+60);

      setcookie("username[two]","jhon",time()+60);

      setcookie("username[three]","bart",time()+60);

      echo "Cookie telahdiset...
<a href='lookcookie.php'>cookie</a>";

      ?>




Look Cookies

      <? //lihatcookie.php

      echo "After send Cookie
: <br>";

      if (isset($_COOKIE["username"])){

      while(list($index,$value) = each($_COOKIE["username"])){

      echo "Name to-".$index."
= ".$value."<br>";

      }

      }

      ?>


Used Header Authentication

      <? //headerauth.php

      if(!isset($PHP_AUTH_USER)){

      header("WWW-Authenticate:
Basic realm=\"My Realm\"");

      header("HTTP/1.0 401 Unauthorized");

      echo("Textto send if user
hits Cancel button\n");

      exit;

      }else {

      echo "<p>Hello $PHP_AUTH_USER</p>";

      echo "<p>You entered
$PHP_AUTH_PW as pwd</p>";

      }

?>
Read More,.,.,.

Connect Two Home Computers for File Sharing

Methods for networking two computers

The simplest kind of home network contains exactly two computers. You can use this kind of network to share files, a printer or another peripheral device, and even an Internet connection. To connect two computers for sharing these and other network resources, consider the options described below. 

Connecting Two Computers Directly With Cable

The traditional method to network two computers involves making a dedicated link by plugging one cable into the two systems. Several alternatives exist for networking two computers in this manner:
  • Ethernet crossover cable
  • Null modem serial cable or parallel peripheral cable
  • Special-purpose USB cables
Ethernet - Of the above choices, the Ethernet method is preferred as it supports a reliable, high-speed connection with minimal configuration required. Additionally, Ethernet technology offers the most general-purpose solution, allowing networks with more than two computers to be built fairly easily later. If one of your computers possesses an Ethernet adapter but the other has USB, an Ethernet crossover cable can still be used by first plugging a USB-to-Ethernet converter unit into the computer's USB port.
Serial and parallel - This type of cabling, called Direct Cable Connection (DCC) when using Microsoft Windows, offers lower performance but offers the same basic functionality as Ethernet cables. You may prefer this option if you have such cables readily available and network speed is not a concern. Serial and parallel cables are never used to network more than two computers.
USB - Ordinary USB cables must not be used to connect two computers directly to each other. Attempting to do so can electrically damage the computers! However, special USB cables designed for direct connection exist that can be used safely. You may prefer this option over others if your computers lack functional Ethernet network adapters.
To make dedicated connections with Ethernet, USB, serial or parallel cables requires
  1. each computer have a functioning network interface with an external jack for the cable, and
  2. the network settings on each computer appropriately configured
One phone line or power cord cannot be used to directly connect two computers to each other for networking.


Connecting Two Computers With Cable Through Central Infrastructure

Rather than cable two computers directly, the computers may instead be joined indirectly through a central network fixture. This method requires two network cables, one connecting each computer to the fixture. Several types of fixtures exist for home networking:
  • Ethernet hubs, switches, and routers
  • USB hubs
  • Phoneline and powerline wall outlets
Implementing this method often entails additional up-front cost to purchase more cables and network infrastructure. However, it's a general-purpose solution accommodating any reasonable number of devices (e.g, ten or more). You will likely prefer this approach if you intend to expand your network in the future.
Most cabled networks utilize Ethernet technology. Alternatively, USB hubs can be employed, while powerline and phoneline home networks each offer their own unique form of central infrastructure. The traditional Ethernet solutions are generally very reliable and offer high performance.

Connecting Two Computers Wirelessly

In recent years, wireless solutions have enjoyed increasing popularity for home networking. As with cabled solutions, several different wireless technologies exist to support basic two computer networks:
  • Wi-Fi
  • Bluetooth
  • Infrared
Wi-Fi connections can reach a greater distance than the wireless alternatives listed above. Many newer computers, especially laptops, now contain built-in Wi-Fi capability, making it the preferred choice in most situations. Wi-Fi can be used either with or without a network fixture. With two computers, Wi-Fi networking minus a fixture (also called ad-hoc mode) is especially simple to set up.
Bluetooth technology supports reasonably high-speed wireless connections between two computers without the need for a network fixture. Bluetooth is more commonly used when networking a computer with a consumer handheld device like a cell phone. Most desktop and older computers do not possess Bluetooth capability. Bluetooth works best if both devices are in the same room in close proximity to each other. Consider Bluetooth if you have interest in networking with handheld devices and your computers lack Wi-Fi capability.
Infrared networking existed on laptops years before either Wi-Fi or Bluetooth technologies became popular. Infrared connections only work between two computers, do not require a fixture, and are reasonably fast. Being very simple to set up and use, consider infrared if your computers support it and you lack the desire to invest effort in Wi-Fi or Bluetooth.
If you find mention of an alternative wireless technology called HomeRF, you can safely ignore it. HomeRF technology became obsolete several years ago and is not a practical option for home networking.
Read More,.,.,.

Home Network Backup

Set up your network to save copies of critical files

A home network backup system maintains copies of your personal electronic data files in case of computer failures, theft or disasters. You can manage your own home network backups or choose to use an online service. Considering the impact of possibly losing irreplaceable family photos and documents, the time and money you spend on network backups is almost certainly a worthwhile investment.

Types of Home Network Backup

Several different methods exist for setting up and organizing backups using your home computer network:
  • backups to CD-ROM or DVD-ROM discs
  • network backups to a local server
  • online backups to a remote hosting service

Backup to Discs

One simple way to back up your data is to "burn" copies onto optical (CD-ROM or DVD-ROM) discs. Using this method, you can manually choose the individual files and folders you want to back up from each computer, then use the computer's CD / DVD writing program to make file copies. If all of your computers have a CD-ROM / DVD-ROM writer, you do not even need to access the network as part of the backup procedure.
Most homes have at least one computer on the network without its own disc writer, however. For these, you can set up file sharing and remotely transfer data onto the optical disc over the home network.

Network Backup to a Local Server

Instead of burning multiple disks on possibly several different computers, consider setting up a backup server on your home network. A backup server contains a large hard disk drive (sometimes more than one for increased reliability) and has network access to receive files from the other home computers.
Several companies manufacture Network Attached Storage (NAS) devices that function as simple backup servers. Alternatively, more technically inclined homeowners may opt to set up their own backup server using an ordinary computer and home network backup software.

Network Backup to a Remote Hosting Service

Several Internet sites offer remote data backup services. Instead of making copies of data within the home as with the above methods, these online services copy files from the home network to their servers over the Internet and store subscribers' data in their protected facilities.
After signing up with one of these backup hosting services, often you need only to install the provider's software, and Internet / network backups can happen automatically thereafter. These services typically charge monthly or yearly fees based on the amount of data being backed up.

Comparing the Options for Network Backup

Each of the above methods offers some advantages:
Local Disc Backups -
  • Pros - Full control over which files are backed up and when. Optical discs are relatively cheap.
  • Cons - Local discs are easy to steal or misplace. People often forget to backup frequently enough.
Local Server Backups -
  • Pros - Automatic backup capability with suitable software. Frees up resources (e.g., burners) on the home computers.
  • Cons - Server is in the same location as the computers and susceptible to the same theft/fire/flood risks. NAS devices are more expensive than discs.
Remote Hosted Backups -
  • Pros - Automatic backup capability. Servers are located away from the home with lower risk from theft/disaster.
  • Cons - Can be a very expensive option for large amounts of data. Relies on providers being reputable and provisions in place if a data hosting business shuts down.

The Bottom Line

Network backup systems allow you to protect personal computer data. Using your home network, files can be copied to CD-ROM / DVD-ROM discs, a local server you've installed, or an online service you've subscribed to. Pros and cons exist for each of these options.
Many people do not take the time to set up a network backup system hoping they will never need it. Yet network backup need not be difficult to install, and it is a insurance policy for electronic data that is probably a lot more valuable than you think.
Read More,.,.,.

Sun Mobile Device Technology

To develop applications using wireless Java technology, you'll need to assimilate information from several fields. You'll need to understand something about wireless communications technology, the business of wireless communications, and a lot about the Java platform. You'll need to understand something about wireless communications technology, the business of wireless communications, and a lot about the Java platform. Where should you begin? Where should you begin? This page contains a high-level overview of wireless Java technology and many links to detailed information about specific subjects. This page contains a high-level overview of wireless Java technology and many links to detailed information about specific subjects.

Overview of Wireless Communications Overview of Wireless Communications

Wireless communications is a huge field, encompassing everything from radio and television broadcasting through pagers, mobile phones, and satellite communications. The field of mobile phones is expanding very fast at the same time that standards and protocols are being adopted, used, updated, and sometimes discarded. Wireless communications is a huge field, encompassing everything from radio and television broadcasting through Pagers, mobile phones, and satellite communications. The field of mobile phones is expanding very fast at the same time that standards and protocols are being adopted, used, updated, and Discarded sometimes. The other rapidly expanding part of the wireless world is that of wireless local area networks (LANs). Driven by widespread acceptance of the IEEE 802.11 standard, wireless local networking for computers and other devices is spreading rapidly. The other rapidly expanding part of the wireless world is that of wireless local area networks (LANs). Driven by widespread acceptance of the IEEE 802.11 standard, local wireless networking for computers and other devices is spreading rapidly.

Although wireless may seem like a special case, it is actually more intuitive and more natural than wired networking. Although wireless may seem like a special case, it is actually more intuitive and more natural than wired networking. Some day soon the need to plug a laptop into a network physically will seem quaint and antiquated. Some day soon the need to plug a laptop into a network physically will seem quaint and antiquated. The notion that you could walk into a room with your cell phone and have it unable to interact with other devices in the room will seem unbelievably primitive. The notion that you could walk into a room with your cell phone and have it Unable to interact with other devices in the room will seem unbelievably primitive. The future will reveal that wired networks are the special case. The future will Reveal that wired networks are the special case.
Conceptually, wireless communications can be split into two types, local and wide area . A local device is similar to a key fob with a button that unlocks a car, a 900 MHz cordless phone, a radio control toy, or a Bluetooth network. Conceptually, wireless communications can be split into two types, local and wide area. A local device is similar to a key fob with a button that unlocks a car, a 900 MHz cordless phone, a radio control toy, or a Bluetooth network. All of these devices operate over short distances, typically just a few meters. All of these devices operate over short distances, typically just a few meters.
Wide area wireless devices operate effectively over a much greater area. Wide area wireless devices operate effectively over a much greater area. A pager or mobile phone is a good example; you can talk on your mobile phone to any other phone on the planet. These devices' greater range relies on a trick, however: a more elaborate land-based network. A mobile phone doesn't have that much more radio power than a radio control toy. A pager or mobile phone is a good example; you can talk on your mobile phone to any other phone on the planet. These devices 'greater range relies on a trick, however: a more elaborate land-based network. A mobile phone doesn' t have that much more power than a radio control toy radio. What it does have is a network of carefully placed radio antennas (cell towers); the phone can continue to operate as long as it is within range of at least one tower. What it does have is a network of carefully placed radio antennas (cell towers); the phone can continue to operate as long as it is within range of at least one tower. The mobile phone device receives service from a wireless carrier , a company that operates the land-based network. The mobile phone device receives service from a wireless carrier, a company that operates the land-based network.
While a number of industry consortia and standard bodies, such as the International Telecommunication Union , are trying to define or foster the development of standards for the wireless world, today's wireless world is still fragmented and complex. While a number of industry consortia and standards bodies, such as the International Telecommunication Union, are trying to define or foster the development of standards for the wireless world, today's wireless world is still fragmented and complex. If you buy a mobile phone in the US today, it might run on Motorola's iDEN network or Sprint's PCS network. If you buy a mobile phone in the U.S. today, it might run on Motorola's iDEN network or Sprint's PCS network. Take it overseas to Europe and you'll be out of luck--your phone will not work with Europe's GSM network, nor will it work with the PDC network or any of the other mobile networks that live in Japan. Take it overseas to Europe and you'll be out of luck - your phone will not work with Europe's GSM network, nor will it work with the PDC network or any of the other mobile networks that live in Japan.

Overview of the Java Platform Overview of the Java Platform
The Java Platform comprises three elements: The Java Platform comprises three elements:
  1. The Java programming language is syntactically similar to C++ but differs fundamentally. The Java programming language is syntactically similar to C + + but differs fundamentally. While C++ uses unsafe pointers and programmers are responsible for allocating and freeing memory, the Java programming language uses type safe object references, and unused memory is reclaimed automatically. While C + + uses unsafe pointers and programmers are responsible for allocating and freeing memory, the Java programming language uses type safe object references, and unused memory is reclaimed automatically. Furthermore, the Java programming language eschews multiple inheritance (a likely source of confusion and ambiguity in C++) in favor of a cleaner construct, interfaces . Furthermore, the Java programming language eschews multiple inheritance (a likely source of confusion and ambiguity in C + +) in favor of a cleaner constructs, interfaces.
  2. A virtual machine forms the foundation of the Java platform. A virtual machine forms the foundation of the Java platform. This architecture offers several attractive features: The virtual machine can be implemented to run a top a variety of operating systems and hardware, with binary-compatible Java applications operating consistently across many implementations. This architecture offers several attractive features: The virtual machine can be implemented to run a top a variety of operating systems and hardware, with binary-compatible Java applications operating consistently across many implementations. In addition, the virtual machine provides tight control of executed binaries, enabling safe execution of untrusted code. In addition, the virtual machine provides tight control of executed binaries, enabling safe execution of untrusted code.
  3. Finally, an extensive set of standard application programming interfaces(APIs) rounds out the Java platform. Finally, an extensive set of standard application programming interfaces (APIs) rounds out the Java platform. These support almost everything you might want your applications to do, from user interface through cryptography, from CORBA connectivity through internationalization. These support almost everything you might want your applications to do, from user interface through cryptography, from CORBA connectivity through internationalization.
Taken together, the Java language, Java virtual machine 1 , and Java APIs compose the Java platform. Taken together, the Java language, Java virtual machine 1, and Java APIs compose the Java platform. Moreover, the Java platform is designed to encompass a wide range of computer hardware, everything from smart cards through enterprise servers. Moreover, the Java platform is designed to encompass a wide range of computer hardware, everything from smart cards through enterprise servers. Therefore, the Java platform comes in three flavors: Therefore, the Java platform comes in three flavors:
  • Java Platform, Standard Edition (Java SE) is designed for desktop computers. Java Platform, Standard Edition (Java SE) is designed for desktop computers. Most often it runs on top of OS X, Linux, Solaris, or Microsoft Windows. Most often it runs on top of OS X, Linux, Solaris, or Microsoft Windows.
  • Java Platform, Enterprise Edition (Java EE) is a comprehensive platform for multiuser,enterprise-wide applications. Java Platform, Enterprise Edition (Java EE) is a comprehensive platform for multiuser, enterprise-wide applications. It is based on Java SE and adds APIs for server-side computing. It is based on Java SE and adds APIs for server-side computing.
  • Java Platform, Micro Edition (Java ME) is a set of technologies and specifications developed for small devices like pagers, mobile phones, and set-top boxes. Java Platform, Micro Edition (Java ME) is a set of technologies and specifications developed for small devices like Pagers, mobile phones, and set-top boxes. Java ME uses subsets of Java SE components, such as smaller virtual machines and leaner APIs. Java ME uses subsets of Java SE components, such as smaller virtual machines and leaner APIs.
To learn much more about Java technology or the Java platform, visit http://java.sun.com/ : To learn much more about Java technology or the Java platform, visit http://java.sun.com/:
  • The New to Java Programming Center offers an excellent entry point into the Java platform, understanding it, getting it installed on your computer, and starting to program. The New to Java Programming Center offers an excellent entry point into the Java platform, understanding it, getting it installed on your computer, and starting to program.

The Java Community Process (JCP) The Java Community Process (JCP)
Specifications for Java SE, Java EE, and Java ME are developed under the aegis of the Java Community Process (JCP) . Specifications for Java SE, Java EE, and Java ME are developed under the Aegis of the Java Community Process (JCP). A specification begins life as a Java Specification Request (JSR). A specification begins life as a Java Specification Request (JSR). An expert group consisting of representatives from interested companies is formed to create the specification. An expert group consisting of representatives from interested companies is formed to create the specification. The JSR then passes through various stages in the JCP before it is finished. The JSR then passes through various stages in the JCP before it is finished. Every JSR is assigned a number. Every JSR is assigned a number. Java ME specifications are commonly referred to by their JSR number. Java ME specifications are commonly referred to by their JSR number.

Overview of Java ME Overview of Java ME
Unlike Java SE, Java ME is not a piece of software, nor is it a single specification. Unlike Java SE, Java ME is not a piece of software, nor is it a single specification. This difference can be confusing, even for developers who are already familiar with Java SE. This difference can be confusing, even for developers who are already familiar with Java SE. Instead, Java ME is a platform, a collection of technologies and specifications that are designed for different parts of the small device market. Instead, Java ME is a platform, a collection of technologies and specifications that are designed for different parts of the small device market. Because Java ME spans such a variety of devices, it wouldn't make sense to try to create a one-size-fits-all solution. Because Java ME spans such a variety of devices, it would not make sense to try to create a one-size-fits-all solution.
Java ME, therefore, is divided into configurations , profiles ,and optional packages . Configurations are specifications that detail a virtual machine and a base set of APIs that can be used with a certain class of device. Java ME, therefore, is divided into configurations, profiles, and optional packages. Configurations are specifications that detail a virtual machine and a base set of APIs that can be used with a certain class of devices. A configuration, for example, might be designed for devices that have less than 512 KB of memory and an intermittent network connection. A configuration, for example, might be designed for devices that have less than 512 KB of memory and an intermittent network connection. The virtual machine is either a full Java Virtual Machine 1 (as described in the specification) or some subset of the full JVM 1 . The virtual machine is either a full Java Virtual Machine 1 (as described in the specification) or some subset of the full JVM 1. The set of APIs is customarily a subset of the Java SE APIs. The set of APIs is customarily a subset of the Java SE APIs.
A profile builds on a configuration but adds more specific APIs to make a complete environment for building applications. A profile builds on a configuration but adds more specific APIs to make a complete environment for building applications. While a configuration describes a JVM 1 and a basic set of APIs, it does not by itself specify enough detail to enable you to build complete applications. While a configuration describes a JVM 1 and a basic set of APIs, it does not by itself specify enough detail to enable you to build complete applications. Profiles usually include APIs for application life cycle, user interface, and persistent storage. Profiles usually include APIs for application life cycle, user interface, and persistent storage.
An optional package provides functionality that may not be associated with a specific configuration or profile. An optional package provides functionality that may not be associated with a specific configuration or profile. One example of an optional package is the Bluetooth API (JSR 82), which provides a standardized API for using Bluetooth networking. One example of an optional package is the Bluetooth API (JSR 82), which provides a standardized API for using Bluetooth networking. This optional package could be implemented alongside virtually any combination of configurations and profiles. This optional package could be implemented alongside virtually any combination of configurations and profiles.
Read More,.,.,.

MySQL Database Connectivity with JSP

A tutorial on how to get started with JavaServer pages using Sun's Tomcat web server Jakarta and connecting to a MySQL database to retrieve data. Provided
as a jumpstart for practicing with real-world applications. Tutorial is
intended for users who may have had previous web/database experience
but would like to get their feet wet in JSP



Terms of Agreement:
By using this article, you agree to the following terms...
1)
You may use this article in your own programs (and may compile it into
a program and distribute it in compiled format for languages that allow
it) freely and with no charge.
2)
You MAY NOT redistribute this article (for example to a web site)
without written permission from the original author. Failure to do so
is a violation of copyright laws.
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame.
4)
You will abide by any additional copyright restrictions which the
author may have placed in the article or article's description. 


This
tutorial will show you how to connect to a MySQL database using JSP
(JavaServer Pages) under Windows and Tomcat web server.  If you run
into problems or find errors, please let me know so I can fine-tune
this document.  This document will probably be most useful for those
who have done web scripting with MySQL databases before but would like
to get started with JSP/Servlets programming.  Database connectivity
provides a good foundation for learning any new language, as you can
practice making real-world applications in a database environment.

Requirements:
  1. MySQL
    http://www.mysql.com
  2. Tomcat - version 4.1.12 Standard used for this tutorial
    http://jakarta.apache.org/site/binindex.html
  3. Java 2 JRE - version 1.4.1 used for this tutorial
    http://java.sun.com/j2se/1.4.1/download.html
  4. MySQL Connector/J - version 2 used for this tutorial
    http://www.mysql.com/downloads/api-jdbc.html
Assumptions:
  1. It is assumed that you already have a MySQL database installed and a table to pull data from.
  2. It assumes you understand SQL, and probably have done some web/database scripting with other languages.
  3. The
    author uses the folder C:\Tomcat as the folder where Tomcat will be
    extracted, however, you can place the distribution files anywhere you
    wish.
  4. You know the basics of programming Java.  If you do not, I highly recommend you check out Sun's Java Tutorial
Section A - Installation
  1. Install
    the Java 2 JRE.  I put mine in C:\java\jre, which will be used in this
    tutorial, but you can put your anywhere you like. 
  2. Extract
    the Tomcat distribution files to a folder.  The default is
    jakarta-tomcat-4.1.12, but I chose to put the files in C:\Tomcat.
  3. Copy the MySQL Connector JAR file to the C:\Tomcat\common\lib folder (ie, mysql-connector-java-2.0.14.jar).
Section B - Environmental Variables
Add the following environmental variables to Windows:
JAVA_HOME=C:\java\jre
TOMCAT_HOME=C:\Tomcat



You can set environmental variables in Windows 2000/XP by going to:
Righy-click My Computer -> Properties -> Advanced -> Environmental Variables

You can set environmental variables in Windows NT 4 by going to:
Righy-click My Computer -> Properties -> Environment 

Section C - Working with Tomcat
To start the server, execute startup.bat.  To stop the server, execute shutdown.bat in the C:\Tomcat\bin folder.
By default, the Tomcat web server is access at this URL:
http://localhost:8080/

The root folder of the server is located in:
C:\Tomcat\webapps\ROOT

The root and default port can be changed in this file:
C:\Tomcat\conf\server.xml

Section D - Write Your Code!
You
can now start writing your JSP scripts.  Save it in a file with a JSP
extension and place it in the ROOT folder.  I have provided a simple
JSP script that demonstrates how to connect to a list data from a MySQL
database.

<%@ page import="java.sql.*" %>
<%
String connectionURL = "jdbc:mysql://localhost:3306/mydatabase?user=;password=";
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%>

<html><body>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
connection = DriverManager.getConnection(connectionURL, "", "");
statement = connection.createStatement();
rs = statement.executeQuery("SELECT * FROM mytable");

while (rs.next()) {
out.println(rs.getString("myfield")+"<br>");
}


rs.close();
%>

</body></html>

Obviously, you will want to change the username and password to match your database.  Also, the mydatabase value in the connectionURL represents the name of the MySQL database.  Change appropriately.  Finally, change the mytable and myfield
values in the script to match a table and field that exist within your
database.  If the public is granted access to the database, you can use
this as your connectionURL:
String connectionURL = "jdbc:mysql://localhost:3306/mydatabase"

Read More,.,.,.

Forum

Read More,.,.,.

Sorry, Forum Is Not Ready
Hi all, I think this information can be useful for you. If you plan to get your website, here is one good free web hosting provider to choose - 000webhost.com They provide hosting absolutely free, there is no catch. You get 1500 MB of disk space and 100 GB bandwidth. They also have cPanel control panel which is amazing and easy to use website builder. Moreover, there is no any kind of advertising on your pages. You can register here: href=http://www.000webhost.com/197483.html
Free Website Hosting

Search

Chat Box


ShoutMix chat widget
Looking for real singles? Find someone now on the world’s largest online dating network. FREE signup! Post a FREE ad w/5 photos, mingle in chatrooms, watch video intros , meet your soulmate! 1000 new photos posted every day. Meet someone NOW!

Article

Archive

IP