Start here

SATU

Al-Baqarah (2) Ayat 62

“Sesungguhnya orang-orang yang beriman (Mukmin), dan orang-orang Yahudi, dan orang-orang Nasrani, dan orang-orang Shabi’in, siapa saja (di antara mereka) yang (benar-benar) beriman kepada Allah dan hari kemudian/akhirat, dan beramal saleh (berbuat kebajikan), maka bagi mereka akan menerima pahala dari Tuhan mereka. Dan Tidak ada takut atas mereka dan tidaklah mereka bersedih hati”.

npm ERR! Error: EACCES, permission denied ‘/usr/local/bin/npm’

waktu mo install npm (node package manager), eh malah error

$ curl http://npmjs.org/install.sh | sh
 % Total % Received % Xferd Average Speed Time Time Time Current
 Dload Upload Total Spent Left Speed
101 7881 101 7881 0 0 4692 0 0:00:01 0:00:01 --:--:-- 12793
tar=/bin/tar
version:
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
install npm@1.1
fetching: http://registry.npmjs.org/npm/-/npm-1.1.4.tgz
0.6.10
1.1.4
cleanup prefix=/usr/local
All clean!

npm ERR! Error: EACCES, permission denied '/usr/local/bin/npm'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Linux 2.6.32-21-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.29011/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /tmp/npm.29011/package
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.4
npm ERR! path /usr/local/bin/npm
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/usr/local/bin/npm'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.29011/package/npm-debug.log
npm not ok
npm ERR! error installing npm@1.1.4
npm ERR! error rolling back npm@1.1.4 Error: EACCES, permission denied '/usr/local/bin/npm'

npm ERR! Error: EACCES, permission denied '/usr/local/bin/npm'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Linux 2.6.32-21-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.29011/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.29011/package
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.4
npm ERR! path /usr/local/bin/npm
npm ERR! code EACCES
npm ERR! message EACCES, permission denied '/usr/local/bin/npm'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.29011/package/npm-debug.log
npm not ok
It failed

solusinya tambahin sudo sebelum sh ->  $ curl http://npmjs.org/install.sh | sudo sh

🙂

Ongkir.Info – Pencarian Ongkos Kirim & Tracking Terpadu

Ongkir.Info – Pencarian Ongkos Kirim & Tracking Terpadu

 

Ongkir.Info adalah sebuah situs untuk mencari ongkos kirim dan melacak paket kiriman dari berbagai macam kurir di Indonesia. Ongkir.Info secara umum ditujukan untuk pengguna yang ingin mengetahui ongkos kirim maupun mencari paket dan secara khusus bagi para pemilik toko online, maupun bagi orang yang sering melakukan jual-beli online.

Layanan pencarian pada situs Ongkir.Info didesain untuk dapat diakses dengan cepat dan ringan, baik melalui PC / Laptop maupun perangkat genggam. Untuk akses melalui perangkat genggam, dapat dikunjungi pada http://m.ongkir.info/

Saran dan kritik membangun sangat diharapkan untuk pengembangan layanan Ongkir.Info, untuk menyampaikan saran / kritik / komentar, silakan gunakan formulir kontak kami.

Catatan: Ongkir.Info tidak berafiliasi dengan kurir-kurir yang disediakan dalam pencarian terpadu.

Untuk mengakomodasi kebutuhan penjual yang memiliki situs e-commerce, Ongkir.Info menyediakan API nya nih –> http://api.ongkir.info/docs/

free domain & hosting from 000webhost.com

Web hosting
used for my profile -> www.agungsusanto.web44.net

ajak anak ketemu eyangnya lintas sumatera -> resolusi 2012

Good Wife

If u find good wife u r complete otherwise u r finished

[warn] _default_ VirtualHost overlap on port 443, the first has precedence

to prevent this message

[Wed Nov 16 23:33:44 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
 ... waiting [Wed Nov 16 23:33:45 2011] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

after installing ssl on ubuntu lucid, add this line

NameVirtualHost *:443 

in

/etc/apache2/ports.conf 

and restart apache2.
🙂

Using jquery easyui datagrid pagination with CSRF active on codeigniter 2.0.3

found solution here aymsystems and here CSRF Protection in CodeIgniter 2.0: A closer look

first add on views:

<?php echo form_open('data/loadjson'); ?>
<table id="tt"></table>
<?php echo form_close();?>

add this on script tag

var cct = $("input[name=mcr_token_name]").val();

and add

$('#tt').datagrid({
            url: '<?php echo base_url(); ?>data/loadjson',
            title: 'Your Grid Title',
            queryParams: {'mcr_token_name': cct},
            ....

full sample source ->

the controllers


function loadjson(){
 $page = isset($_POST['page']) ? intval($_POST['page']) : 1;
 $rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10;
 $offset = ($page-1)*$rows;
 $this->the_model->limit = $rows;
 $this->the_model->offset = $offset;
 $result['total'] = $this->the_model->num_page();
 $result['rows'] = $this->the_model->list_page();
 return json_encode($result);
 }

the models

// add this variable on top of the models
public $limit;
public $offset;
//....
public function list_page() {
        $query = $this->db->select('field1,field2,field...')
                ->from('table_name')
                ->get('', $this->limit, $this->offset);
        return $query->result_array();
    }

public function num_page() {
       $result = $this->db->from('table_name')
                        ->count_all_results();
        return $result;
    }

the views

//add this on head

<link href="<?php echo base_url(); ?>css/easyui/themes/default/easyui.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="<?php echo base_url(); ?>css/easyui/themes/icon.css" type="text/css" />
<script src="<?php echo base_url(); ?>js/easyui/jquery.easyui.min.js"></script>
<script src="<?php echo base_url(); ?>js/easyui/jquery.min.js"></script>

//the body
<div id="right">
        <p>
         <?php echo form_open('data/loadjson');?>
         <table id="tt"></table>
         <?php echo form_close();?>
        </p>
</div>

<script type="text/javascript">
    var cct = $("input[name=mcr_token_name]").val();
    $(function(){
        $('#tt').datagrid({
            url: '<?php echo base_url(); ?>data/loadjson',
            title: 'Your Grid Title',
            width: 640,
            height: 'auto',
            nowrap: false,
            striped: true,
            collapsible:true,
            fitColumns: true,
            idField:'field1',
            queryParams: {'mcr_token_name': cct},
            pagination:true,
            rownumbers:true,
            frozenColumns:[[
                {field:'ck',checkbox:true},
                {title:'Field 1',field:'field1',width:300}
            ]],
            columns:[[
                {field:'field2',title:'Field 2',width:80},
                {field:'field...',title:'Field ...',width:80,align:'right'}
            ]]
        });
    });
</script>

that’s all, I hope this can help, as it has also helped me 🙂

PhpStorm 2.1

Just download new PhpStorm , trial version 30 day 🙂 ..nice IDE
fast, integrated with git, mercurial, etc. .. version control can be so easily. plus history record, mmuach.
working with javascript so much easier, n’ the cool thing is we could see content who covered with editor without the need to scroll it, cool 🙂

n’ now plan to buy a fully licensed.