Resize Image

Jumat, 30 Oktober 2009

Merubah Ukuran Gambar

if ($typeimage=='GIF'){
        $im_src = imagecreatefromgif($imagepath.$imagename);
}elseif ($typeimage=='PNG'){
        $im_src = imagecreatefrompng($imagepath.$imagename);
}else{
        $im_src = imagecreatefromjpeg($imagepath.$imagename);
}

    $src_width = imageSX($im_src);
    $src_height = imageSY($im_src);

    //Simpan dalam versi medium 90 pixel
    $dst_width = 90;
    $dst_height = ($dst_width/$src_width)*$src_height;
    $im = imagecreatetruecolor($dst_width,$dst_height);
    imagecopyresampled($im, $im_src, 0, 0, 0, 0, $dst_width, $dst_height, $src_width, $src_height);
    imagejpeg($im,$imagepath."medium_".$imagename);
    
    imagedestroy($im_src);

    imagedestroy($im);

Jalankan Lampp Saat StartUp

Rabu, 28 Oktober 2009

1. masuk ke terminal lalu ketikan crontab -e
2. ketikankan perintah berikut @reboot /opt/lampp/lampp start
3. lalu restart Linux. maka lampp tidak perlu di start lagi.

Copy and Rename an Oracle Database - (without export/import)

You may find it necessary to duplicate (clone) an Oracle database. One method is to use import/export. This method can work fine, but what if your database is too big? Another method is to make a copy of the current database and rename it. This month I will present an article that explains the steps necessary to copy and rename a database. This article will assume that the original database is called PROD and you want to create a TEST duplicate database.

List Error Oracle yang Sering Terjadi

ORA-01476: Divisor is equal to zero
Karena pembagi 0
SQL> select 1/0 from dual;
select 1/0 from dual
*
ERROR at line 1:
ORA-01476: divisor is equal to zero

Hari Nasional

Selasa, 27 Oktober 2009

27 Oktober 2009
Hari Listrik Nasional

 
28 Oktober 2009
Hari Sumpah Pemuda

command

rsync
rsync -avz --delete --exclude=/??  -e 'ssh -p 443/var/www/html/webserver/ tujuan:/var/www/html/webserver/

Tahapan Karier Menurut Mario Teguh

Minggu, 25 Oktober 2009


1. Melakukan Apa yang Bisa Dilakukan Orang Lain.
2. Melakukan Apa yang Sulit Dilakukan Orang Lain.
3. Melakukan Apa yang tidak Bisa Dilakukan Orang Lain.

Programming Community Index for January 2008

Programming Community Index for January 2008

Below are the complete list about Tiobe Ranks for programming language:

1. Java
2. C
3. VB
4. PHP
5. C++
6. Phyton
7. Perl
8. C#
9. Delphi
10. Javascript
11. Ruby
12. PL/SQL
13. SAS
14. D
15. COBOL

selengkapnya di: http://www.tiobe.com/tpci.htm

Pameran Komputer

Pameran Komputer di Beberapa Mall Jakarta bulan Oktober.

Yahoo! Hentikan Geocities

Sabtu, 24 Oktober 2009


Setelah memberikan pelayanan pada konsumennya selama 15 tahun sebagai Web Hosting Gratis yang di kenal dengan GeoCities akhirnya ditutup Yahoo! akhir tahun 2009 ini. Tahap awal yang dilakukan Yahoo! akan menghentikan registrasi account web hosting di Geocities. Bagi yang telah memiliki account pada layanan ini Yahoo! (yang di kutip dari PCMedia Edisi 07/2009) menyarankan untuk memindahkan halaman mereka ke layanan Yahoo!Web Hosting. Layanan WebHosting Yahoo! tersebut termasuk domain personal,dan tool lain seperti e-mail,pembangunan situs, dan bandwidth tak terbatas.

Singkatan - Singkatan (1)

AFAIK    :   As Far As I Know
ASAP      :   As Soon As Possible
BBL        :   Be Back Later
BBIIAF   :   Be Back A Flash
BFN         :   Bye For Now
BRB        :   Be Right Back
BTW       :   By The Way
CUL        :   See You Later
CMIIW   :   Corect Me If I’m Wrong
F2F         :   Face to Face
FYA        :   For You Amusement
FYI         :   For Your Information
GBU        :   God Bless You
HAYT      :   How Are Today
HHOK     :   Ha… Ha… Only kidding
IAFAU     :   I Am Fine And You (?)
IWMP      :   It Was My Pleasure
IMHO      :    In My Humble Opinion
IMO         :   In My Opinion
J/K           :   Just Kidding
LOL         :   Laughing Out Loud
NP            :   No Problem
OIC         :   Oh, I See
OTOH      :   On The Other Hand
OTF         :   On The Floor
OTW        :   On The Way
ROTFL     :   Rolling On The Floor Laughing
TNX  /THNX        :   Thanks
TIA          :    Thanks in Advance
YMMSVH :    You Make Me So Very Happy
WB           :    Welcome Back
YW           :    Your Welcome
JAPRI       :    Jalur Pribadi

Non aktifkan proses START UP di Windows

Masuk ke Register dengan ketik regidit di start-run

Telusuri   
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Edit
NoDriveTypeAutorun dengan value "ff" (huruf kecil tanpa danda kutif)

Mengschedulekan aplikasi dengan Crontab

Jumat, 23 Oktober 2009

Crontab adalah file yang dimiliki oleh setiap user di sistem Linux sebagai tempat kita mengatur Penjadwalan perintah.Cron [dibaca:SIRON] sendiri merupakan sebuah daemon (barjalan di backround/belakang layar) yang menjalankan tugas yang dijadwalkan pada suatu waktu di sistem operasi linux.
Sangat berguna untuk meringankan tugas2 Opertor seperti Send Email Automatis, Untuk melakukan turning data, atau menjalankan script-script yang perlu bekerja secara automatis.

 
 
 
 
Copyright © ramSon
Using RAM Theme