Showing posts with label ruby on rails. Show all posts
Showing posts with label ruby on rails. Show all posts

Tuesday, February 21, 2012

Using Bayesian Analysis to Filter Hacker News To Your Preferences

Very cool post on code to use bayesian analysis to filter Hacker News for your preferences. My comment:
Very cool. It would be nice if you could include data on users that up-voted the story. My guess is you don't have access to that data though. But if you did I would think that could be a very useful test. Even getting things like if these 2 or 3 people liked it super big bonus points... And even learning, either bozos that like stupid stuff or spammers so that if it learns big up-votes from those people is a negative (not a positive). At the very beginning of using Reddit I thought they were doing that kind of stuff when displaying the home page. I thought my preferences were being stored so that it could judge what I would like (not just to bump that story up). It would be cool if Reddit and/or HN could at least let us say add this person to my recommended list (and then highlight all stories those people up-vote).

Monday, February 23, 2009

12 Good Ideas for Scaling Rails

Building and Scaling a Startup on Rails: 12 Things We Learned the Hard Way

The HTTP protocol lets you tell browsers what static content they can cache. You set this in apache. Rails automatically will put timestamps in the IMG / javascript / CSS tags, assuming you're using the helpers. The Firefox plugin YSlow coupled with Firebug are your friends here. The improvement is significant and well worth your time, especially if you add gzip'ing. 100KB initial page load can be brought down to 5K (just the HTML file) on subsequent clicks around your site.
...
Fix your DB bottlenecks with query_reviewer and New Relic
This basically saves your ass completely. Everyone complains that Rails is slow. Rails is not slow, just like Java Swing is not slow. Rails makes it easy to shoot yourself in the face. If you do follow-the-textbook-example bumbling around with Rails ActiveRecord objects, you will end up with pages that drive 100 queries and take several seconds to return.


Very good post, definitely worth reading.

Related: Ruby on Rails Tutorials - Joy in Work for Software Developers

Monday, January 05, 2009

Ruby on Rails Tutorials

Nice post with a bunch of Ruby on Rails Tutorials

Ruby On Rails Tutorial: The Basics A two-part tutorial to getting up and running on rails by Huw Collingbourne.
...
Catching rails error messages An easy example of how to use the 2.x approach to catching errors in your rails applications.
...
Stop Rails from sending email A useful way to check that mail is getting sent, without actually sending it.
...
Ruby on Rails Rake Tutorial Gregg from RailsEnvy again running through how to make the most of rake. If you’re not already writing your own custom tasks in rake you should definitely take a look because there is probably a handful of things your could (and should) be doing in it.
...
Ruby on Rails Security Guide Storing and protecting the session, user management, projecting from injection, and more.


Follow the link for many more.

Related: What Does This Error Mean - ruby on rails posts - Ruby on Rails Job Opportunity

Thursday, October 23, 2008

What Does This Error Mean

What Does This Error Mean - paste in an error message and read comments on what it means and how you can fix it.