from http://dyn.com/web-browser-dns-caching-bad-thing/
The whole reason for caching DNS records is to reduce unnecessary DNS queries; many webservers don’t change their IP addresses all that often. Every DNS record that your operating system requests has what is called a “Time to Live” (TTL), which is a number (in seconds) that determines how long a particular
How to find out the old value for an attribute in active model? How to find out whether the value has changed?
If you take a look at the module ActiveModel::Dirty, you will know.
Take a look at the following examples:
Reference: http://api.rubyonrails.org/classes/ActiveModel/Dirty.html
from http://gabeodess.heroku.com/posts/14
I found myself wanting to set an attr_accessor to handle passing a date to my model in a form_for tag with the f.datetime_select helper. So this is what I had:
Model:
attr_accessor :my_time
View:
<%= f.datetime_select :my_time %>
Unfortunately when I submit my form I get this:
1 error(s) on assignment of [...]
If you have ever run into this issue like:
Gem::Package::FormatError: no metadata found in /Users/username/.rvm/gems/ruby-1.8.7-p334@project/cache/cancan-1.5.1.gem An error occured while installing cancan (1.5.1), and Bundler cannot continue. Make sure that `gem install cancan -v ’1.5.1′` succeeds before bundling.
Or
Gem::Package::FormatError: corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in /Users/username/.rvm/gems/ruby-1.8.7-p334@project/cache/warden-1.0.5.gem An error occured while [...]
from http://www.campaignmonitor.com/design-guidelines/
At some stage in your career, it’s likely you’ll be asked by a client to design a HTML email. Before you rush to explain that all the cool kids are using social media, keep in mind that when done correctly, email is still one of the best ways to promote you and your clients online. In [...]
from http://www.freshblurbs.com/command-line-javascript-cli-mac-os-x
With the increasing popularity of server-side Javascript, you may want to have Javascript everywhere. You can use Javascript outside of a browser, on any platform. There are many choices: you can install Mozilla SpiderMonkey, Google V8 or Mozilla Rhino. If you are like me and use Mac OS-X as your development machine, however, you [...]
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta