- 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.
Or get it heredef 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
- 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.
Or get it heredef 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
Hi, I've been busy you know.
If you don't know yet, this site and my blog codes are hosted in
. 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
If you don't know yet, this site and my blog codes are hosted in
. 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
- Exception Logger
- Will Paginate
- RSpec Autotest
- DB Log Cleaner
- RailsTidy
- SuperExceptionNotifier
- Exception Notifier
- Unobtrusive Javascript for Rails
- Simple Access Control
- Account Location
- acts_as_audited
- Ajaxful Rating
- OpenID Consumer
- ImageMagick for Rails
- CAPTCHA
- Fleximage
- File Column Plugin
- Flash MP3/Image/Media/FLV Player
- acts_as_commentable
- ActsAsTaggableOn
-
-
-
-
-
-
- This site is monitored by mon.itor.us and is hosted in HOSTINGRAILS.COM















