Muñiz Arzola Weblog

Actividades y eventos de la familia, con ciertas incursiones de tecnologia

Google

Aprendiendo Ruby. Proyecto A ver. 0.01

Â

Como lo había expuesto anteriormente, estoy desarrollando 3 proyectos durante mi ciclo de aprendizaje del lenguaje Ruby. A continuación se presenta el Proyecto A versión 0.01; este proyecto consiste en desarrollar un programa que mantenga actualizado mis listado de apuntadores favoritos.

Especificación del Proyecto.

El sistema debe realizar las siguientes actividades:

- Abrir archivo html, analizar el archivo y obtener las ligas que se encuentran almacenadas en él.
- Por cada liga tratar de obtener dicha pagina y reportar si la liga aun existe y su fecha de ultima modificación
- Generar un nuevo archivo con las ligas que aun existen y presentar su fecha de ultima modificación en la liga.

Objetivos de aprendizaje.

Básicamente lo que se desea aprender de las capacidades de Ruby con este proyecto es

- Manejo de archivos.
- Manejo de cadenas.
- Uso del modulo Net, especialmente la clase HTTP.
- Programación Orientada a Objetos

Código Fuente Proyecto A ver 0.01

El desarrollo de este proyecto es incremental, al momento se han definido las clases que se van a utilizar, el código se encuentra libre de errores y los métodos principales para cada una de las clases han sido definidos. A continuación se presenta la clase Librarian que será la clase principal de este programa y de dicha forma sera nombrado el Proyecto A de ahora en adelante, nótese que cuando propuse los tres proyectos a desarrollar el nombre había sido web crawler, sin embargo, la actividad principal de este objeto es mantener mi lista actualizada y es por eso que se renombro a Librarian.

Esto es un fragmento de la clase Librarian, para consultar el código fuente completo hasta el día de hoy presione aquí

class Librarian
 attr_reader :active
 attr_reader :fileExt
 @running = false
 public
   #updateLibrary se encarga de tener la librería de apuntadores actualizada
   def updateLibrary
   end
 protected
   :active
   :fileExtÂ
 private
   def initialize(filename = "bookmarks.html", fileExt = "html")
   end
endÂ

Cualquier idea o comentario es bienvenido durante el desarrollo de este proyecto.

Technorati Tags: , , ,

powered by performancing firefox

Categories: Español, Ruby, Tecnologia

Posted by: Erick Muñiz on Friday, October 13, 2006

Todo List

In order to finish the porting to WordPress and be able to say that I’m done changing the look and feel of the website I still need to accomplish to folllowing tasks which I expect to be done by thursday night.

  • Modify the theme so that I can have a Recent Posts section in the sidebar.
  • Modify the theme so that I can have a section with some of my Flickr photos.
  • Change the About photo to an updated one.
  • Take the same look and feel and propagate it to my private photos and the munizfam site even if they are not in WordPress.

So, expect still some more changes.

Technorati Tags:

Categories: English, Webmaster

Posted by: Erick Muñiz on Wednesday, October 11, 2006

Welcome

This is my new blog, after almost three years using Blogger I finally moved myself to WordPress, in the process I played a little bit with Mambo, but that was too much for what I needed.

I finished the configuration and the look and feel today, so I think this is it. I may try to move over my old posts into here but it may not work, at least the import function hasn’t worked yet.

If you want to take a look at my old posts you can get there here

Categories: English, Webmaster

Posted by: Erick Muñiz on Tuesday, October 10, 2006

Test

Just testing my first installation of WordPress

Categories: English, Webmaster

Posted by: Erick Muñiz on Tuesday, October 10, 2006

When this blog started?

Esta historia se situa aproximadamente en los años 70’s.

Se puede observar a mis abuelos, mis padres, y claro, mis primeros años.

Erick Muñiz

ver foto completa >

Categories: Español, Eventos Familiares, Fotos, Media

Posted by: Erick Muñiz on Saturday, October 7, 2006

Public Photos Updated

Today I uploaded a bunch of photos from our last year trip to Mexico, we were in Mexico for a month, so there are a lot of nice and interesting pictures, I finally had the time to put them on flickr.

Here is the link Erick’s Sin Sentido Public Photos @ Flickr
Enjoy!

Categories: English, Webmaster, What's up

Posted by: Erick Muñiz on Friday, October 6, 2006

« Previous PageNext Page »