Thursday, April 19, 2007

My Toe Is Numb And Itches

Amazon S3 Installing Ubuntu 7.04 Feisty Fawn

I try this "recipe" for capistrano DrNic
<< controller_path
published. I find it very useful to view the server logs ruby \u200b\u200bon rails using the command log cap.


code to insert into config / deploy.rb
: logs

# desc "Returns last lines of log file. Usage: cap log [-s lines = 200] [-s RAILS_ENV = production]"
task: log do lines = configuration.variables
 [: lines]  do  - Net / https (MissingSourceFile)  
< ActionController::Base


My particular install hpricot happened to me, a library for parsing HTML easily.

a workaround is to install openssl-ruby libraries:

apt-get install ruby \u200b\u200b libopenssl-

  • Tuesday, April 17, 2007

    Game Where U Can Get Pregnant

    Create controllers and views in Ruby on Rails plugins


    Many times we are comfortable save to the database data structures like arrays or hashes .
     In Ruby on Rails we can do it easily with the method of ActiveRecord  
    serialize. This method allows you to save objects in a field of the database in text format. Uses YAML to convert the object to text. < ActionController::Base


    class Example serialize: data end


    • Now we can use the class as follows Example:
    Ejemplo.create eg = (: data => {'key1' = > 'attribute1', 'key2' => 2}) puts ej.datos ['key2']

    Using serialize
    we can save many lines of code)
      
    More information:


    http://ar.rubyonrails.org/



    Rails: Serialize ActiveRecord method


    Querying
    serialized data in ActiveRecord
      


    Wednesday, April 11, 2007

    Dvp-sr200p Region Free Hack

    Server Logs with capistrano

    Genetic Algorithms for Ruby (gga4r) is a library for implementing genetic algorithms easily.
    In 3 steps, you can work with gga4r:

      Choose class to evolve and define fitness
    • methods,
    • combine and mutate
    • .
    • With an array of instances of the previous class (initial population) create an object of type GeneticAlgorithm.

    GeneticAlgorithm class as many times as you want.
      

    More documentation and examples:

    Website:
    http://gga4r.rubyforge.org/es


    RubyForge Project:
     http://rubyforge.org/projects/gga4r  

    English Website:
    http://gga4r.rubyforge.org

    Tuesday, April 3, 2007

    Bad Psoriasis Behind Ear

    Error "no such file to load - net / https" in Ubuntu

    As you can see, opening for the blog template. The old style much wasted space and did not read very well. I

    party Hemingway template
    and I modified to add a header and a couple of things more. Little by little I'll be adding some more and some link that allows to see the latest posts from my new Thumblog:

    Spejman Thumblog!
      Hope you like and above all make it more comfortable to read! 
    < ActiveRecord::Base
    You know, I accept any kind of criticism;)

    Buy Jamaica Wrestling Singlets

    Ruby Serializing objects in Ruby on Rails with Active Record

    to read and write to partitions with the file system of Windows Vista
    need the ntfs-3g driver

    . To install on ubuntu edgy eft is to perform the following steps:
      

    Set the repositories:
    Copy the following lines at the end of
    file / etc / apt / sources.list

    :

    deb http: / / flomertens.free.fr / ubuntu / edgy main main-all deb
    http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main main-all deb
    http://flomertens.keo.in/ubuntu/ edgy main main-all
    • Install authentication key repositories: wget
    • http://flomertens.keo .in / ubuntu / givre_key.asc-O-
    • gksu ntfs-config



    More information:
    1. http://www.ubuntuforums.org/showthread.php?t=217009