Information Computer

Monday, August 29, 2011

System Restore


system restore in windows according to very useful. maybe not my windows are often problematic, but may make your windows. mostly caused by viruses that are not artificial persons responsible or the people who have enough to do. causing our windows system is very chaotic. old solution, maybe we'll re-install our windows system. but now you try this new solution. that is by restoring your system back to a previous state of good. how? following way.

1. open run (Windows + R)
2. typing restore
3. will appear the windows explorer. and look and run for files with names rstrui.exe
4. choose restore my conputer to an earlier time. click next
5. select the date that you think is the time where your system is very good. Now that your system can restore to that time. click next
6. and wait for the process of restoring
7. after your computer will restart and your system has been completed on a restore.

thank :)

need to know! 
System Restore is a component of Microsoft's Windows Me, Windows XP, Windows Vista and Windows 7, but not Windows 2000, operating systems that allows for the rolling back of system files, registry keys, installed programs, etc., to a previous state in the event of system malfunction or failure.

The Windows Server operating system family does not include System Restore. The System Restore built into Windows XP can be installed on a Windows Server 2003 machine, although this is not supported by Microsoft.

In Windows Vista and later versions, System Restore has an improved interface and is based on Shadow Copy technology. In prior Windows versions it was based on a file filter that watched changes for a certain set of file extensions, and then copied files before they were overwritten. Shadow Copy has the advantage that block-level changes in files located in any directory on the volume can be monitored and backed up regardless of their location.
READ MORE >> System Restore

Wednesday, August 24, 2011

Hide RAR file to JPG file

We know that in the RAR file has the security of a password. but its nothing wrong if we add security on the files that we consider important. This is not actually a way to add security. but merely a way to fool other people who are looking at our files. not to open an important file that file is the file we are in the RAR file.

1. open command prompt (START - Run - typing "CMD" - OK)
2. change directory to path your file. with command cd.

example cd "C:\Documents and Settings\User\My Document"

3. typing this command

copy /b file.jpg + file.rar name_file.jpg

example :

copy /b "my image.jpg"+"my file.rar" "just image.jpg"

RAR file result would be a JPG image file extension. to convert into RAR files again by changing the extension JPG menjad RAR. and do the opposite to turn it back into a JPG file. thank :)


need to know! 
A filename extension is a suffix (separated from the basefilename by a dot) to the name of a computer file applied to indicate the encoding (file format) of its contents or usage.

Some filesystems limit the length of the extension (such as the FAT file system not allowing more than three characters) while others (such as NTFS) do not. Unix filesystems accept the separator dot as a legal character.
READ MORE >> Hide RAR file to JPG file

Monday, August 22, 2011

Set DNS Client / IP Name Server

if we create a local network that there is a computer server and local web server. certainly you will also configure the DNS server so that web can be accessed using the domain name (eg google.com).

I did not explain how to configure a DNS server. this post I want to share a settlement of the problems I've ever experienced in practice the DNS server. after the DNS server has been configured. You also must set up the DNS client. Generally, we only need to enter DNS server IP. Different operating systems are also different way. if in our windows facilitated by a GUI (Graphic User Interface) is very friendly. in linux there were also some who have been using the GUI. but sometimes there is little constraint on linux.

problem is that sometimes not all network devices detected in the GUI. only detected if we use the command ifconfig. therefore we need a way of manually setting up the DNS client. this way.

1. open terminal

2. vi /etc/resolv.conf

3. add the text below

search yourdomain.com

nameserver ipnameserver

example :

search google.com

nameserver 192.168.2.1

4. save

5. check with command nslookup

example :

nslookup google.com


need to know! 
In the context of client-server architecture, a server is a computer program running to serve the requests of other programs, the "clients". Thus, the "server" performs some computational task on behalf of "clients". The clients either run on the same computer or connect through the network.

In most common use, server is a physical computer (a hardware system) dedicated to running one or more such services (as a host), to serve the needs of users of the other computers on the network. Depending on the computing service that it offers it could be a database server, file server, mail server, print server, web server, or other.

In the context of Internet Protocol (IP) networking, a server is a program that operates as a socket listener.

Servers often provide essential services across a network, either to private users inside a large organization or to public users via the Internet. For example, when you enter a query in a search engine, the query is sent from your computer over the internet to the servers that store all the relevant web pages. The results are sent back by the server to your computer.
READ MORE >> Set DNS Client / IP Name Server

Friday, August 19, 2011

Renew IP Dynamic With Command Linux

a time when I tried DHCP on linux debian server. I got a problem. the problem is not on its server. but on his client. client computer using ubuntu linux 11.04. the problem is when the DHCP server has been completed the client computer can not renew its IP with the IP that is given by the server.

I try to set in the edit connection. but to no avail. I have to browse the final choice to solve this problem. I have tried a few keywords. from keyword "DYNAMIC IP" to "HOW TO ADJUST THE DYNAMIC IP" and everything nothing works. until the end I was dragged into a forum to discuss Linux. and that's where I found the answer.

turned out to renew dynamic IP obtained from DHCP server. requires only a very simple command. The following command syntax to renew dynamic IP.

#dhclient interfaces

example :

#dhclient eth0

This command is valid only in the root user. if you have not as root you need to login as root with the following command.

$sudo su

or

$su root

or you can also command the following for brevity

$sudo dhclient interfaces

example

$sudo dhclient eth0

good luck and thank :)

need to know! 
An Internet Protocol address (IP address) is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing. Its role has been characterized as follows: "A name indicates what we seek. An address indicates where it is. A route indicates how to get there."

The designers of the Internet Protocol defined an IP address as a 32-bit number and this system, known as Internet Protocol Version 4 (IPv4), is still in use today. However, due to the enormous growth of the Internet and the predicted depletion of available addresses, a new addressing system (IPv6), using 128 bits for the address, was developed in 1995, standardized as RFC 2460 in 1998, and is being deployed worldwide since the mid-2000s.

IP addresses are binary numbers, but they are usually stored in text files and displayed in human-readable notations, such as 172.16.254.1 (for IPv4), and 2001:db8:0:1234:0:567:8:1 (for IPv6).

The Internet Assigned Numbers Authority (IANA) manages the IP address space allocations globally and delegates five regional Internet registries (RIRs) to allocate IP address blocks to local Internet registries (Internet service providers) and other entities.
READ MORE >> Renew IP Dynamic With Command Linux

Monday, August 15, 2011

PHP Date Function

While waiting for iftar. I want to continue post yesterday describing the functions of PHP. if yesterday we had know about the PHP string functions. Now we will discuss about the PHP date function.

Date function is used to retrieve the value in the date, hour, and all the things about the current time. The results of this function is a string which contains the date / hour according to the desired format. following the existing format in date function

a - "am" or "pm"
A - "AM" or "PM"
B - Swatch Internet time
d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"
D - day of the week, textual, 3 letters; i.e. "Fri"
F - month, textual, long; i.e. "January"
g - hour, 12-hour format without leading zeros; i.e. "1" to "12"
G - hour, 24-hour format without leading zeros; i.e. "0" to "23"
h - hour, 12-hour format; i.e. "01" to "12"
H - hour, 24-hour format; i.e. "00" to "23"
i - minutes; i.e. "00" to "59"
I (capital i) - "1" if Daylight Savings Time, "0" otherwise.
j - day of the month without leading zeros; i.e. "1" to "31"
l (lowercase 'L') - day of the week, textual, long; i.e. "Friday"
L - boolean for whether it is a leap year; i.e. "0" or "1"
m - month; i.e. "01" to "12"
M - month, textual, 3 letters; i.e. "Jan"
n - month without leading zeros; i.e. "1" to "12"
s - seconds; i.e. "00" to "59"
S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
t - number of days in the given month; i.e. "28" to "31"
T - Timezone setting of this machine; i.e. "MDT"
U - seconds since the epoch
w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
Y - year, 4 digits; i.e. "1999"
y - year, 2 digits; i.e. "99"
z - day of the year; i.e. "0" to "365"
Z - timezone offset in seconds (i.e. "-43200" to "43200")

sintax :

date (string format)

examples of the use of date functions :

date ("Ymd"); / / prints "2011-08-15"
date ("l, j FY"); / / prints "Monday, 15 August 2011"
date ("H: i: s"); / / prints "16:51:06"

very simple and very useful to complement your web page. may be useful for you. thank:)

need to know! 
In computer science, a subroutine (also called procedure, function, routine, method, or subprogram) is a portion of code within a larger program that performs a specific task and is relatively independent of the remaining code.

As the name "subprogram" suggests, a subroutine behaves in much the same way as a computer program that is used as one step in a larger program or another subprogram. A subroutine is often coded so that it can be started ("called") several times and/or from several places during a single execution of the program, including from other subroutines, and then branch back (return) to the next instruction after the "call" once the subroutine's task is done.

Subroutines are a powerful programming tool, and the syntax of many programming languages includes support for writing and using them. Judicious use of subroutines (for example, through the structured programming approach) will often substantially reduce the cost of developing and maintaining a large program, while increasing its quality and reliability. Subroutines, often collected into libraries, are an important mechanism for sharing and trading software. The discipline of object-oriented programming is based on objects and methods (which are subroutines attached to these objects or object classes).

In the compilation technique called threaded code, the executable program is basically a sequence of subroutine calls. Maurice Wilkes, David Wheeler, and Stanley Gill are credited with the invention of this concept, which they referred to as closed subroutine
READ MORE >> PHP Date Function

Sunday, August 14, 2011

PHP String Fungtions

how are you? hopefully fine. due to the following post I will discuss about the functions of a string in PHP. functions in PHPfunctions I will post it here. following functions are string functions that are often used.

string functions are the functions used to manipulate a string for a particular purpose. The following is a PHPstring functions.
  1. Addslash
    • Used to add a backslash character (\) on a string.It aims to use the query string to the database. examples of characters that need to be backslash (\) is the single quotes ('), two quotation marks ("), marks a backslash (\), and the null character.
    • sintax : addslash(string)
  2. Stripslash
    • Used to remove the backslash character (\) on a string.
    • sintax : stripslash(string)
  3. Crypt
    • Used to encrypt the DES method of a string. use of the crypt function can be added to a string parameter 'salt'. was added to determine the basis of randomization. If the 'salt' string is not added to the PHP crypt function will determine its own 'salt' is a random string.
    • sintax : crypt(string [, salt])
  4. Echo
    • Used to print the contents of a string or argument.
    • sintax : echo string
  5. Explode
    • Used to break up a string based on a specific list separator and put the result into a variable array
    • sintax : explode (separator string, string [, integer limit])
  6. Implode
    • used to generate a string from each of the elements of an array. The resulting string is separated by a string has been determined previously.
    • sintax : implode (separator string, array)
  7. StripTags
    • Used to remove the code in a string of HTML tags.
    • sintax : striptags (string [,string exceptions])
  8. StrLen
    • Used to calculate the number of characters of a string.
    • sintax : strlen (string)
  9. StrPos
    • Used to find the first position of a sub string in a string. This function is typically used to search a sub string within a string.
    •  sintax : strpos(string, sub string)
  10. Str_Repeat
    • Used to repeat the content of a string.
    • sintax : str_repeat(string , number of repetitions)
  11. StrToLower
    • Used to convert a string to lowercase
    • sintax : strtolower(string)
  12. StrToUpper
    • Used to convert a string to uppercase
    • sintax : strtoupper(string)
  13. SubStr
    • Used to retrieve a sub-string with a certain length of a string at a particular position as well.
    • sintax : substr(string , integer start position, integer end position)
  14. SubStr_Count
    • Used to calculate the number of substring in a string.
    • sintax : substr_count(string , string substring)
  15. UCFirst
    • Used to replace the first character in a string to uppercase.
    • sintax : ucfirst(string)
  16. UCWord
    • Used to replace the first character of each word in a string to uppercase.
    • sintax : ucword(string)
thank :)

need to know! 
In computer programming, a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and/or the length changed, or it may be fixed (after creation). A string is generally understood as a data type and is often implemented as a byte (or word) array that stores a sequence of elements, typically characters, using some character encoding. A string may also denote more general array data types and/or other sequential data types and structures; terms such as byte string, or more general, string of datatype, or datatype-string, are sometimes used to denote strings in which the stored data does not (necessarily) represent text.

Depending on programming language and/or precise datatype used, a variable declared to be a string may either cause storage in memory to be statically allocated for a predetermined max length or employ dynamic allocation to allow it to hold chronologically variable number of elements. When a string appears literally in source code, it is known as a string literal and has a representation that denotes it as such.
READ MORE >> PHP String Fungtions

Saturday, August 13, 2011

Connect PHP With MySQL

The previous post I've described a little about MySQL functions in PHP. Maybe in your previous posts are still confused. Because I was just giving an explanation without an example.Following I will give an example of using the mysql functions in php. So, we will discuss examples of how to connect PHP with MySQL.

The first step we create a file named config.php which serves to connect a PHP file with MySQL.

config.php

<?php
mysql_connect("localhost","root","");
mysql_select_db("data");
?>

note :
"localhost" = hostname MySQL
"root"         = username MySQL
""                = password MySQL (password is not filled)
"data"         = database name

This is the default if you use XAMPP for local web server. Customize to your web server. Next create a file named index.php.

index.php

<?php
include('config.php');
$query= mysql_query("select * from table_data");
$rows = mysql_num_rows($query);
echo "Number of rows = $rows <p>";
while ($result = mysql_fetch_array($query)){
    echo "$result[0]<br>";
}
?>

note :
table_name = table name used (adjust yours).

if successful will appear as shown below




Connect PHP WIth MySQL


I hope this post helpful to us all. sorry if there is one word or a typo. sorry if things go wrong. ask if anyone on this please post a comment below. thank:)
READ MORE >> Connect PHP With MySQL

Tuesday, August 9, 2011

MySQL

MYSQL is the software used to manage databases or what is often called the Database Management System (DBMS). MySQL is a database software that is usually used in server. MySQL is very popular in web-based programming, primarily in PHP and Perl programming. MySQL is an open source software. although generally very commonly used in Linux, but now that MySQL has been present in Windows. in 2002 and 2001 MySQL get the award as the best database for Linux server version of Linux Magazine and as a favorite database in 2000.

Advantages of MySQL.Column Type
  1. MySQL has a pretty good table structure and flexible.
  2. MySQL server has full service and functionality that support the SELECT and WHERE in the query.
  3. The ability to connect to the MySQL client using TCP / IP, Unix socket (Unix), or Named Pipes (NT).
  4. MySQL can be used to handle multiple users at the same time.
  5. MySQL stable function without constraints.
  6. MySQL has a pretty good speed and capable of processing more SQL per unit time.
  7. Security on the MySQL system has several layers of security such as levels subnetmask, hostname, and permits the user access to a detailed licensing system as well as encrypted passwords
  8. MySQL is a database of open source (free).
  9. MySQL database is supported with a very complex data types.
  10. MySQL database has various tools that can be used for database administration.
  11. MySQL has an interface to various applications and programming languages ​​using the API functions (Application Programming Interface).
  12. The ability to detect an error (error code) on the client uses more than twenty languages.
  13. MySQL has the ability to handle large-scale databases, with the number of records more than 50 million and 60 thousand and 5 billion row table. Moreover, it can accommodate up to 32 index index on each table.
for how to use MySQL and its query will be discussed in the next post. thank :)

need to know! 
A database is an organized collection of data for one or more purposes, usually in digital form. The data are typically organized to model relevant aspects of reality (for example, the availability of rooms in hotels), in a way that supports processes requiring this information (for example, finding a hotel with vacancies). This definition is very general, and is independent of the technology used.

The term "database" may be narrowed to specify particular aspects of organized collection of data and may refer to the logical database, to physical database as data content in computer data storage or to many other database sub-definitions..
READ MORE >> MySQL

Monday, August 8, 2011

Mysql Functions In PHP

Earlier we know that PHP has a good connectivity to multiple databases. one of them with MySQL. because in PHP has several functions that are used to MySQL. The following functions.

mysql_connect (Host, Username, Password)
used to connect MySQL database with PHP files.
example : $var = mysql_connect("localhost","root","password").

mysql_close (variable_open_mysql)
used to close the MySQL database connection with PHP files.
example : mysql_close($var).

mysql_select_db(database name)
used to select the database that is used.
example : mysql_select_db("database").

mysql_query(query)
used to run a query.
example : $q = mysql_query("select * from data").

mysql_num_row(variable_query)
used to determine the number of rows in the result of a query.
example : $row = mysql_num_row($q).

mysql_fetch_array(query)
used to display the results of a query in the form of an array.
example : $result = mysql_fetch_array($q).

This new course may be necessary to be submitted. actually there are still others that I have not convey. therefore when the time comes I will update this article. thank :)

need to know! 
In computer science, a subroutine (also called procedure, function, routine, method, or subprogram) is a portion of code within a larger program that performs a specific task and is relatively independent of the remaining code.

As the name "subprogram" suggests, a subroutine behaves in much the same way as a computer program that is used as one step in a larger program or another subprogram. A subroutine is often coded so that it can be started ("called") several times and/or from several places during a single execution of the program, including from other subroutines, and then branch back (return) to the next instruction after the "call" once the subroutine's task is done.

Subroutines are a powerful programming tool, and the syntax of many programming languages includes support for writing and using them. Judicious use of subroutines (for example, through the structured programming approach) will often substantially reduce the cost of developing and maintaining a large program, while increasing its quality and reliability. Subroutines, often collected into libraries, are an important mechanism for sharing and trading software. The discipline of object-oriented programming is based on objects and methods (which are subroutines attached to these objects or object classes).

In the compilation technique called threaded code, the executable program is basically a sequence of subroutine calls. Maurice Wilkes, David Wheeler, and Stanley Gill are credited with the invention of this concept, which they referred to as closed subroutine
READ MORE >> Mysql Functions In PHP

Sunday, August 7, 2011

PHP

PHP stands for "Hypertext Preprocessor". PHP is a server-side scripting language that integrates with HTML to create dynamic web pages. so php is a scripting language that is attached to the HTML that is server-side.

server-side scripting is the syntax and commands given will be completely executed on the server but is included in an HTML document. so the server will run and process the PHP file and the browser will display a HTML file. so users will not be able to see the PHP program code and the security of a web page to be more secure

advantages and capabilities of PHP.
  1. Open Source (Free).
  2. With multiple OS support.
  3. Can send the HTTP header.
  4. May set cookies.
  5. set authentication and redirect users.
  6. good connectivity to multiple databases, such as
    • Oracle
    • Sybase
    • mSQL
    • MySQL
    • Solid
    • PostgreSQL
    • Adabas
    • File.Pro
    • Velocis
    • dBase
    • Unix dbm
  7. can integrate with several external libraries
  8. supports communication with other services
There are several ways to start writing PHP scripts.
  1. <?php Script PHP ?>
  2. <? Script PHP ?>
  3. <% Script PHP %>
  4. <script language=PHP>Script PHP</script>

Asked if there is please leave a message on this post. thank you for your attention :)

need to know! 
Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the web server to generate dynamic web pages. It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript. The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.

From a security point of view, server-side scripts are never visible to the browser as these scripts are executed on the server and emit HTML corresponding to user's input to the page.

When the server serves data in a commonly used manner, for example according to the HTTP or FTP protocols, users may have their choice of a number of client programs (most modern web browsers can request and receive data using both of those protocols). In the case of more specialized applications, programmers may write their own server, client, and communications protocol, that can only be used with one another.

Programs that run on a user's local computer without ever sending or receiving data over a network are not considered clients, and so the operations of such programs would not be considered client-side operations..
READ MORE >> PHP

Friday, August 5, 2011

JavaScript PopUp Window

sometimes if we create a web we will need something called a popup window. popup window is used to bring up a web page in a new window whose size can be set. we can make a popup using javascript. The following source code to create a popup window with javascript.

Create a file with the name index.php

<html>
<head>
<title>PopUp Window</title>
<script>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page"+id+"=window.open(URL,'"+id+"', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=0, width=250, height=250, left =304,top = 150.5');");
}
</script>
</head>
<body>
<a href="javascript:popUp('popup.html')">popup</a>
</body>
</html>

nb : for green text should be in a row (do not use the enter key).

then make more of a web page for pages that appear in a popup window with the name popup.html .

<html>
<head>
<title>popup</title>
</head>
<body>
PopUp Window
</body>
</html>

That simple example of using a popup window with javascript. may be useful. thank :)


need to know! 
Pop-up ads or pop-ups are a form of online advertising on the World Wide Web intended to attract web traffic or capture email addresses. Pop-ups are generally new web browser windows to display advertisements. The pop-up window containing an advertisement is usually generated by JavaScript, but can be generated by other means as well.

A variation on the pop-up window is the pop-under advertisement, which opens a new browser window hidden under the active window. Pop-unders do not interrupt the user immediately and are not seen until the covering window is closed, making it more difficult to determine which web site opened them.
READ MORE >> JavaScript PopUp Window

Thursday, August 4, 2011

ASCII Code With JavaScript

this time I will try to explain about how to find the ASCII code keyboard with javascript. so when we typed one key on the keyboard will display a message box that displays the number or the ASCII code of the key. I'll give the source code of a simple javascript. for more details, please see the source code.

<head>
<script LANGUAGE="JavaScript">
function tampil(e)
{
alert(e.keyCode);
}
</script>
</head>
<body onload='document.getElementById("nama").focus()'>
<label>type here :</label>
<input type="text" id="nama" size="15" onKeyUp="tampil(event);"><br>
</body>

that's the way to find out the ASCII code of the keyboard keys we press with JavaScript. ask if anyone in the written comments below. thank :)

need to know! 
The American Standard Code for Information Interchange (ASCII) is a character-encoding scheme based on the ordering of the English alphabet. ASCII codes represent text in computers, communications equipment, and other devices that use text. Most modern character-encoding schemes are based on ASCII, though they support many more characters than ASCII does.

US-ASCII is the Internet Assigned Numbers Authority (IANA) preferred charset name for ASCII.

Historically, ASCII developed from telegraphic codes. Its first commercial use was as a seven-bit teleprinter code promoted by Bell data services. Work on ASCII formally began on October 6, 1960, with the first meeting of the American Standards Association's (ASA) X3.2 subcommittee. The first edition of the standard was published during 1963, a major revision during 1967, and the most recent update during 1986. Compared to earlier telegraph codes, the proposed Bell code and ASCII were both ordered for more convenient sorting (i.e., alphabetization) of lists and added features for devices other than teleprinters.

ASCII includes definitions for 128 characters: 33 are non-printing control characters (now mostly obsolete) that affect how text and space is processed; 95 are printable characters, including the space, which is considered an invisible graphic. The most commonly used character encoding on the World Wide Web was US-ASCII until December 2007, when it was surpassed by UTF-8.
READ MORE >> ASCII Code With JavaScript

Tuesday, August 2, 2011

Ajax Javascript

May still be many who do not know what it was ajax. I think ajax is a web-based programming techniques used to create an interactive web application. Ajax is a combination of server side scripting and client side scripting. so ajax is some combination of Web programming such as javascript, PHP, DOM, HTML, and others.

ajax point will update the contents of a web without reloading process. ajax will do so working in an asynchronous data exchange. please note the exchange of data has 2 post and get methods. ajax script this time using two methods. The following examples use the ajax script.

if you try this script at home. Your computer must be installed xampp as a stand-alone server (localhost).

script file index.php

<html>
<head>
<script src=ajax.js></script>
</head>
<body>
<input type=text id=nama >
<input type=submit onclick=kirim("POST") value=POST>
<input type=submit onclick=kirim("GET") value=GET><br>
<div id=hasil />
<body>
</html>

script file ajax.js

var ajax;
if(window.ActiveXObject){
    ajax = new ActiveXObject("MicrosoftXMLHTTP");
}else {
    ajax = new XMLHttpRequest();
}

function proses(metode,url,params,id,output) {
    if (metode == 'POST'){
        ajax.open("POST",url,true);
        ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    }else{
        ajax.open("GET",url+'?'+params,true);
        params = null ;
    }
    ajax.onreadystatechange = function Response(){
        respon =  ajax.responseText;
        obj = document.getElementById(id) ;
        switch(output){
            case 'innerHTML' : obj.innerHTML = respon;
                break ;
        }
    }
    ajax.send(params);
}

function kirim(metode){
    id = "hasil" ;
    output = 'innerHTML' ;
    nama = document.getElementById('nama').value ;
    url = "ajax.php";
    var params = "nama="+escape(nama);

    proses(metode,url,params,id,output);
}

script file ajax.php

<?php
    if(isset($_POST['nama'])){
        $text1 = $_POST['nama'];
        echo $text1." <i>metode post</i>" ;
    }else if(isset($_GET['nama'])){
        $text2 = $_GET['nama'];
        echo $text2." <i>metode get</i>" ;
    }else{
        echo "null";
    }
?>

create a third file, and be simple ajax. thank :)
READ MORE >> Ajax Javascript

Monday, August 1, 2011

Setting Internet USB Modem In Ubuntu

Setting Intenet USB Modem In Ubuntu
need to be considered for the linux version 10.04 down. must install the files below first.
Name FileLink Download
Udev http://ubuntu.pesat.net.id/archive//pool/main/u/udev/udev_162-2_i386.deb
Usb-modemswitch-datahttp://ubuntu.pesat.net.id/archive//pool/main/u/usb-modeswitch-data/usb-modeswitch-data_20100826-1_all.deb
Usb-modemswicthhttp://ubuntu.pesat.net.id/archive//pool/main/u/usb-modeswitch/usb-modeswitch_1.1.4-1_i386.deb

for the linux version 10.04 and above do not need to install the files above. follow these steps for setting intenet with USB modem in ubuntu.
  1. usb modem plugs
  2. if it is detected, click the network connection tray icon - click on edit
  3. Mobile Broadband tab - click add
  4. choose your provider's country - click forward
  5. choose your provider  - click forward
  6. choose your billing plan - click forward
  7. click apply.

how to activate the following.
  1. click the network connection tray icon
  2. click your connection name.
  3. finish.
    post a comment if anyone asked. thank :)

    need to know! 
    A modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information. The goal is to produce a signal that can be transmitted easily and decoded to reproduce the original digital data. Modems can be used over any means of transmitting analog signals, from light emitting diodes to radio. The most familiar example is a voice band modem that turns the digital data of a personal computer into modulated electrical signals in the voice frequency range of a telephone channel. These signals can be transmitted over telephone lines and demodulated by another modem at the receiver side to recover the digital data.

    Modems are generally classified by the amount of data they can send in a given unit of time, usually expressed in bits per second (bit/s, or bps). Modems can alternatively be classified by their symbol rate, measured in baud. The baud unit denotes symbols per second, or the number of times per second the modem sends a new signal. For example, the ITU V.21 standard used audio frequency-shift keying, that is to say, tones of different frequencies, with two possible frequencies corresponding to two distinct symbols (or one bit per symbol), to carry 300 bits per second using 300 baud. By contrast, the original ITU V.22 standard, which was able to transmit and receive four distinct symbols (two bits per symbol), handled 1,200 bit/s by sending 600 symbols per second (600 baud) using phase shift keying.
    READ MORE >> Setting Internet USB Modem In Ubuntu

    Followers