Interesting
- Nothing interesting happened on the internet yesterday. Sorry to get your hopes up.
Help
“Using compass and sass to generate css, how do we get line numbers in the compiled css indicating the corresponding sass declaration?”
The suggested answer is using the non-silent variety of sass comments in an old skool pragma-mark type fashion.
“Is there a canonical setup for dealing with failover when you have two HA proxy load balancers and round-robin DNS across their two IP addresses?”
You can turn on line numbers in your sass output like so:
config.after_initialize do
Sass::Plugin.options[:line_comments] = true
end
April 7, 2009 at 7:44 pm
Regarding your assertion that nothing interesting happened, I beg to differ. Compass 0.6 was released!
http://gist.github.com/90683
April 7, 2009 at 7:52 pm
“Is there a canonical setup for dealing with failover when you have two HA proxy load balancers and round-robin DNS across their two IP addresses?”
I believe that round-robining two load balancers, and having a 2-server failover setup – these are competing objectives.
Some sort of heartbeat must be used and one of the servers will just sit there idle waiting to be failed over to. This is the safer route anyway, as the failover solution won’t involve loading down a server with 2x normal load (also, even on a single fast server I’ve seen some pretty crazy throughput numbers published for HAProxy setups).
For more on scalability and availability see:
http://www.amazon.com/Scalable-Internet-Architectures-Developers-Library/dp/067232699X/ref=sr_1_1?ie=UTF8&s=books&qid=1239328655&sr=8-1
http://www.amazon.com/Release-Production-Ready-Software-Pragmatic-Programmers/dp/0978739213/ref=sr_1_1?ie=UTF8&s=books&qid=1239328725&sr=1-1
http://www.amazon.com/Art-Capacity-Planning-Scaling-Resources/dp/0596518579/ref=pd_sim_b_5
April 10, 2009 at 2:01 am