Agile FAQs
  About   Slides   Home  

 
Managed Chaos
Naresh Jain’s Random Thoughts on Software Development and Adventure Sports
     
`
 
Discovering...
Industrial Logic

Microblog Feed
    Previous Feeds...
    Recent Thoughts

    Recent Comments
    Categories
    Archives
    March 2010
    M T W T F S S
    « Feb    
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
    RSS Feed
    Add to Technorati Favorites

    Archive for the ‘Ruby n Rails’ Category

    Proxy Issues while installing Rails Plugins

    Wednesday, April 23rd, 2008

    I’m trying to install restful_authentication plugin on a rails project on a Windows platform.

    Every time I try “ruby script\plugin install http://svn.techno-weenie.net/projects/plugins/restful_authentication/”

    I get the following error:

    Plugin not found: ["http://svn.techno-weenie.net/projects/plugins/restful_authentication/"]

    This really does not help. When you pass the verbose parameter to the install command, it give a more meaningful error message.

    ruby script\plugin -v install http://svn.techno-weenie.net/projects/plugins/restful_authentication/
    Plugins will be installed using http fetching from ‘http://svn.techno-weenie.net/projects/plugins/restful_authentication/’
    Plugin not found: ["http://svn.techno-weenie.net/projects/plugins/restful_authentication/"]
    # openuri::httperror: /openuri::httperror:

    When you search for this error, it becomes very clear that its a proxy issue. Following is the solution given by Nick Chistyakov

    This `407 Proxy Authentication Required’ happens because along with proxy address and proxy port two additional params must by supplied:
    1. user
    2. password

    In open-uri.rb (under \ruby\lib\ruby\1.8 folder), method OpenURI.open_http, line 216 there is a record:
    klass = Net::HTTP::Proxy(proxy.host, proxy.port)

    The full signature of that Net::HTTP::Proxy(…) method is:
    def Net::HTTP.Proxy(p_addr, p_port = nil, p_user = nil, p_pass = nil)
    So just add proxy.user, proxy.password:

    klass = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password)

    Note that your environment variable http_proxy must be set in a way it described above (http_proxy=http://user:password@host:port)

    • Share/Bookmark

    How to install Subversion on a shared host

    Friday, March 21st, 2008

    I use http://bluehost.com for hosting all my sites. So far I’m very happy with their service. The only thing I wished they provided was subversion on the servers. But they don’t.

    So I decided to find ways of installing subversion on a shared host. While researching about this about, I stumbled upon this excellent post http://joemaller.com/2008/01/29/how-to-install-subversion-on-a-shared-host/ by Joe Maller where is explains step by step how to install SVN on a shared host.

    • Share/Bookmark
        Licensed under
    Creative Commons License
    Design by vikivix