Sabtu, 19 Oktober 2013

source list default ubuntu 10.04

ini saya post karena saya kelupaan :D
#
# deb cdrom:[Ubuntu-Server 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110719.2)]/ lucid main restricted

#deb cdrom:[Ubuntu-Server 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110719.2)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

 

 

Rabu, 16 Oktober 2013

apache traffic server as internet accelerator (forward proxy)

squid make me mad in crazy configuration, well a lot of configuration about tuning squid if would like to search also a lot of bloging and writing about squid too, exactly cause most of people said squid is old horse working proxy software. and I not doubt about it, but I love to try something new because it's my passion about bleeding edge and something better and faster.

so why I'd thing to leave squid because of he is old working horse mean no power. LOL (it's joke don't mind). just because want to try something faster for caching in local network for about 12 user computer with a pity bandwidth in Indonesia. that was I tried use combine squid with varnish like I got here and here

but the result in my computer doesn't satisfied me, because of the varnish originally is reverse proxy and it's doesn't forward proxy. it will make you crazy if you want to inverted from reverse to forward proxy. :D and that why squid is still needed here to help varnish work. and the second problem is I have problem with when I do update application or browsing on my client the request is loaded first to the varnish first then transfered to client. it will be problem if didn't have dedicate internet(stable connection) & pretty big enough bandwidth to load. and the result a big packet are failed and delaying access happened.

well I admit that varnish is fast and you can check by googling which is varnish are faster than squid. and I tested on my machine are second hits are good and fast.  just wondering is had any software for my proxy cache sever because I got any problem (proxy very slow) when I moved my box from ubuntu 12.04 to the Centos 6 because of stability reason and long term support. ;)

oh, I found that amazing(maybe :D) the ATS(apache traffic sever) I read is amazing and I thought it amazing because it was use and already tested on yahoo, and as usually I love benchmark, soon as possible I check about speed bechmark, and that result some of test defeated varnish and sure squid ;)

lets see what I do :

install ATS on our Linux box, here I used CentOS 6.

Firstly, you must add the EPEL repositories if you haven’t already:
rpm -ivh http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-7.noarch.rpm

Next, we can just use yum to install Traffic Server and enabled service :
yum install trafficserver
chkconfig trafficserver on

then editing file configuration on  /etc/trafficserver some file configuration I modified is :

records.config

  • The main configuration file. This is where you configure core settings like global configuration, socket setup and certain features you want to enable. I changing some value :



# To enable forward proxy, you must turn off remap_required
CONFIG proxy.config.url_remap.remap_required INT 0

#If your proxy is serving as pure forward proxy, you will also want to set
CONFIG proxy.config.reverse_proxy.enabled 0

CONFIG proxy.config.http.server_port INT 8080
CONFIG proxy.config.http.server_port_attr STRING X

 

storage.config

  • Configure the data store. This is, where you configure the location and type of your data storage which holds cached objects. I just change amount and location.


from
/var/cache/trafficserver 256M

to
/home/cache 5G

at moment only that I configured on my linux box, but seems ATS is more tidy and more easy to understand for further configuration. you can see there is module configuration to modified.

reference :

http://trafficserver.apache.org/docs/trunk/admin/forward-proxy/index.en.html

http://daemonkeeper.net/735/apache-trafficserver-the-better-web-cache/

http://blog.hamzahkhan.com/2012/11/11/apache-traffic-server-basic-configuration-on-rhel6centos-6/

Minggu, 13 Oktober 2013

koneksi internet lambat pada pada ubuntu / lubuntu 12.04

keluhan datang dari ibu saya sebagai penjaga warnet :D kenapa internet lambat pada beberapa komputer client, dan lambatnya itu pada komputer yang mengunakan OS di sebut di judul tidak pada klien yang mengunakan OS ubuntu lama.

ternyata ini bukan karena internet providernya yang lambat tapi setelah saya googling permasalahan adalah ada pada karena mengaktifkan internet address v6. jadi si komputer mencari host dan menset ip v.6 pada dirinya sendiri.

cara mengatasinya dengan disable  ipv.6 di sysctl /etc/sysctl.conf  . dengan menambahkan opsi ini:
# disable IPv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

atau kalau mau mudahnya jalankan perintah ini di terminal :
echo -e "\n# disable IPv6\nnet.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf

then do :
sudo sysctl -p
sudo ifconfig eth0 down
sudo ifconfig eth0 up

reference :

http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html

http://ubuntuforums.org/showthread.php?t=2083341

slow internet in lubuntu / ubuntu 12.04

this problem I got cause compalaining from my mom as internet cafe keeper :D

so the problem is "why connection so slow right now" but check on internet provider and some client that use old version that running well. only some client which use lubuntu 12.04 having slow connection.

as usual check on google that problem is because activated ip version 6 and may that machine look at the address and host to applied v.6 version.

resolve problem is only disable  ipv.6 in sysctl /etc/sysctl.conf  . with option add it on.

 
# disable IPv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

or easily execute this command on terminal :
echo -e "\n# disable IPv6\nnet.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf

then do :
sudo sysctl -p
sudo ifconfig eth0 down
sudo ifconfig eth0 up

reference :

http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html

http://ubuntuforums.org/showthread.php?t=2083341

Senin, 01 Juli 2013

error short tag pada program php di centos 6

 

pengalaman ini ketika saya mendapat ke anehan ketika menjalakan aplikasi di server centos yang berupa sytax error. dan pada komputer lokal kode program ini berjalan normal, yang mana komputer lokal yang saya gunakan adalah Lubunutu.

 

jadi si centos ini hanya mengenal tag php <?php tetapi tidak mengenal tag <? , jika menuliskan kode php dengan awalan <? maka terjadilah sytax error, dan sebagai informasi framework php yang di gunakan adalah yii framework.

dan tampilan error adalah seperti ini. :
Parse error: syntax error, unexpected $end in /var/www/html/apps/protected/views/as/index.php on line 231 Call Stack:

jadi bagai mana memperbaikinya. mudah ;)

buka konfigurasi di  php.ini
vim /etc/php.ini

cari tulisan short_open_tag  pada server saya pada baris 229 dan ubah menjadi On.

 









From capture from computer

demikian mudah kan :D

error short tag in php programing on centos 6

well this experience I got when I use centos 6 server as appliation server, partial code are running but some are sytax error, don't know that make crazy. even though I know that already crazy. :D haha

the strange things is because that code running well on my local computer that use Lubuntu, wtf what's wrong with this server. well done I give up with this condition but a friend as gurus tell that is problem in short tag which is php on that server didn't recognize sytax <? instead just <?php  oh wow, I just know this problem, never know before, hahaha. well I am newbie. hmm also for information that use php framework called yii.

and error showing like this :
Parse error: syntax error, unexpected $end in /var/www/html/apps/protected/views/as/index.php on line 231 Call Stack:

 

so how to resolve it on centos server. ?? easy ;)

just open configuration ini php.ini
vim /etc/php.ini

search line writing short_open_tag  that is on line 229 on my server. change that to on.

 









From capture from computer

well done. our duty finish.

Sabtu, 29 Juni 2013

rsync dari sever dengan ssh

sedikit tips dan trik dari saya.

 

bagai mana rsync ke server melalui ssh, baik lah tanpa basa basi ini caranya.
rsync -avhP -e "ssh -p port_number" root@ipaddress_or_host:/source/location_file /Destination/on_your_computer

yang perlu di tekankan dalah -e untuk memilih mode protokol yang di gunakan dan -p port number yang digunakan karena ssh server saya tidak mengunakan port 22.

rsync from sever through ssh

well this little bit tips and tricky, handy for me may for another people. ;)

this case I used because, in my computer have bad connection directly to server but so good on local intranet, honestly it little bit nasty because it was use for download torrent then sync complete download to my computer. LOL

okay go head. this command I run on my computer which is use Lubuntu.
rsync -avhP -e "ssh -p port_number" root@ipaddress or host:/source/location_file /Destination/on_your_computer

 

most important things is -e which use to choice protocol to ssh and use option -p because that my ssh server port doesn't use port number 22.

reference

http://oreilly.com/pub/h/38

Senin, 25 Maret 2013

web based skype application

well, this stories while I search web based on skype, and in skype forum that skype officially doesn't made a web based application for skype chat. that sure sometime that make I in trouble when in another computer want to use a skype but the skype application doesn't exist.

 

so I am not mean to be promoted and I doesn't work in this company which provide this application, just share what I know and if you know another web based application then informed to me that would be cool and great for me.

ok, chek it out for try https://imo.im with that web based application I made success with voice call and not sure with video call, but it's help me a lot when in another computer. ;)

 

 

 

skype berbasis web

oke, ini cerita berasal ketika saya sudah lama ingin mencari skype berbasis web untuk chating dan berharap dapat video dan voice chat seperti google talk. dan pencarian udah lama sih tapi belum beruntung atau memang nasib belum ketemu waktu itu.

 

dan akhirnya saya menemukan https://imo.im/ dan setelah saya coba oh wow ternyata lewat sini voice call :D jadi kesimpulannya saya tidak perlu report istall skype lagi kalau mau chat lewat komputer lain ;)

Sabtu, 23 Maret 2013

a nice quote from cheap notebook

suddenly today I got an inspired from a cheap notebook (it's not about computer :D ) with a price about Rp.5k that qoute really cheers me up. and I agree at all with this sentences, I wish could be exist within.

"You'll never know till you have tried"


"Experience is the best teacher"


"Never put off till tomorrow what you can do today"


"Practice makes perfect"


Rabu, 20 Maret 2013

accidentally deleted /var/lib/dpkg

this problem I got was tried to installed a packet and the my ubuntu system shows following error message :
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)

yeah that pretty easy exactly to fix that just run on terminal like these :
 
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock

sudo dpkg --configure -a

sudo aptitude update

or another option that just reboot/restart your computer :D but it doesn't have technical experience IMO.

that was I should run sudo rm -f /var/lib/dpkg/lock instead of sudo rm -f /var/lib/dpkg :(

then that action show following error :
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

so, how solution for that trouble, here some of step to resolve that :
mkdir -p /var/lib/dpkg/  /var/lib/dpkg/alternatives/  /var/lib/dpkg/info/  /var/lib/dpkg/methods/  /var/lib/dpkg/parts/  /var/lib/dpkg/triggers/  /var/lib/dpkg/updates/

get a file "dpkg.status.0" that our automatic backup it.
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/

then changing the name to status
sudo mv dpkg.status.0 status

create a file which name available
touch /var/lib/dpkg/available

the last do update.
sudo aptitude update

afterwards you try to installing a packet that you want, I wish that work fine and well.

good luck then ;)

reference :

http://ubuntuforums.org/showthread.php?t=1260872&page=2

http://ubuntuforums.org/showthread.php?t=2009399

http://ubuntuforums.org/showthread.php?t=1449160

tidak sengaja menghapus /var/lib/dpkg

oke langsung to the poin aja. jadi cerita ini ketika saya mendapatkan masalah ingin menambah packet di ubuntu. dan tiba2 si packet manager memberikan warning dpkg lock.


E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)


seharusnya saya melakukan langkah-langkah sederhana berikut.

 
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock



sudo dpkg --configure -a



sudo aptitude update


atau lebih mudahnya lagi tinggal reboot/restart komputer anda :D tapi itu tidak ada nilai pengalaman teknisnya.

seharusnya saya melakukan sudo rm -f /var/lib/dpkg/lock bukannya sudo rm -f /var/lib/dpkg :(

dan ketika ingin menginstal paket aplikasi muncul pesan seperti ini.


E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


jadi bagaimana donk solusinya, setelah saya cari dan coba - coba ketemu deh solusinya kurang lebih begini.


mkdir -p /var/lib/dpkg/ /var/lib/dpkg/alternatives/ /var/lib/dpkg/info/ /var/lib/dpkg/methods/ /var/lib/dpkg/parts/ /var/lib/dpkg/triggers/ /var/lib/dpkg/updates/


ambil file "dpkg.status.0" dpkg yang di backup sistem


sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/



Ubah namanya menjadi status

sudo mv dpkg.status.0 status


buat file bernama available

touch /var/lib/dpkg/available


lakukan update

sudo aptitude update


kemudian coba install packet yang anda inginkan. semoga sukses dan selamat mencoba

Jumat, 15 Maret 2013

format tanggal di phpexcel

kasus ini saya dapatkan ketika saya membuat aplikasi di php dengan framework yii, setelah sebelumnya saya membahas cara membuat laporan dalam file spreedsheet (xls) di yii framework dengan extension phpexcel.

jadi permasalahan yang saya temukan di phpexcel tidak menyediakan format yang saya inginkan yaitu dd-mm-yyyy sesuai format yang umum di pakai di indonesia.setelah googling saya menemukan link yang membahas cara membuat format tersebut.

http://phpexcel.codeplex.com/discussions/286556

sedikit implementasi kode yang saya buat.



 

untuk applied stylenya sebagai berikut



 

jadi dengan metode ini kita bebas menentukan pola format date/ tanggal yang kita inginkan.

Rabu, 13 Maret 2013

referensi website belajar desain pattern

baik karena ini berhubungan dengan pencarian saya untuk tugas akhir saya yang berhubungan dengan desain pattern (semoga gak ganti judul dan bisa mengantar sampai sampe lulus).

jadi sebenarnya banyak sih ebook bajakan yang saya punya :D but this website really worth to read. :D
di web ini bagus penjelasannya dan di sertai source codenya.

here

Senin, 11 Maret 2013

auto complete tidak jalan di ubuntu.

as usual ;) nulis dari pengalaman ngotak atik. jadi trouble ini di dapat ketika saya abis install ulang tapi kok bash terminal auto complete-nya ngak jalan di ubuntu ada apa gerangan. :D karena command bukan untuk di hapal toh ? apalagi kode program (nak gile :D).

jadi permasalahan auto comple saya dapat solusinya waktu saya googling seperti biasa. mungkin ini bisa di applied ke distro lain juga. ini yang perlu di edit(dengan catatan fasilitas auto complete memang sudah ada di OS kita).

edit bagian /etc/bash.bashrc.
atau ini nih quick shortcut: (Alt + F2, "gksudo gedit /etc/bash.bashrc")

edit dan cari bagian ini, di uncomment ya (#).


#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi

Selasa, 12 Februari 2013

old relase / unmaintenance packet

ini bercerita lagi :D

cerita ini bersambung dari cerita aptitude yang untuk mengatasi broken packages.  jadi saat saya mengunakan komputer teman saya yang menggunakan linux mint 10 (baca ubuntu 10.10) yang sudah unsupported pada april 2012. jadi saya tidak tahu kenapa ketika saya ingin menginstall packet git-cola yang saya gunakan untuk kerjaan kok paketnya ilang :( wah ada apa ini dan banyak sekali paket aplikasi yang tidak bisa di install.

 

jadi setelah googling ternyata jika kita menggunakan ubuntu yang sudah unsupported kita dan masih ingin mendapatkan packet-packet yang di butuhkan kita harus menambahkan di baris repository seperti ini. tentunya di


/etc/source.list




deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted universe multiverse

Rabu, 06 Februari 2013

untuk melihat message tapi proses running terrus

biar ngak lupa :D abis ngata2in orang di facebook :D jadi buat catatan sendiri, untuk melihat message tapi proses running terrus atau follow
tail -n60 -f /var/log/dmesg

aptitude atau apt-get

nah cerita dan pengetahuan ini saya dapat ketika saya mendapat tugas mengkonfigurasi laptop teman yang tidak berjalan aplikasi javanya. dan memiliki ke anehan di bagian packetingnya. hmm.. well laptop ini mengunakan linux mint, ini sebuah keanehan saya mencari paket git-cola ngak ada untuk syn ke team kerja yang mengunakan git.

 

jadi begitu sudah tau keanehan terdapat pada pemaketan saya langsung dah tanya sama mbah google. jadi ngak sengaja dapat pengetahuan apa beda apt-get dan aptitude :D

jadi intinya apt-get itu punya 16 command yang harus di hapal (mungkin ya) kalau mau maintenance packet terutama pas menghapus packet yang di khawatirkan adanya orphan packet gitu. :D

jadi commandya antara lain

  1. apt-get: Installing and removing packages from your system, as well as updating package lists and upgrading the software itself.

  2. apt-cache: Search for packages in the package list maintained by apt on the local system

  3. dpkg- Used for various administrative tasks to your system, such as reconfiguring Xorg

  4. apt-listbugs: See what bugs are listed on a software package before you install it.

  5. apt-listchanges: Same thing as apt-listbugs, but for non-bug changes.

  6. apt-rdepends: Tool for viewing dependency trees on packages.

  7. deborphan- Look for orphaned dependencies on the system left from removing parent packages.

  8. debfoster- Helps deborphan identify what package dependencies you no longer need on your system.

  9. dselect- Curses interface for viewing, selecting and searching for packages on your system.


dan tambahannya apt-cdrom, apt-config, apt-extracttemplates, apt-ftparchive, apt-key, apt-mark and apt-sortpkgs. jadi totalnya 16 bener ngak ? itu tadi dia atas copas dari sumbernya :D

jadi di sini ceritanya keindahan command aptitude itu dengan beberapa command dia bisa me-manage seperti orphan package itu. kita liat commannya aptitiude.

  • aptitude: Running it with no arguments brings up a beautiful interface to search, navigate, install, update and otherwise administer packages.

  • aptitude install: Installing software for your system, installing needed dependencies as well.

  • aptitude remove: Removing packages as well as orphaned dependencies.

  • aptitude purge: Removing packages and orphaned dependencies as well as any configuration files left behind.

  • aptitude search: Search for packages in the local apt package lists.

  • aptitude update: Update the local packages lists.

  • aptitude upgrade: Upgrade any installed packages that have been updated.

  • aptitude clean: Delete any downloaded files necessary for installing the software on your system.

  • aptitude dist-upgrade: Upgrade packages, even if it means uninstalling certain packages.

  • aptitude show: Show details about a package name.

  • aptitude autoclean: Delete only out-of-date packages, but keep current ones.

  • aptitude hold: Fix a package at it’s current version, and don’t update it.


kelihatan kan keindahan, kemudahan, dan kepraktisan dalam menggunakan aptitiude, jadi mulai sekarang mulai gunakan aptitude dan biasakan menggunakannya. at least that is our choice to use aptitude or apt-get. kalau ada yg praktis dan mudah kenapa ngak.

sumber :

http://pthree.org/2007/08/12/aptitude-vs-apt-get/

http://www.garfieldtech.com/blog/your-debian-aptitude

http://psychocats.net/ubuntu/aptitude

Senin, 21 Januari 2013

persamaan font di libre office / open office dengan microsoft office

nah ini sekedar catatan buat yang ngetik pakai open office atau libre office, mostly sih penguna linux :D karena saya tau mayoritas pengguna windows jarang yang pakai Libre office atau open office ;)

jadi buat yang pengen tau persamaan font yang sering di pakai bisa liat di sini nih.

http://en.wikipedia.org/wiki/Liberation_fonts

jadi persamaanya

  • Liberation Serif = Times New Roman

  • Liberation Mono = Courier New

  • Liberation Sans = Arial


kayaknya font itu aja sih yang sering di pakai. ayo ayo menulis jagan pakai office bajakan :D

Membuat laporan dalam bentuk Spreeadsheet di Yii framework

oke mungkin saya ngak pernah tulis tetang coding. ;)

ini ada sedikit tugas jadi terpaksa koding sedikit, jadi ceritanya saya di suruh membuat laporan dalam bentuk format spreeadsheet (baca excel). dan kebetulan framework kerjanya yii. jadi ini sekedar dokumentasi aja. yang sudah berhasil berjalan di saya.

saya dapat refensi dari sini

http://www.yiiframework.com/forum/index.php/topic/29225-tip-using-phpexcel-with-yii/

ya sebenarnya sudah jelas sih di situ. tapi gpp deh saya tulis lagi :D

jadi yang pertama PHPExcel Librarynya di dowload dulu, terus baru  di extract di extension yang file PHPExcel.php folder PHPExcel nya di taruh di extension.

terus rubah main.php nya yang letaknya di protected/config. di tambahin kayak begini :



kemudian modif lagi supaya auto loadnya berjalan  /protected/extensions/PHPExcel/Autoloader.php

dari begini



jadi begini



sebenarnya bisa sih yang di tulis di forum ini cuman optimasi penghematan tulisan dan ke praktisan aja.

oke terakhir adalah testing bisa di test di controler.



oke sekian itu tidak sulit menintegrasikan di Yii.

 

Kamis, 10 Januari 2013

hello again in 2013

wah saya sudah lama banget ngak update nih blog. :D sibuk ngak jelas, malas ngak jelas, kerjaan dak jelas juga. mungkin 2 tahun ya vakum. hehehe

sekarang blog di upate, setelah sebelumnya berfikir ingin keeposting praktis kayak di facebook, twitter, dan tublr. jadi theme baru ini terinspirasi dari tumblr yang sederhana kayak update status doank. wah waktu itu mau saya migrasikan semua isi blog ini ke tumblr. tapi setelah dalam proses pencarian (baca:googling) dan sifat flexiblenya wordprees saya menemukan themes ini wah keren nih bisa punya like a tublr di blog pribadi. jadi tumblrnya yang saya tinggalkan :P