Lagi nyari IDE untuk ASP.NET setelah muter-muter dapet alamat http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=49
di situ ada perbandingan nya.. silahkan dicoba-coba
Menghitung hari, detik demi detik…hehe its from one of KD’s song lyric
Today i got a task, i have to build a daily report for LPP production that i have to count the day in this year for current day ??? how come…
The trick… i am using MySQL query to do that.. see the code bellow
// — Hitung jumlah hari sampai hari ini
$res = $db->sql_query(“SELECT DAYOFYEAR(NOW()) as jml”);
$row = $db->sql_fetchrow($res); $jmlHari = $row[jml];// — Hitung jumlah hari tahun ini
$res = $db->sql_query(“SELECT DAYOFYEAR(‘”.date(“Y”).”-12-31′) as jml”);
$row = $db->sql_fetchrow($res); $jmlHariSeTahun = $row[jml];
Hello mac, im going to try to install MySQL on OSX..but i got an error and I want to change my my.cnf configuration, when i type su and type for the password..there is an error. As i remember, i never type a password for root user on installation process..how could be any root password there ??? … based on OSX Help icon..i found this..
Enabling the root user
The root user, sometimes called the superuser, is a special user account in Mac OS X that has read and write privileges to all areas of the file system. The root user can move and delete any file in the system, including system files not available to any other user. Because it’s easy to damage the computer by moving or deleting some files, use the root account with extreme caution.
By default the root account is not active.
To enable the root user:
Open NetInfo Manager, located in Applications > Utilities.
Choose Security > Enable Root User and type a password for the root account. You may need to type an administrator password to make these changes.
Menyimpan data Array ke database
Published February 20, 2007 Catatan/ MyNotes , PHP , Programming Leave a CommentSaya memiliki satu field yang isinya berupa string dengan pembatas `|`. Misalkan saya ingin
meyimpan data sebagai berikut :
1. Agus menyukai Pisang,Nangka,Pear,Jeruk
2. Riri menyukai Nangka,Durian
3. Adi menyukai Durian,Pepaya,Rambutan
Data yang akan disimpan kedalam database :
$data[0]['nama'] = ‘Agus’; $data[0]['suka_buah'] = ‘Pisang|Nangka|Pear|Jeruk’;
$data[1]['nama'] = ‘Riri’; $data[1]['suka_buah'] = ‘Nangka|Durian’;
$data[2]['nama'] = ‘Adi’; $data[2]['suka_buah'] = ‘Durian|Pepaya|Rambutan’;
Namun saya juga ingin data tersebut dipilih dengan menggunakan checkbox sbb :
Pisang
Nangka
Pear
Jeruk
Durian
Pepaya
Rambutan
Ini adalah kumpulan skrip jawa (JavaScript) yang saya buat untuk keperluan dan mempermudah pekerjaan saya. Selamat menikmati…
Menghapus isi dari komponen dalam satu form
Suatu saat saya ingin menghapus seluruh isi dari komponen yang ada di dalam tag FORM
Saya tidak dapat menggunakan fungsi reset() karena apabila data sudah di POST, fungsi reset
bertindak layaknya UNDO.. jd hanya mengembalikan ke nilai awal, maksud fungsi ini adalah benar-benar mengkosongkan isi datanya.
ini kodenya…
<script>
var hapusFilter = function()
{
var el = Form.getElements(‘filter’);
el.each(function(item){
if (item.type!=‘button’) if (item.type!=‘submit’) item.clear();
});
}
</script><!– Seluruh component di dalam tag ini akan dihapus datanya –>
<form id=“filter” name=“” action=“” method=“GET”>
<input type=“text” id=“txt1″ name=“txt1″ value=“123″>
</form>
Ingat fungsi Form.getElements(‘filter’) : filter merupakan ID form yang kita miliki.
Klik link berikut untuk melihat catatan lainnya Continue reading ‘Catatan JavaScript’
Ini adalah beberapa catatan untuk penggemar PHP…beberapa saya buat adalah bagian dari project saya dan akan selalu di update (mudah-2an)
, selamat menikmati…
Memformat string.
Pada suatu hari saya membutuhkan fungsi untuk memformat tampilan NPWP
karena data NPWP saya simpan dalam database tanpa menggunakan tanda `.` dan `-`
dengan alasan untuk menghemat storage.
ini kodenya…
/**
* Return formated NPWP ’99.999.999.9-999.999′ for display purpose
* param string NPWP
*/
function getFormatedNPWP($npwp) {
$ret = substr($npwp,0,2).“.”
.substr($npwp,2,3).“.”
.substr($npwp,5,3).“.”
.substr($npwp,8,1).“-”
.substr($npwp,9,3).“.”
.substr($npwp,12,3);
return $ret;
}
Klik link berikut untuk melihat catatan lainnya
Continue reading ‘Catatan PHP’
Membuat fungsi `select all` untuk checkbox
Published February 20, 2007 Catatan/ MyNotes , Javascript , Programming Leave a CommentDalam menampilkan table, kadang kita perlu membuat pilihan dengan checkbox
biasanya digunakan untuk memilih baris-baris yang ada pada tampilan table.
Namun user juga ingin mendapatkan kemudahan apabila user ingin memilih semua `select all`
atau `unselect` pada tampilan table, bayangkan jika ada seratus baris – apakah user harus
meng-klik sebanyak seratus baris juga ?
OK mari kita buat fungsi nya, sebelumnya download terlebih dahulu library prototype.js
di www.prototypejs.org karena kita akan menggunakan library ini untuk mempercepat proses
pembuatannya..
Continue reading ‘Membuat fungsi `select all` untuk checkbox’
kesimpulan menggunakan vi :
################
#Cursor pointer :
k
h l
j
#InsertAppendText :
O (huruf `O` besar)
———-
I–i–a–A
———-
o (huruf `o` kecil)
#Lainnya :
r,R : replace/ overwrite
nx : hapus kanan sebanyak (n)
2dw : delete 2 word (hapus 2 kata)
dd : delete d (hapus baris)
D : delete –>
u : undo
U : undo satu baris
200G : goto line 200 (bisa jg pk :200)
: find (cari) sesudahnya
2Y : copY 2 line (baris)
P : paste yang sudah dicopy
(kesimpulan baca dari
medyes.wordpress.com)
OSX86 Installation PC

Here i am gonna tell you step-by-step what i’ve done with my Compaq Presario V1000 Notebook to install OS X in it.
Requirement :
1. Intel or AMD that has SSE2 or Higher
2. Storage Space about 6 GB for (OSX)
Preparation :
1. OSX86 installer
2. CPU ID software to get info about, is our PC has SSE2 or higher.
Continue reading ‘OSX86 : Install OS X on Intel’s chip’
Why sometime its hard to develop project at government institution.
Published January 26, 2007 motion Talk Leave a CommentI’ve been working at government institution for about 5 years, i was work at Industry Department (Direktorat Insdustri Kecil Menengah) as a web developer and sometimes i am develop desktop application too. and now i am working at Tax Department as Consultant and web developer.. since i work with that two department there is no clear direction about what they want to build… we doesnt have fix blue print about what we build now. and sometimes an IT product or IT implementation is not supported by ‘Kebijakan’ so we cannot achieve what we want to achieve. There is no clear view….
Some of my friends that having a project with government institution has same problem as what i have explain above. They always face … continued..
Recent Comments