Damon McCormickDamon McCormick
Standup 04/07/2009: We Have Questions
edit Posted by Damon McCormick on Friday April 10, 2009 at 05:22AM

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?"

Comments

  1. Chris Eppstein Chris Eppstein on April 07, 2009 at 07:44PM

    You can turn on line numbers in your sass output like so:

    config.after_initialize do Sass::Plugin.options[:line_comments] = true end

  2. Chris Eppstein Chris Eppstein on April 07, 2009 at 07:52PM

    Regarding your assertion that nothing interesting happened, I beg to differ. Compass 0.6 was released!

    http://gist.github.com/90683

  3. Steve C Steve C on April 10, 2009 at 02:01AM

    "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