Search By Google
Komentar
    Kalender
    Desember 2008
    S S R K J S M
    « Nop   Jan »
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
    Ngobrol Yuks
    Category
    Buy Your Wordpress E-commerce Theme. Buy Now



    Proactol







    UniqueHoodia



    PenisHealth



    MoreNiche



    SizeGenetics



    AppStore Charts

    Archive for Desember, 2008

    Paypal : How to add multiple items in one button

    Selasa, Desember 9th, 2008


    Hi, I was wondering if this was possible with PayPal cart or if I need to write up some JavaScript etc.

    So, I know when you use the _cart command and _upload you get item_x and amount_x etc, but when i tried to use it with just _cart and no _upload I get some error stating i need to enter in an amount.

    Does PayPal simply only allow you to add one item per button click? I would just use the 3rd party cart one but I need to be able to update the quantity within the cart.

    Here is what I’m trying to do: I have four products, and in one ordering section for ease of use I decided to have 4 input boxes and then an add to cart button. I then have a PHP script that will process the amount they put in, apply the correct price information, generate a form and submit it to paypal via javascript. I also have other sections on the site that just have one button per entry box and thoose also need to  be updated within the same cart.

    I’m not afraid of doing advanced things in PHP and JavaScript, I am just new to the PayPal cart ( that my client wanted me to use ) and I just don’t know all of its little quriks.

    The only thing I can think of is have four submits of a page, but once you submit the form you go to paypal…

    here is some code:

    <form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    
    <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    
    <input type="hidden" name="add" value="1">
    
    <input type="hidden" name="cmd" value="_cart">
    
    <input type="hidden" name="business" value="seller_1186539196_biz@stevenheller.net">
    <input type="hidden" name="item_name_1" value="Set of Four"  />
    
    <input type="hidden" name="amount_1" value="24.00"  />
    
    <input type="hidden" name="item_name_2" value="Color Placemat"  />
    
    <input type="hidden" name="amount_2" value="8.00"  />
    
    <input type="hidden" name="quantity_2" value="3"  />
    
    <input type="hidden" name="item_name_3" value="Fundraiser Level II - $10/set"  />
    
    <input type="hidden" name="amount_3" value="10.00"  />
    
    <input type="hidden" name="quantity_3" value="68"  />
    
    <input type="hidden" name="item_name_4" value="Fundraiser Level II - 68 sets @ $10/set"  />
    
    <input type="hidden" name="amount_4" value="680.00"  />
    
    <input type="hidden" name="quantity_4" value="1"  />
    </form>

    Linuxer : Setting Mail Server di Ubuntu Linux

    Senin, Desember 8th, 2008

    Yang harus diperlukan dan diinstall pada sistem linux anda, untuk menginstall paket pada distro yang lain silakan merujuk pada distro yang anda pakai:

    1.

    MTA (mail transer Agent )

    Mail transfer agent program yang digunakan untuk menerima dan mengirim email dari server anda,, yang digunakan disini adalah Postfix

    #apt-get install postfix
    2.

    Mail Filtering

    Digunakan untuk memfilter email yang masuk ke Server Mail anda untuk mendeteksi Spam & Virus, namun pada pembahasan kali ini tidak dibahas .. untuk topik advance pembahasan ini akan dibahas :D .
    3.

    Mail Delivery Agent

    Agar us bisa mendownload email dari lokasi yang lain kita membutuhkan server IMAP or POP3 disini banyak sekali pilihannya namun pada tutorial ini akan digunakan Dovecot.

    #apt-get install dovecot-common dovecot-imapd dovecot-pop3d

    Beberapa pilihan untuk IMAP & POP3 :
    1.

    Dovecot
    2.

    Courier
    3.

    Cyrus
    4.

    Webmail Server

    Agar Mail Server anda dapat diakses melalui lingkungan Web base anda memerlukan Webmail server berikut pilihannya:

    #apt-get install squirrelmail
    1.

    Squirrelmail
    2.

    OpenWebmail

    Yang digunakam pada tutorial ini adalah Squirrelmail
    5.

    WebServer (Lamp = Linux , apache , mysql, php)

    Untuk menjalankan Webmail Server anda membutuhkan Lamp sudah terinstalasi dengan baik ,, pada tutorial ini tidak dibahas bagaimana menkonfigurasi Lamp cobaah merujuk ke manual2 yang lain.

    Setelah anda berhasil menginstall paket2 yang disebutkan diatas step selanjutnya adalah megkonfigurasi Mail Server anda ….

    *

    Konfigurasi Dovecot
    o

    Menentukan Prorokol IMAP & POP3

    Edit konfigurasi pada /etc/dovecot/dovecot.conf

    tambahkan konfigurasi berikut: protocols = pop3 pop3s imap imaps
    o

    Memilih Mailboxes

    Agar mail disimpan pada home direktory maka kita edit konfigurasi /etc/dovecot/dovecot.conf

    rubahlah :

    #mail_location = maildir:~/Maildir menjadi mail_location = maildir:~/Maildir (pagarnya dihilangkan)
    o

    Testing2 dovecot

    root@w3hol:/home/rachmat# telnet localhost pop3

    Trying 127.0.0.1…

    Connected to localhost.

    Escape character is ‘^]’.

    +OK Dovecot ready.
    *

    Konfigurasi Alias squeirrelmail pada apache :

    karena saya menggunakan apache2 maka edit file konfigurasi /etc/apache/apache2.conf

    jika anda menggunakan distro fedora file konfigurasi ada pada /etc/apche/httpd.conf

    tambahkan script berikut pada bagian alias :

    Alias /webmail “/usr/share/squirrelmail/”

    Options Indexes MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

    jika anda menggunakan distro fedora anda tidak perlu mengkonfigurasi konfigurasi ini karena anda bisa langsung mengaksesnya dari http://localhost/webmail
    *

    okey sekarang kita selesai konfigurasi

    mari kita restart semua service yang dibutuhkan

    #/etc/init.d/apache2 restart untu distro fedora #/etc/init.d/httpd restart

    # /etc/init.d/dovecot restart

    #/etc/init.d/postfix restart

    buka browser … untuk mengakses squirrelmail buka alamat http://localhost/webmail

    dan login menggunakan user dan pass sistem linux anda… anda bisa berkirim dan menerima email di jaringan anda…. menggunakan email client seperti thunderbird, evolution dan lain2.

    Ruby : Learning Ruby 3 [Why Learning Ruby]

    Kamis, Desember 4th, 2008

    As stated earlier, since Ruby is an open source offering it is free. Many people have opted to purchase the license so that they can make it a cross platform language as per their needs. Ruby can easily recognize variable types all by itself. Due to this feature coders are not required to define variable types as we have to do in several other programming languages. Ruby’s dynamic typing saves a lot of time for programmers.

    Ruby has been provided to programmers with various class libraries which are bundled together. These class libraries start from the basic data types to advanced level thread and network programming. These class libraries have not been saturated yet and Ruby still is in the process of getting more libraries with time to make programming more simple and efficient.

    Ruby also comes with an effective garbage collector which avoids the problem of memory leaks to a great extent and takes care of the misuse and unnecessary occupancy of the memory.

    Ruby provides us with familiar syntaxes which are known to C++,Eiffel, Perl, and Python programmers. These syntaxes are composed of all the common features available for the programming like the comments, identifiers, reserved words, literals, arrays, Regular expressions etc.

    Ruby : Learning Ruby 2 [History of Ruby]

    Rabu, Desember 3rd, 2008

    Ruby was introduced by Yukihiro Matsumoto (known widely as “Matz”) in 1993 and was officially released by Matz in 1995.

    Rails framework was designed and given by David Heinemeier Hansson in 1994. It was developed under the MIT License system and thus made Ruby on rails an open source and free to be implemented by everyone.

    This is one important reason why Ruby on Rails has acquired a significant position in programming.

    Ruby : Learning ruby 1 [What is Ruby]

    Senin, Desember 1st, 2008

    Ruby was introduced by Yukihiro Matsumoto (known widely as “Matz”) in 1993. Ruby is a dynamic interpreted language which has many strong features of various languages. It is a strong Object oriented programming language which also has single inheritance as in Java. It also provides us with the feature called as mixins. Using mixins we can easily import methods from multiple classes using modules.

    Ruby also has the scripting feature similar to the Python and Perl. The Object oriented concept from C++ and Java also maintains the reliability of programming in addition to maintaining the security of code.

    Ruby is open source which means that it is free to be used; one does not need to pay anything to use it. Because of this feature of Ruby it is used worldwide by everyone.