skater coder

angela chng – Ruby on Rails / PHP web developer & skater girl in Singapore

  • blogabout stuff
  • aboutthis website
  • contactdrop a message

These are the posts from February 2009

February 25, 2009
Posted by roadburn

How to: Install php zip on mac osx leopard

Need to install PHP zip on your mac?

It’s easy :)

1
$sudo pecl install zip

No Comments

Posted Under Coding Tips

February 18, 2009
Posted by roadburn

How to: Install Memcached on Ubuntu for Rails

1
2
3
4
5
6
7
sudo aptitude install memcached
 
sudo aptitude install libmemcache-dev
 
sudo gem install RubyInline
 
sudo gem install memcache-client

in application.rb

Uncomment the protect_from_forgery

in environment.rb

1
2
3
4
5
6
7
8
9
CACHE = MemCache.new 'localhost:11211', :namespace => 'your_app'
 
config.action_controller.session = {
:session_key => '_your_app_session',
:secret      => 'yoursecrectkey',
:cache       => CACHE,
:expires=> 900  }
 
config.action_controller.session_store = :mem_cache_store

No Comments

Posted Under Rails

  • CATEGORIES
    • Coding Tips
    • Food
    • Portfolio
    • Rails
    • Sharepoint
    • Wordpress

  • TAGS
    activities AD ADAM ajax architecture authentication bluehost books custom application custom form date design disk partition ECTS event id eventid moss forum guid hotfix iis imap keberos list id lists masterpage moss mysite profiles Rails rails 2.0 reporting services ruby Sharepoint sharepoint 2007 site templates site usage sql server 2005 time updates vhd virtual pc visual studio webparts workflow wss

Subscribe via RSS