Ever wonder what goes inside a busy day of an entrepreneur living up to his entrepreneurial functions and activities? Basically... a lot. The very first thing that would enter his mind when he wakes up in the morning is how to show efficiency and effectiveness to the client the benefit of his presentation. Then he would walk into his office and meet with them. He would emphasize the importance of patronizing his ideas. When they shook hands with it, an entrepreneur knows that's the start of a brand new day.
- Sumanth
Sanitize before saving or before displaying? Or both? Should you sanitize text before saving it or before displaying it? It's nice to not need to worry about doing anything extra in your views. However, if a field escapes your notice, you may be open for an attack. I think your first line of defense should be model-level sanitization, but auto-escaping HTML is good backup. Doing both covers your bases at a cost of extra processing.
- Sumanth
A central tenet in The Silver Lining is that the tough times today are actually a hidden boon for innovation -- scarcity will drive discipline, forcing innovators to focus on critical assumptions and make quick decisions.
- Sumanth
If you're the new boss, how do you make sure that you don't repeat the bad habits of the old bosses who drove you crazy? My advice is to develop solid answers to five make-or-break questions for aspiring leaders
- Sumanth
From the page: "Ruby is a fast language, and a great one in so many ways, but nothing in this world is truly free. ItâÂs very easy to do things that seem inconsequential but that later can bring your application to a grinding halt. In this post, IâÂll outline five important ways that you can avoid some of the most common problems Rails apps encounter."
- Sumanth
Rasta is a keyword-driven test framework using spreadsheets to drive testing. It's loosely based on FIT, where data tables define parmeters and expected results. The spreadsheet can then be parsed using your test fixtures. For the underlying test harness, Rasta uses RSpec so in addition to reporting results back to the spreadsheet you can take advantage of RSpec's output formatters and simultaneously export into other formats such as HTML and plain text.
- Sumanth
What makes a successful entrepreneur? Are there specific qualities that one needs to have? Most importantly, are there specific questions that one needs to answer, in order to understand what lies ahead? Here are some questions (courtesy WallStreetJoural) that might help you in deciding whether to take `that' plunge or not:
- Sumanth
Ajax pagination This is the most popular feature request for will_paginate library. Reasons why the core library doesn't support this are: 1. pagination is a concept decoupled from HTTP requests and rendering; 2. Ajax pagination is done differently across web frameworks; 3. Ajax is done differently across JavaScript libraries (not everyone uses Prototype); 4. The JavaScript side of the Ajax pagination concept is not trivial at all.
- Sumanth
Rails Logging Tips Ruby on Rails comes prewired for logging using Logger from the Ruby Standard Library. This article demonstrates how to use the Rails logger, how to create your own logs, and offers some tips for debugging with console logging.
- Sumanth
If you live in the United States, don't forget to set your clocks an hour ahead before you go to sleep tonight as Daylight Saving Time goes into effect tomorrow morning at 2 am. While the practice has been around for many years, working out times for the various time zones in the States can still cause confusion, particularly this weekend, and especially as not all states observe Daylight Saving Time. Enter Google and its 'time' shortcut.
- Sumanth