I am feeling
my mood
right now. 
House  Email  Feed_link  Page_white_php  Page_white_ruby
  • Put faces in your text
    Long texts without emoticons are boring. What I do is I find some good emoticons to use and put them in my images directory. I put this function in my applications helper and pass my content as a parameter to this method.
        def smiley(str)
    
          str = str.sub(':)', "<img src='/images/emoticons/1.gif' alt='smile'/>")
    
          str = str.sub(':(', "<img src='/images/emoticons/2.gif' alt='sad'/>")
    
          str = str.sub(';)', "<img src='/images/emoticons/3.gif' alt='wink'/>")
    
          str = str.sub(':D', "<img src='/images/emoticons/4.gif' alt='grin'/>")
    
          str = str.sub(':P', "<img src='/images/emoticons/5.gif' alt='tongue'/>")
    
        end
    
    Or get it here
  • Reading from feeds
    Most of my links come from external sources. I just format them so that they look uniform. I have here a snippet of reading my feed from thinkgeek.
     def thinkGeek
    
      require 'rss'
    
      rss = RSS::Parser.parse( open('http://www.thinkgeek.com/xml/app/wishlist/id/<youridhere>').read, false )
    
      @output = "<p style='text-align: center;font-size: 110%; font-weight: bold;'>" + rss.channel.description + "</p>"
    
      @output += "<ul id='thinkgeek_update_list'>"
    
      rss.items.each_with_index do |item,i|
       @output += "<li><a href='" + item.link + "' title='" + cleanStr(item.title) + "'>" + item.title + "</a><br/><a target='_' class='timeStamp' href='" + item.link + "'></a></li>"
      end
    
      @output += "</ul>"
      
      rescue 
        @output = 'Uh oh!  Seems like something is wrong.. Try again later.'
    
     end
    
    Or get it here
Hi, I've been busy you know. wink If you don't know yet, this site and my blog codes are hosted in Unfuddle. I recently moved to Git and found that they have support for private Git repositories. Below are details of my last git push.

Maricris S. Nonato on 1 Jan
Commit: 829e4f82ce9d1d43fa44d0b33b848909c9bdeaa7

Added grunge background to secret page, modified css accordingly

  • where's the best place to buy a domain? i mean other than what most would say (GoDaddy).. wink about 20 hours ago
  • Sweetperceptions:: Better: Title: BetterArtist: Boyzone Our love has changedIt's not the sameA.. http://tinyurl.com/8uxds.. 3 days ago
  • @HailtoTheKing good! i feel better this new year! thanks for asking. and you? how are things your end? smile 3 days ago
  • @technoweenie i hate using godaddy too, but like you i think its reliably good for your domains' lifespan. truly horrible to use. 3 days ago
  • @Trigeia relaxing thoughts.. like thoughts of happiness, and positivity. takes away stress for me smile 3 days ago
  • good mellow music gives me good relaxing thoughts! 3 days ago
  • my cat just got her first bath this year! yehey! smile 3 days ago
  • i hate growing my nails long. if it wasn't for my sister's nail beautifying session, i wouldn't have these. hehe 3 days ago