Text

Resources for learning about ruby memory management

I have been looking at ways to monitor and reduce the memory usage of a ruby script for a client in the past couple of weeks; following are some of the useful resources I came across in this context: 

Quote
"My personal pet peeve is how many people think the hard part is in the “big and hard problems” or in some fluffy but important-sounding thing like “innovation”. In fact, all the real work is in getting the details right. It’s that “1% inspiration, 99% perspiration” thing. People seem to think that inspiration is the much bigger and important part of the two, but I’ve come to believe that while it’s important to have inspiration, where people actually stumble is when they can’t execute on that inspiration. Inspiration isn’t that rare in the end, but people who have it and then actually follow through… that’s rare."

— Linus Torvalds (via igrigorik)

Text

Coderetreats in Colorado on Dec 3 - Global Day of Code Retreat

Saturday Dec 3rd is being observed as the Global Day of Code Retreat, with Code Retreats being organized in more than 60+ cities around the world! Check out more details at http://coderetreat.com/global_day.html
For the Colorado Developers interested in participating in an event, there is a code retreat being organized in the following cities:
  1. Fort Collins : Register at http://fortcollinsgdcr11.eventbrite.com/
  2. Boulder       : Register at http://global-coderetreat-boulder.eventbrite.com/
  3. Denver         : Register at http://www.eventbrite.com/event/2242350932/
  4. Colorado Springs : Register at http://cospringsdec11.eventbrite.com/
Hopefully you can make it to one of these events!
Link

Will be using this in my presentation on tmux at the vim boulder meeting this Tuesday. http://www.meetup.com/Vim-Boulder/events/26498881/

Another useful post with cheatseet for both tmux & screen : http://www.dayid.org/os/notes/tm.html

Text

About embellishing Rails URLs:

Learning about how to embellish Rails URLs for my current client project….

The following two links were very useful in this effort:

  1. http://apidock.com/rails/ActiveRecord/Base/to_param
  2. http://miguelsanmiguel.com/2011/03/17/slug-that-slash
Link
Link

Found this useful in figuring out why the following warning message was being shown in my test output:

ignoring attempt to close tr with table

  opened at byte 1159, line 28

  closed at byte 1261, line 33

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: “$0.00</td>\n  <tr/>\n\n</table>  \n\n<form me”

ignoring attempt to close tr with div

  opened at byte 1159, line 28

  closed at byte 1481, line 36

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: “rt" /></div></form>\n</div>      <a href=”

ignoring attempt to close tr with div

  opened at byte 1159, line 28

  closed at byte 1711, line 41

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: “011  9:43pm</p>\n    </div>\n    <div id="”

ignoring attempt to close tr with div

  opened at byte 1159, line 28

  closed at byte 3960, line 85

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: “/div>\n\n    </div>\n  </div>\n</body>\n</htm”

ignoring attempt to close tr with body

  opened at byte 1159, line 28

  closed at byte 3967, line 86

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: ”    </div>\n  </div>\n</body>\n</html>\n”

ignoring attempt to close tr with html

  opened at byte 1159, line 28

  closed at byte 3975, line 87

  attributes at open: {“class”=>”total_line”}

  text around open: “/div>\n<table>\n  \n\n  <tr class="total_lin”

  text around close: “v>\n  </div>\n</body>\n</html>\n”

Turned out I had ended a <tr> tag with <tr/> instead of </tr>

Link
Link
Link