Monday, May 28, 2007

Start Game With Disc Image Mac

MySQL reserved words as name Model backup


If you're using bloglines
(online feed reader) will probably keep the posts you find interesting using the "keep new".

After using the feed reader for a while, the number of interesting posts I have saved so important. I I thought there would be no fun to lose this data, so I made a script that makes a backup of these posts in an xml file. mechanize and hpricot
. Mechanize can browse web using simple commands as you see in the script. Hpricot can parse HTML and XML documents very easy and intuitive.

To use the script you need to install the following libraries:
gem install json gem install hpricot gem install
ActiveSupport gem install mechanize

  

And here is the script, I think is understood quite well what he does. I hope that well help you make a backup of your bloglines account (remember to change the EMAIL and PASSWORD values) or to learn a bit of work mechanize and hpricot.


require "rubygems"
require "hpricot"
require "json"
require "mechanize"
require "active_support"
 bloglines  # Reads a tree structure javascript 
# That has all data feeds. Def
read_tree (tree_base, label = "")
tree_base.each do end

# Add more memory to hpricot otherwise couldn't load some webs.
Hpricot.buffer_size = 262144

agent = WWW::Mechanize.new
page = agent.get 'http://www.bloglines.com/login'

form = page.forms[1]
form.email = 'EMAIL'
form.password = 'PASSWORD'
<< [tree["n"], label, tree["kn"], "http://www.bloglines.com/myblogs_display?sub=#{tree["id"]}&site=#{tree["sid"]}"]
page = agent.submit form

# Get the bloglines sindicated feeds
menu_page = agent.get "http://www.bloglines.com/myblogs_subs"
start_text = "var initTreeData = "
end_text = "\n;\n"
js_feeds_tree_str = menu_page.content[menu_page.content.index(start_text)+start_text.size..menu_page.content.index(end_text)]
feeds_tree = JSON.parse js_feeds_tree_str.gsub("\\","")
@feeds = []
read_tree(feeds_tree["kids"])

puts "&lt;bloglines_saves&gt;"
@feeds.each do Index sqlite and development libraries:



sudo apt-get install sqlite3 libsqlite3-dev





Installing sqlite3-ruby interface to connect to sqlite3 database from Ruby.



sudo gem install sqlite3-ruby
(
If multiple versions to choose from, selecting the latest version
ruby.
)





Create the database, we really only an empty file that is all you need sqlite3.


database_name_dev.db

touch touch touch database_name_test.db
database_name_prod.db


Set
Ruby on Rails application to use these databases.
Edit the file config / database.yml:
sqlite3 database: db / database_name_prod.db

  1.   
    Ready! from here you can develop your Rails application using sqlite3 as database.

Saturday, May 12, 2007

Free Sound Device For Lenovo T60



Last week I was in Congress
HLT NAACL (North American Association for Computational Linguistics Human Language Technologies) in Rochester (New York). We presented a paper on automatic acquisition of lexical information ("Automatic Acquisition of Grammatical Types for Nouns", BEL, N.; MIRROR, S., Marimon, M.

  • PDF).
      The conference was very interesting, I would emphasize that there is much work to do in the area of \u200b\u200bcomputational linguistics. Google, which is deeply involved in these issues, presented the results of machine translation. It seems that the best statistical methods to translate Chinese into English. Still only have a 40% success using terabytes of data! The that can sense the complexity of the task. 

    This week in the U.S. also allowed me to do some sightseeing and verify that indeed, America is like in the movies. It's so funny to go looking like everything that appears in the films you find on the street.
    Below you will see some photos of the trip.

    New York:


  •  Rochester:  



    American way of life:



  •   Niagara Falls: 







  • Thursday, May 10, 2007

    Can A Plug For Ozark Trail Air Matress Be

    bloglines Install rails sqlite3 in Ubuntu

    Amazon has changed its policy prices on its S3 service (storage), which also affects the services EC2 (Elastic Computing) and SQS (message passing).

    changes are reflected in rates of use of bandwidth. Previously the price was $ 0.20 per GB uploaded or downloaded, irrespective of the requests made.

    In Amazon have realized that they cost more to serve requests to upload or download data, as charged on one hand the bandwidth usage (upload or download data) and on the other requests:
    $ 0 , 10 GB for all data uploaded.
    $ 0.16 per GB for the next 40 TB of data downloaded per month. $ 0.13 per GB for data downloaded per month from 50 TB.


    $ 0.01 per 1,000 PUT or LIST requests.


    $ 0.01 per 10,000 GET requests or other (except DELETE which are free)

    These changes will become effective on June 1, 2007.

    Thursday, May 3, 2007

    Walmart Funai Sv2000 Vcr/dvd Price

    Congress NAACL HLT 2007

    Today out the new version of Ubuntu Linux, Ubuntu 7.04 Feisty Fawn. I took advantage of having a pc to reinstall and once I managed to get off the installation CD (not easy due to demand ...) I have installed.
    The truth is that the installation every time is easier, traditionally the more complicated the partition, in this version is very well explained by becoming a step further. I noticed that the installation added a migration tool from windows, but as the pc did not have windows I could not test it.
    The system is not changed much over the previous version. What I really liked the wifi network detector installed by default, appears when you click on the image of the network that appears by default to the left of the date. This detector can easily connect to any available network with a simple click, something that was missing missing in previous versions. As always I recommend installing a tool to help us with the most common packages that require a complex configuration. I used automatrix2
    . When installing I found a problem easily solved (missing libraries). In summary, the steps to install automatrix2 are
    sudo apt-get install python2.4-minimal python2.4 wget http://www.getautomatix.com/apt/dists/feisty/main/binary- i386/automatix2_1.1-4.3-7.04feisty_i386.deb sudo dpkg-i-4.3-7.04feisty_i386.deb automatix2_1.1
    automatrix2 then run and pick the packages to install:
    automatrix2 With this we have installed Ubuntu to see what new surprises we give this version!


    Wednesday, May 2, 2007

    Junk In The Trunk Free Clips

    price change

    One of the plugins that make up the meta-rails project (
    http://meta-rails.rubyforge.org
    )
      is charged with making a diagram of the application class and provides a query generator
    • these classes. To do this I needed to load drivers and their views
    • directly from this plugin.
    • after documenting and testing I have found a way to make it easy.


    • Upload
    • drivers
    • All ruby \u200b\u200bon rails plugins can have the file in your root folder init.rb
      running when loading rails application. This file is the hook (hook) which can be used to introduce
    • plugin code in the Rails application.

    • If we put our drivers in the plugin subdirectory app / controllers to load
    • can use the following code:


    directory = "# {RAILS_ROOT} / vendor / plugins / NOMBRE_DEL_PLUGIN" $ LOAD_PATH
    if defined? (RAILS_GEM_VERSION) and RAILS_GEM_VERSION> = '1 .2.0'
    Dependencies.load_paths

    else raise "Engines plugin is Needed for running NOMBRE_DEL_PLUGIN with \\
    Ruby on Rails version config.controller_paths
    end
      
    Analyzing the code we see that this code is executed differently depending
    use Ruby on Rails version 1.2.0 or later to previous. This is because to work
    in versions prior to 1.2.0 we need the engines plugin installed (
    http://rails-engines.org
    ). Once

    put this code we can create our drivers doing that inherit from ActionController:: Base class
      
    MetaQuerierController





    Views

    for our drivers
      Once we loaded the drivers, we must assign
    1. subdirectories where they can find their views. We do this by changing a class variable with self.template_root:
      MetaQuerierController
      self.template_root
      class = "# {RAILS_ROOT} / vendor / plugins / meta_querier / app / views /" end



        

      I hope you find it useful, you can find more information at:

      << controller_path
      http://weblog.techno-weenie.net/2007/1/24/understanding-the-rails-initialization-process
      << controller_path


      < 1.2.0" if Dir["#{RAILS_ROOT}/vendor/plugins/engines"].empty?