ng-newsletter.com

Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...

Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev
rakeroutes.com

Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...

We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...

For example if you use rvm and get this message: ERROR: Loading command: install (LoadError) no such file to load...

web.archive.org

TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...

makandracards.com

See attached link for a way to extract the conditions of a named scope in Rails 2.3.

makandra dev

JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...

In our continued quest to extract proven code snippets from makandropedia into tested and upgradable gems, we have released Edge...

igvita.com

About Chrome's network stack and optimizations to load web pages faster.

Mobile browser's ignore the autoplay attribute on and elements. Stupid reasons include saving mobile bandwidth on behalf of the...

Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...

When searching for text in a MySQL table, you have two choices: The LIKE operator FULLTEXT indexes (which currently only...

blog.alexmaccaw.com

Over the next year, there are a number of technologies coming down the pipeline that have the potential to radically...