Wednesday, October 29, 2008

Delphi File Manager Commands

i think this command is useful to you guy's... because on my Last Project... i really2 need this command... for you i present this command that i get from http://mc-computing.com/languages/Delphi/DelphiFileIO.htm...

File Manager Commands

SysUtils/FileOpen and System/AssignFile have different commands for many of these

See SysUtils / File-management routines and System / I/O routines


Change Directory SetCurrentDir('c:\path')
Make Directory CreateDir('c:\path')
ForceDirectories('c:\path1\path2')
Remove Directory RemoveDir('c:\path')
RmDir(str)
Change Drive (no known function)
Rename a File RenameFile('test.txt', 'string.tst')
ChangeFileExt('test.txt', 'doc')
Delete a File DeleteFile('c:\*.tst') - Don't know if wildcards are allowed
Search for File t_str := FileSearch('readme.txt', 'c:\;c:\windows');
t_int := FindFirst ('c:\*.tst', attr, F) ;
Current Drirectory t_str := GetCurrentDir ;
Get File Attributes temp = FileGetAttr('c:\filename.tst')
Get File Mode TSearchRec.Attr (use with FindFirst or FindNext)
Set File Attributes FileSetAttr('c:\filename.tst', faReadOnly)
Get File Length TSearchRec.Size (use with FindFirst or FindNext)
FileSize(var F)
Get File Date/Time tempDate := FileGetDate(Handle) ;
Set File Date/Time FileSetDate(Handle, Age)
Test File existance if FileExists('c:\filename.tst') then
Test Directory existance if DirectoryExists('c:\temp') then
AdjustLinesBreaks(const S: string): string; - adjusts all line breaks in the string S to be true CR/LF


Wednesday, May 14, 2008

Bali Legend History : empu baradah dan dayu datu / Rangda Nateng Girah (calonarang Story).



Bali Legend History : empu baradah dan dayu datu / Rangda Nateng Girah (calonarang Story).

I’m from Bali, Born and grow up in Bali….. This Story I get from my friend and website (yanuar.wordpress.com / in Indonesian language).

Provenance Of Mpu Baradah And Dayu Datu / Rangda Nateng Girah ( From My Friend).

narrated in old world, There are 2 Brother and sister Pig who often eat rest of offerings in Dalem Temple and Prajapati Temple. Because the pig eat the rest of offerings and make temple areal become cleanness, the god who stay in those temples, become to feel happy and wish to give appreciation both the pig. At one moments, when the female pig eating in Dalem temple and the male page eating in Prajapati, the god which have place in both template give power to both of pig (Female pig with Power from God in Dalem Temple, and Male From Prajapati temple), and changing be a human. Shorten story the woman who name’s dayu datu / Rangda nateng dirah become dreadful and fearful with black magis, and the men who name’s mpu baradah with white magic.

miraculous widow in girah village

Dayu datu/ Rangda nateng dirah/ Calonarang is king of leak (people who can change become fire, animal etc, and make good and bad things with magic power) who’s life in dirah village in kediri empire. On these epoch, she can make a epidemic in kediri and make people dead shortly. In dirah village, calonarang have a school of Black Magic or pengleakan. All of the student is a female. Among of all student, she have four senior student (Nyi Larung, Nyi Lenda, Nyi Lendi, Nyi Sedaksa).

the level of Leak magic can show like this:

  1. Under Level

In This Level, people can become a animal like monkey, dog, chicken, pig, goat, etc.

  1. Midlle level

In this level, people can become an eagle, can fly high with noxious claw. Its eye can make a fire, also can become jaka tunggul or enau tree without leaf which its bar can release reek and fire

  1. Top Level

in this level, people can become bade (twenty one high rise corpse tower), and all of tower body from the fire which can make their prey become ash.

Calonarang become angry

calonarang have one pretty son who’s name Diah Ratna Mengali (diah ratna mengali not like her mother who have leak magic, she is have a heart of gold), but no young man in kediri empire want to be their husband and say the son of leak with black magic surely have black magic like her mother.

After listen this news from she student, calonarang become an angry and she swearing to make epidemic in kediri, and make all of kediri people become dead.

in night kajeng kliwon day calonarang with her student use their leak magic. with level of leak magic in dirah village, their become a monkey, frog, bade, eagle, etc. With their new body, they all around a dirah village while make a scary sound and make all of people in dirah to be scared. in the morning after night event of leak, one by one people in kediri become sick and in few minutes they dead. This event make all of chief in dirah feel wory, and they all tell the king of kediri about this event. Hear that, king of kediri (airlangga) become angry and ordering this job to his patih Madri (jendral Madri). Because the power of calonarang very strong, patih Madri finally become dead.

Calonarang secret book pengleakan magic

with the failed of patih Madri job, king airlangga call their Bagawanta (king priest) Empu Baradah to kill calonarang. Because Empu baradah and calonarang is brother and sister, empu baradah know how to kill calonarang. The big secret is a pengleakan magic book which stay in calonarang house. To get this book empu baradah order their son Empu Bahula to married with Ratna mengali and take the book. Short story, after empu bahula can get the book, calonarang who know this event become angry and challenging empu baradah to fight in Setra Gandamayu / Gandamayu Grave.

The battle between black magic and white magic in Gandamayu Grave

The Battle in Gandamayu grave is very hard, there are thousand of fire from calonarang army and empu baradah army with different rising battle in the sky. The Battle happened until morning, and the finally all calonarang army dead (because leak magic only can use in the night), and calonarang dead in empu Baradah weapon (pusaka Jaga Satru).

Tuesday, May 13, 2008

PHP Script in Wordpress

PHP Script in Wordpress.

This time I will show you all how to input a PHP code in wordpress.

  1. The first thing you must do……?

Open the page.php where place in “ [localhost site]\wordpress\wp-content\themes\default\page.php” (in this example I use a default wordpress themes). If this success, will showing script like this in your monitor.

2. The next Step is….?

Leave your PHP script on the comment // TEMPAT UNTUK SCRIPT PHP//

”. As example I wish leave this PHP script.

$a=2;$b=3;

$c=$a+$b;

echo"hasilnya adalah variable : $c"

3. The Last Step…..?

Please save your new page.php, and launch your wordpress. If your work done and success the browser will show the pages like this



Thanks... Have A nice Try......

Monday, May 12, 2008

Bali Information Post

Dear All my blog reviewer....

I'm very glad Because i can make this blog, and will give you all information Arround Bali and world . This blog will give you information about Music, Bali Cultural, Bali history, religion, social cultural, Economic, Technology, etc.

thanks...... For.... Your... Support...