The Scala Programming Language

Dolphin --- Online Dating Software, Social Networking Software, Community Software

Cache anything (easily) with Rails and memcached

http://www.ridingtheclutch.com/2009/01/08/cache-anything-easily-with-rai...

When I first heard about memcached I was excited because of the promise of a very fast caching mechanism that could store anything, but was a little frightened by the idea of dipping my toes into the caching world. Isn’t caching hard? Not the actual process of storing something. Expiring from cache is a different story. I’m only going to deal with the first problem.

So, how easy is it? First, get memcached. If you’re running something like Ubuntu this is as easy as:

Simple cPanel XML api call using Ruby

http://www.rajesharma.com/blog/articles/simple-cpanel-xml-api-call-using...

This is a demonstration of making a cPanel XMP API call via a ruby script.
For this you will require:
# #A working Ruby installation (1.8+, tested with 1.8.5)
# #A working (lib)curl installation, with development stuff (7.5+)

for curl-devel ( development stuff ,if you dont have it), do

$ yum install curl-devel

Then we install ‘curb’.The ‘curl’ module for ruby.

$ gem install curb

Here is the simple demonstration of the API call using Basic Authentication:
File : cp_ruby.rb

Quick install Rails 3.0.pre without using gem

Meld : Diff and merge tool

Compiling Ruby 1.9.1p378 on Fedora 13

1. Untar ruby 1.91p378 tarball
2. In the untared directory, do wget http://myxman.org/dp/files/fix_stack_not_found.tgz
3. tar zvxf fix_stack_not_found.tgz
4. cat fix_stack_not_found.patch | patch -p1
5. sudo ./configure
6. sudo make
7. sudo make install

Syndicate content