Monday, 8 October 2012

Hidup Ini

peliknya hidup ini, tergores hidup warna warni
dalam kehampaan jiwa yang sepi..
membunuh bongkahan awan hitam tersipu layu
keindahan hidup merayu merdu

dan aku terkikis debu membatu.
jiwa liar terpaku membisu
entah kemana yang ingin dituju
dengan mencari sisa kehidupan masa lalu

kilauan asam yang terpatri
berhembus alunan sampan yang tertatih
membawa angan hingga ketepian

kusodorkan bunga harapan
yang berbalaskan keresahan
dalam hati ku berdendang sepi
tapak hidup yang harus ku jalani

harapan tak pernah sirna
selama hujan mengikis keliru hati
helaian tanya ku berdoa
demi hak yang terbagi
ku genggam asa untuk masa yang abadi

aku manusia dengan ironi

Pengenalan CURL

CURL adalah suatu command line (jadi kayak command cmd ato terminal) tool yang sangat terkenal. curl memungkinkan kita melakukan komunikasi langsung dengan berbagai protokol terkenal di internet.

Curl mendukung protokol FTP (File Transfer Protocol) , FTPS (FTP/SSL), HTTP (Hyper Text Transfer Protocol), HTTPS (HTTP/SSL) , SCP (Secure Copy Protocol), SFTP (Secure FTP), TFTP (Trivial FTP), Telnet, dan sebagainya.Untuk lebih lengkapnya bisa dilihat di website CURL . Sering sekali kita sebagai programmer PHP ingin menggunakan protokol-protokol ini secara customized dan belum ada library php yang mendukungnya. Untuk itu modul curl/libcurl adalah solusi yang paling cocok untuk kita.

Setting CURL untuk Web

Untuk mengaktifkan curl pada distribusi PHP kita, maka perlu kita pastikan bahwa library curl sudah ada dan kita perlu edit file php.ini. Setting CURL distribusi php dari paket XAMPP windows. Asumsi bahwa distribusi XAMPP telah terinstall di komputer kita.
Edit file php.ini yang terdapat pada folder apache/bin/php.ini dan cari baris dengan entri seperti dibawah ini :
;extension = php_curl.dll 
kemudian di hilangkan tanda titik koma di depan sehingga menjadi
extension = php_curl.dll
Kemudian coba di test configurasi curl anda dengan menggunakan php_info() function dan lihat apakah modul curl sudah diload dengan baik. Apabila modul tersebut telah aktif maka pada informasi php_info() akan terlihat baris modul curl telah aktif.

Thursday, 4 October 2012

Zend Framework 2 : Instalation and Make a Module

On 3 March 2012, Zend has released zend framework version 2.0. In zend framework 2.0, you will feel the different from previous version (Zend Framework version 1). Some of the different are zend framework 2 is more solid coding and  better performance. Btw, if you wanna try it you should use PHP version 5.3.For installing Zend Framework 2, we could clone GIT version of ZendSkeletonApplication as the basic foundation from our application.
Ok here we go.

First, clone the skeleton by using terminal or everything that could clone it :
git clone --recursive git://github.com/zendframework/ZendSkeletonApplication.git
After we clone, there must be a structure directory like this :


Tuesday, 2 October 2012

Ubuntu Terminal Command

Lately, I usually use ubuntu to help doing some task on my office. Actually, I could install windows operating system on my pc, but I've decided to use and try non privacy protection software such microsoft so I consider to use open source software exactly Ubuntu for doing my job.

On ubuntu its self, we know about terminal program that functionality could execute instruction. It could be more interactive than GUI, and quicker to be executed. You can try terminal program on your ubuntu and start running some of command.

Here is the list of some useful command in terminal that you could try and use for some task, but before that you could press Ctrl+Alt+T to open Terminal .

Auto Generate Image CSS

When we would make image gallery on our site, we want every image looks neat and but sometimes to make it, we have to make a php class to generate and make it as thumbnail picture. But I have alternative solution to make gallery image neat looking without php class just by using css.

Here is a trick that could be solve the problem,

Firstly, we make an html file with div name class img_box
After that we put css code to manipulate the image and img_box div
       
    
Then here we go, we could see the preview in the browser. For example, I put my preview image like this :


source image  :
  1. http://jonasdero.deviantart.com/?rnrd=6690#/d5ff1qw
  2. http://jonasdero.deviantart.com/?rnrd=6690#/d5ewhkw 
  3. http://jonasdero.deviantart.com/?rnrd=6690#/d5gctpk

Cross Browser Font Style Using CSS3

Sometimes on our website, we want to use several even more different and particular font that doesn't installed on the operating system. The solution that usually we use for solve that problem is we use static image to display the character which use that font. But after being supported CSS3 by many browser then we could use better option by using inclusion of a particular font on the server side and accessed via css web pages.

So here's the example for call a particular font that stored on the server command with CSS3 :
@font-face {
    font-family: MyFontName;
    src: url("path/to/font.ttf")
}

Next for for, calling that fonts we could do as usual.
.style1 {
    font-family: MyFontName, Arial, Tahoma, Verdana;
}

Note : for internet explorer, font that could be used not TTF (TrueType Font) but use EOT (Embedded OpenType) format. To change font a TTF become an EOT we could use ttf2eot application that provided by google or other application. 

Reference :
  1. http://batikpress.com/2012/02/cross-browser-font-style-menggunakan-css3.html 
Monday, 1 October 2012

Introduction of Zend Framework

In this session, I would like to make a post about Zend Framework.

Zend Framework is an open source php framework, that could help you to build web faster and robust. This framework was created by the company main supporters of PHP. Zend also supporting web 2.0 and cloud computing technologies.

Reason why use Zend are :
  1. Free and open source framework (licensed under the New BSD License).
  2. Extreme Simplicity.
  3. High productivity.
  4. Flexible Architecture.
  5. Supported by more than 300 contributor, include IBM and other major companies. 
You can try and use this framework by download at:  http://framework.zend.com/. On that site you also can find the framework user community. For the requirements , Zend Framework requires PHP 5.2.4 or later since version 1.7.0. Previous versions required PHP 5.1.4 or later, although the ZF Programmer's Reference Guide strongly recommended PHP 5.2.3 or later for security and performance improvements included in these versions of PHP. Zend Framework 2.0 will require PHP 5.3.3 or later. For next posting, I'll focus on Zend Framework 2.0.

Beside that, make sure that on your pc have installed web server like Apache, database server like MySQL. The most important thing is zend framework is recommended to build the web with sufficient complexity.

So let's use Zend Framework !!  :D

References :
  1. http://www.phpeveryday.com/articles/Zend-Framework-Basic-Tutorial-P840.html
  2. http://en.wikipedia.org/wiki/Zend_Framework
Copyright © 2012 Clighter | Powered by Blogger