Pengenalan OpenOffice.Org

logo openoffice.org OpenOffice adalah salah satu software sumber terbuka (open source).Software ini sememangnya berkualiti , senang digunakan dan percuma samada untuk kegunaan peribadi atau organisasi .OpenOffice.org dibangunkan berasaskan kepada StarOffice 6 dari Sun Microsystem.OpenOffice banyak digunakan pada Operating System Linux.Selain dari itu OpenOffice juga boleh digunakan pada Operating System Windows dan Sun Solaris.Aplikasi yang terdapat pada OpenOffice terdiri dari :

Aplikasi-aplikais diatas boleh didowload dan digunakan secara percuma.(download now).Artikel akan datang , mengenai serba sedikit manual untuk menggunakan aplikasi diatas.Jangan ketinggalan untuk membaca artikel akan datang dengan klik disini

Popularity: 12% [?]

Advertise Here

Bagaimana Record Video Streaming

Sejak akhir-akhir ini banyak website yang berunsur audio atau video streaming.Sebelum ini saya pernah menulis artikal mengenai software yang boleh download audio atau video di youtube.Selain dari software tersebut terdapat satu lagi software percuma yang boleh download video atau audio ke komputer.Software ini hanya boleh digunakan pada Operating System Windows NT/2000/XP/2003 Server.Apa yang menarik tentang software ini selain percuma ia guna tidak memerlukan komputer yang berkeupayaan tinggi.Komputer yang menggunakan prosessor Pentium II boleh digunakan.

Apa yang perlu anda lakukan hanya download software SDP Downloader ini yang bersaiz 2775KB.Setelah setelah install software ini ke komputer.Untuk menggunakanya hanya perlu copy url video atau audio dan paste ke program SDP pada menu open dan klik ok.Kemudian klik Go , program ini akan memulakan proses download dan save as kepada “.asf (boleh buka menggunakan Windows Media Player). Jika mengalami masalah sila beritahu saya.

Popularity: 10% [?]

Fungsi MySQL dalam PHP

Dalam artikel yang lepas, menerangkan tentang command SQL yang boleh kita pakai jika kita menggunakan PHP dengan database. Post kali ini pula, saya akan menerangkan tentang function2 MySQL yang boleh kita guna pakai dalam PHP termasuk dengan parameter function2 tersebut. Dalam bahagian 1 ini, saya hanya akan terangkan beberapa fungsi yang asas (yang selalu digunapakai jika kita bekerja dengan database).
mysql_connect();

Function ini digunakan untuk membuka sambungan dengan server mysql. Juga terdapat mysql_pconnect() yang fungsinya tidak jauh berbeza dengan mysql_connect()
Parameter : [string $server [, string $username [, string $password [, bool $new_link [, int $client_flags]]]]]

Contoh penggunaan biasa:

 

 

$link = mysql_connect(‘localhost’, ‘mysql_user’, ‘mysql_password’);if (!$link) {

die(‘Could not connect: ‘ . mysql_error());

}

echo ‘Connected successfully’;

mysql_close($link);

?>

mysql_close();

Function ini digunakan untuk menutup sambungan dengan server mysql.

Parameter : [resource $link_identifier]

Contoh penggunaan biasa:

 

 

$link = mysql_connect(‘localhost’, ‘mysql_user’, ‘mysql_password’);if (!$link) {

die(‘Could not connect: ‘ . mysql_error());

}

echo ‘Connected successfully’;

mysql_close($link);

mysql_error();

Function ini digunakan untuk menyimpan mesej error dari operasi sql yang terakhir.

Contoh penggunaan biasa:

 

 

$link = mysql_connect(“localhost”, “mysql_user”, “mysql_password”);mysql_select_db(“nonexistentdb”, $link);echo mysql_errno($link) . “: “ . mysql_error($link). \n;

mysql_select_db(“kossu”, $link);

mysql_query(“SELECT * FROM nonexistenttable”, $link);

echo mysql_errno($link) . “: “ . mysql_error($link) . \n;

mysql_select_db();

Function ini digunakan untuk mengaktifkan database pilihan kita.

Parameter : string $database_name [, resource $link_identifier]

Contoh penggunaan biasa :

 

 

$link = mysql_connect(‘localhost’, ‘mysql_user’, ‘mysql_password’);if (!$link) {

die(‘Not connected : ‘ . mysql_error());

}// make foo the current db

$db_selected = mysql_select_db(‘foo’, $link);

if (!$db_selected) {

die (‘Can’t use foo : ‘ . mysql_error());

}

mysql_query();

Function ini digunakan untuk menghantar request unik kepada server SQL (kepada database yang aktif)

Parameter : string $query [, resource $link_identifier]

Return Value : Jika anda menggunakan penyataan SELECT, SHOW, DESCRIBE, EXPLAIN, Server SQL akan return nilai yang dicari, tetapi jika anda menggunakan penyataan UPDATE, DELETE, DROP, true untuk query yang berjaya dan false jika terdapat error.

Contoh penggunaan biasa :

 

 

$result = mysql_query(‘SELECT * WHERE id=1′);if (!$result) {

die(‘Invalid query: ‘ . mysql_error());

}

mysql_fetch_assoc();

Fungsi : Sepertimana nama function ni, ia akan fetch data yang kita query (sebagai associative array). Terdapat juga fungsi mysql_fetch_row() dan mysql_fetch_array() yang fungsinya sedikit berbeza dengan mysql_fetch_assoc() ini.
Parameter : resource $result .Parameter untuk mysql_fetch_array() adalah result kepada mysql_query().

Return Value : Associative array yang merujuk kepada hasil query yang dihantar kepada server sql.

Contoh penggunaan biasa :

 

 

$conn = mysql_connect(“localhost”, “mysql_user”, “mysql_password”);if (!$conn) {echo “Unable to connect to DB: “ . mysql_error();

exit;

}

if (!mysql_select_db(“mydbname”)) {

echo “Unable to select mydbname: “ . mysql_error();

exit;

}

$sql = “SELECT id as userid, fullname, userstatus

FROM   sometable

WHERE  userstatus = 1″;

$result = mysql_query($sql);

if (!$result) {

echo “Could not successfully run query ($sql) from DB: “ .

mysql_error();

exit;

}

if (mysql_num_rows($result) == 0) {

echo “No rows found, nothing to print so am exiting”;

exit;

}

while ($row = mysql_fetch_assoc($result)) {

echo $row[“userid”];

echo $row[“fullname”];

echo $row[“userstatus”];

}

Dengan beberapa fungsi asas MySQL dalam PHP di atas, anda sudah boleh mula mempraktikkan penggunaan database dalam pengaturcaraan PHP anda.

Artikal ini diambil dari blog mdpai

Popularity: 9% [?]

Aplikasi-Aplikasi Menulis Blog

Bagi mereka yang mempunyai blog sendiri samada percuma atau berbayar aplikasi menulis amat perlu bagi menjimatkan masa , kewangan ,senang digunakan dan mudah untuk membuat “editors”.Menggunakan aplikasi ini kita tidak perlu login ke ruangan admin setiap kali membuat “posting”.Di sini saya menyenaraikan beberapa aplikasi yang boleh digunakan samada untuk komputer yang menggunakan Operating System Windows , GNU/Linux dan Mac.Bagi mereka yang belum mengetahui apa itu blog boleh langgan artikal kami bagi tidak ketinggalan membaca artikel mengenai pengenalan blog yang akan datang.

Operating System Windows
Windows Live Writer

Bagi pengguna yang menggunakan Operating System Windows Windows Live Writer menjadi pilihan kerana mempuyai banyak kelebihan dan amat sesuai kerana aplikasi ini dibangun oleh Windows sendiri.

windows live writer

Sebelum ini saya telah mencuba beberapa offline editor seperti Qumana, Ecto, Performancing dan sebagainya tetapi kesemuanya tidak memenuhi ciri-ciri yang saya inginkan. Antara ciri-ciri Windows Live Writer ialah

  • Boleh digunakan dengan blog servis daripada Windows Live Spaces, Sharepoint, Wordpress, Blogger, LiveJournal, TypePad, Movable Type dan sebagainya
  • Mempunyai fungsi WYSIWYG editor dimana anda anda menulis blog sama seperti menulis menggunakan Microsoft Word. Anda boleh memilih untuk melihat bagaimana tulisan tersebut kelihatan di blog anda
  • Memasukkan gambar, video dan jadual dengan mudah

Jika fungsi-fungsi sedia ada tidak cukup, anda boleh mendapatkan plugin yang boleh menambahkan pelbagai lagi fungsi kepada Windows Live Writer.Testimoni dari saudara Alang

Operating System GNU/Linux

Disini saya meyenaraikan antara aplikasi digunakan oleh mereka yang menggunakan Operating System GNU/Linux.

GNOME Blog Entry Poster - Aplikasi ini boleh digunakan untukBlogger.com / Blogspot.com Advogato.org Movable Type WordPress LiveJournal.com dan Pyblosxom

Drivel Journal Editor - Aplikasi ini boleh digunakan untuk LiveJournal, Blogger, MovableType, Advogato, dan Atom termasuk WordPress dan Drupal

BloGTK Blog Editor - Apliakasi ini boleh digunakan untuk Blogger, Movable Type, atau WordPress.

ScribeFire Firefox Extension -Aplikasi ini hanya boleh digunakan pada Browser Mozilla sahaja yang merupakan salah satu plugin yang terdapat pada Mozilla yang boleh digunakan untuk Movable Type WordPress LiveJournal.com dan banyak lagi.

Cara Untuk Install Aplikasi GNOME Blog Entry Poster , Drivel Journal Editor dan BloGTK Blog Editor

sh# sudo aptitude install gnome-blog
sh# sudo aptitude install drivel
sh# sudo aptitude install blogtk

Lain-Lain Aplikasi Yang Boleh Digunakan.

Tinggalkan komen anda sekiranya menggunakan salah satu aplikasi diatas atau lain-lain aplikasi.

Kredit : Beans

Popularity: 15% [?]

Command untuk SQL

Dibawah merupakan listing syntax atau command untuk MySQL (pemprosesan database).

General Commands
USE database_name
Change to this database. You need to change to some database when you first connect to MySQL.
SHOW DATABASES
Lists all MySQL databases on the system.
SHOW TABLES [FROM database_name]
Lists all tables from the current database or from the database given in the command.
DESCRIBE table_name
SHOW FIELDS FROM table_name
SHOW COLUMNS FROM table_name
These commands all give a list of all columns (fields) from the given table, along with column type and other info.
SHOW INDEX FROM table_name
Lists all indexes from this tables.
SET PASSWORD=PASSWORD(’new_password’)
Allows the user to set his/her own password.
Table Commands
CREATE TABLE table_name (create_clause1, create_clause2, …)
Creates a table with columns as indicated in the create clauses.
create_clause
column name followed by column type, followed optionally by modifiers. For example, “gene_id INT AUTO_INCREMENT PRIMARY KEY” (without the quotes) creates a column of type integer with the modifiers described below.
create_clause modifiers
  • AUTO_INCREMENT : each data record is assigned the next sequential number when it is given a NULL value.
  • PRIMARY KEY : Items in this column have unique names, and the table is indexed automatically based on this column. One column must be the PRIMARY KEY, and only one column may be the PRIMARY KEY. This column should also be NOT NULL.
  • NOT NULL : No NULL values are allowed in this column: a NULL generates an error message as the data is inserted into the table.
  • DEFAULT value : If a NULL value is used in the data for this column, the default value is entered instead.
DROP TABLE table_name
Removes the table from the database. Permanently! So be careful with this command!
ALTER TABLE table_name ADD (create_clause1, create_clause2, …)
Adds the listed columns to the table.
ALTER TABLE table_name DROP column_name
Drops the listed columns from the table.
ALTER TABLE table_name MODIFY create_clause
Changes the type or modifiers to a column. Using MODIFY means that the column keeps the same name even though its type is altered. MySQL attempts to convert the data to match the new type: this can cause problems.
ALTER TABLE table_name CHANGE column_name create_clause
Changes the name and type or modifiers of a column. Using CHANGE (instead of MODIFY) implies that the column is getting a new name.
ALTER TABLE table_name ADD INDEX [index_name] (column_name1, column_name2, …)
CREATE INDEX index_name ON table_name (column_name1, column_name2, …)
Adds an index to this table, based on the listed columns. Note that the order of the columns is important, because additional indexes are created from all subsets of the listed columns reading from left to write. The index name is optional if you use ALTER TABLE, but it is necesary if you use CREATE INDEX. Rarely is the name of an index useful (in my experience).
Data Commands
INSERT [INTO] table_name VALUES (value1, value2, …)
Insert a complete row of data, giving a value (or NULL) for every column in the proper order.
INSERT [INTO] table_name (column_name1, column_name2, …) VALUES (value1, value2, …)
INSERT [INTO] table_name SET column_name1=value1, column_name2=value2, …
Insert data into the listed columns only. Alternate forms, with the SET form showing column assignments more explicitly.
INSERT [INTO] table_name (column_name1, column_name2, …) SELECT list_of_fields_from_another_table FROM other_table_name WHERE where_clause
Inserts the data resulting from a SELECT statement into the listed columns. Be sure the number of items taken from the old table match the number of columns they are put into!
DELETE FROM table_name WHERE where_clause
Delete rows that meet the conditions of the where_clause. If the WHERE statement is omitted, the table is emptied, although its structure remains intact.
UPDATE table_name SET column_name1=value1, column_name2=value2, … [WHERE where_clause]
Alters the data within a column based on the conditions in the where_clause.
LOAD DATA LOCAL INFILE ‘path to external file’ INTO TABLE table_name
Loads data from the listed file into the table. The default assumption is that fields in the file are separated by tabs, and each data record is separated from the others by a newline. It also assumes that nothing is quoted: quote marks are considered to be part of the data. Also, it assumes that the number of data fields matches the number of table columns. Columns that are AUTO_INCREMENT should have NULL as their value in the file.
LOAD DATA LOCAL INFILE ‘path to external file’ [FIELDS TERMINATED BY ‘termination_character’] [FIELDS ENCLOSED BY ‘quoting character’] [LINES TERMINATED BY ‘line termination character’] FROM table_name
Loads data from the listed file into the table, using the field termination character listed (default is tab \t), and/or the listed quoting character (default is nothing), and/or the listed line termination chacracter (default is a newline \n).
SELECT column_name1, column_name2, … INTO OUTFILE ‘path to external file’ [FIELDS TERMINATED BY ‘termination_character’] [FIELDS ENCLOSED BY ‘quoting character’] [LINES TERMINATED BY ‘line termination character’] FROM table_name [WHERE where_clause]
Allows you to move data from a table into an external file. The field and line termination clauses are the same as for LOAD above. Several tricky features:

  1. Note the positions of the table_name and where_clause, after the external file is given.
  2. You must use a complete path, not just a file name. Otherwise MySQL attempts to write to the directory where the database is stored, where you don’t have permission to write.
  3. The user who is writing the file is ‘mysql’, not you! This means that user ‘mysql’ needs permission to write to the directory you specify. The best way to do that is to creat a new directory under your home directory, then change the directory’s permission to 777, then write to it. For example: mkdir mysql_output, chmod 777 mysql_output.

Privilege Commands
Most of the commands below require MySQL root access
GRANT USAGE ON *.* TO user_name@localhost [IDENTIFIED BY ‘password’]
Creates a new user on MySQL, with no rights to do anything. The IDENTIFED BY clause creates or changes the MySQL password, which is not necessarily the same as the user’s system password. The @localhost after the user name allows usage on the local system, which is usually what we do; leaving this off allows the user to access the database from another system. User name NOT in quotes.
GRANT SELECT ON *.* TO user_name@localhost
In general, unless data is supposed to be kept private, all users should be able to view it. A debatable point, and most databases will only grant SELECT privileges on particular databases. There is no way to grant privileges on all databses EXCEPT specifically enumerated ones.
GRANT ALL ON database_name.* TO user_name@localhost
Grants permissions on all tables for a specific database (database_name.*) to a user. Permissions are for: ALTER, CREATE, DELETE, DROP, INDEX, INSERT, SELECT, UPDATE.
FLUSH PRIVILEGES
Needed to get updated privileges to work immediately. You need RELOAD privileges to get this to work.
SET PASSWORD=PASSWORD(’new_password’)
Allows the user to set his/her own password.
REVOKE ALL ON [database_name.]* FROM user_name@localhost
Revokes all permissions for the user, but leaves the user in the MySQL database. This can be done for all databases using “ON *”, or for all tables within a specific databse, using “ON database_name.*”.
DELETE FROM mysql.user WHERE user=’user_name@localhost’
Removes the user from the database, which revokes all privileges. Note that the user name is in quotes here.
UPDATE mysql.user SET password=PASSWORD(’my_password’) WHERE user=’user_name’
Sets the user’s password. The PASSWORD function encrypts it; otherwise it will be in plain text.
SELECT user, host, password, select_priv, insert_priv, shutdown_priv, grant_priv FROM mysql.user
A good view of all users and their approximate privileges. If there is a password, it will by an encrytped string; if not, this field is blank. Select is a very general privlege; insert allows table manipulation within a database; shutdown allows major system changes, and should only be usable by root; the ability to grant permissions is separate from the others.
SELECT user, host, db, select_priv, insert_priv, grant_priv FROM mysql.db
View permissions for individual databases.

Artikal ini diambil dari blog mdpai.Artikal ini akan di tukar ke dalam Bahasa Malaysia dalam masa akan datang.Sekiranya anda berminat untuk menukarnya di alu-alukan.Pastikan anda langgan artikal untuk tidak ketinggalan.

Popularity: 7% [?]