ruby
ruby
ruby
How to write Naive Bayes classification algorithm in Ruby
Naive Bayes classification in plain Ruby: how prior and posterior probabilities decide the winning class, then a working spam filter that classifies email titles. Also where the algorithm shines: sentiment analysis, recommendations, and fraud detection.
cookies
How to debug cookies in Rails and how to solve CookieOverflow issue
Rails CookieOverflow strikes when a cookie exceeds 4096 bytes. How to inspect cookies in Chrome dev tools, read the session dump on the error page, and use the cookie_debugger gem to log exactly which session key is eating the space, even in production.