Postingan

Menampilkan postingan dari Maret, 2013

Backbone.js by muhamad akbar bin widayat

Hi all,   Saat membaca documentasi  backbones ,  backbones  memberikan konsep Model View Collection.  Backbone  memberikan dampak yang baik bagi website yang menggunakan single page. Karena  backbone  dengan kebelihananya mendukung feature single page. Sebagai contoh single page adalah gmail.  Backbone  juga merupakan suatu library javascript yang object oriented dan bisa dikatakan MVC juga.     Saat mempelajari  backbones , ternyata  backbones  tidak sama dengan jquery. Namun jquery sebagai partner dan pendukung saja, saat menggunakan jquery harus di deklarasikan terlebih dahulu.  Backbones  memiliki events2 standart sama layaknya dengan jquery. Saat di gabunggakan dengan rails, maka view di rails tidak akan di pakai karena diubah menjadi view yang menggunakan  backbones . Kelebihan  backbone js yang lain adalah libarynya sangat ringan hanya 6.3 kb. Ini juga yang menjadi...

Ruby on Rails 3 Carrierwave is not show or display on staging or production

Gambar
English: Ruby on Rails logo (Photo credit: Wikipedia ) Hi all, I had a problem when using Carrierwave on staging or production. The problem is about the image is not display on staging or production. Please follow me to fix that. 1. Go to config/environments/production.rb and config/environments/staging.rb 2. Change the config.serve_static_assets = false     into config.serve_static_assets = true 3. restart server production Note: When always not show image. 1. Go to the app/uploaders/avatar_uploader.rb 2. Add line     permission 0777 3. resrart the server I this article the help you. :)

Rack::Lint::LintError: Status must be >=100 seen as integer

Hi All, When you have this error please restart again your server faye and user environment production . rackup faye.ru -s thin -E production I hope this article can help you guys.

Ruby on Rails Could not find sprockets-2.0.0.beta.10 in any of the sources

Hi, I want to share to you about the resolving sprockets gem. Follow me: 1. Change the rails gem 'rails', '3.1.0.rc4 into:     gem 'rails', '3.1.0rc5' 2. Then:      bundle update I hope this article can resolve your application. :)

Android Sony Xperia Miro

Gambar
Xperia miro (Photo credit: Moridin_ ) Hi all, This is Sony Xperia Miro.

Ubuntu Install Terminator

Gambar
Terminator (Photo credit: .::Element2048::. ) Install terminator on ubuntu : 1. sudo add-apt-repository ppa:gnome-terminator 2. sudo apt-get update 3. sudo apt-get install terminator I hope this article can help you. :)

Ubuntu connect, create database and restore/import postgresql

Gambar
PostgreSQL logo. (Photo credit: Wikipedia ) Hi everyone, I want to share to you about setting database postgresql. 1. Connect database     sudo -u postgres psql postgres     password: postgres 2. Create database     sudo -u postgres createdb mydb 3. Restore/import database     sudo -u postgres psql -d mydb < database.dump I hope this article can help you guys.

Ruby On Rails undefined method `name' for "actionmailer":String (NoMethodError)

This is caused the version the rubygems are difference. When using rvm           rvm rubygems 1.3.7 When not using rvm            gem install rubygems -v 1.3.7 I hope this can help you guys. :)

Ubuntu: Copy content file to outside file

sudo apt-get install xclip # Downloads and installs xclip xclip -sel clip < ~/.ssh/id_rsa.pub # Copies the contents of the id_rsa.pub file to your clipboard