wiki:jazz/08-10-21

Version 25 (modified by jazz, 16 years ago) (diff)

--

2008-10-21

  • [S2H] PCHome 簡訊服務測試
    • PCHome 簡訊服務
    • Net::SMS::PChome 使用說明
    • Net-SMS-PChome 0.13 updated
      $ sudo apt-get -f install libdate-calc-perl libwww-mechanize-perl libcrypt-ssleay-perl libbit-vector-perl  libcarp-clan-perl
      $ wget http://people.debian.org.tw/~chihchun/debian/libnet-sms-pchome-perl/libnet-sms-pchome-perl_0.13-1_all.deb
      $ sudo dpkg -i libnet-sms-pchome-perl_0.13-1_all.deb
      $ wget http://search.cpan.org/CPAN/authors/id/K/KA/KAWASAKI/HTML-TagParser-0.14.tar.gz
      $ tar zxvf HTML-TagParser-0.14.tar.gz
      $ sudo cp HTML-TagParser-0.14/lib/HTML/TagParser.pm /usr/lib/perl5/HTML/
      
    • 範例程式:
        use strict;
        use Net::SMS::PChome;
      
        my $sms = new Net::SMS::PChome;
           $sms->login('username', 'password', 'auth_code');
           $sms->smsRecipient('0912345678');
           $sms->smsSend("The SMS be send by PChome SMS Service!");
      
        if($sms->is_success) {
           print "Successfully sent message to ".$sms->successcount." number!\n";
        } else {
           print "Something went horribly wrong!\n".
                 "Error: ".$sms->resultmessage." (".$sms->resultcode.")";
        }
      
    • 範例指令: 一行搞定
        perl -MNet::SMS::PChome -e 'send_sms("pchome_username", "pchome_password", "auth_code", "recipient", "messages text")'
      
    • 因為帳號密碼資訊是明碼寫在 Perl Script 裡面,所以必須把 Perl Script 打包成 Binary

NAS

JavaScript

  • jslibs - 在命令列環境下執行 javascript 的函式庫

Mobile Firefox

DRBD

NFSv4 Replication

AoE vs. iSCSI

Attachments (3)