davidpritchard.org

Transit Map Mashup (Tech Talk)

· modelling & sci/tech · 2 comments

GTHA Transit Map

A few years ago, I built a Google Maps app that combined the maps from several Toronto transit agencies all in one mashup map. I never got around to discussing the technical issues associated with that effort, and thought it might be worth writing up. This is an extra-technical post, covering the GIS / raster graphics / GDAL programming techniques I used to make the mashup work, for anyone else interested in trying a similar exercise.

Continue reading

Represent Data

· modelling & sci/tech, politics · 1 comment

I recently received an NGO request for the House of Commons members’ contact information in Comma Separated Value (CSV) format. I quickly found the helpful Represent website by Open North. This small group who has scraped government websites and created machine-readable versions of MP contact information, plus a minimal maps interface layered on top.
However, the Represent effort leans a little too “techno-elite.” The results are provided in the JSON format, a hyper-current, versatile and Web-buzzword-compliant format. But most NGOs I know are still struggling to figure out Excel, never mind anything more recent; and Excel can’t handle much more than CSV files (if even that - modern web-friendly text encodings like UTF8 don’t even work properly).
So, I put together a quick bit of Javascript to convert the Represent JSON format to CSV format, ready for Excel to use. This should be “live” - pulling the latest version from Represent each time. Here are links to a few of the Represent datasets:

Federal

  • Members of the House of Commons, CSV format

Provincial

  • Members of Legislative Assembly of Alberta, CSV format

  • Members of Legislative Assembly of British Columbia, CSV format

  • Members of Legislative Assembly of Manitoba, CSV format

  • Members of Legislative Assembly of New Brunswick, CSV format

  • Members of Newfoundland and Labrador House of Assembly, CSV format

  • Members of Nova Scotia House of Assembly, CSV format

  • Members of Legislative Assembly of Ontario, CSV format

  • Members of Legislative Assembly of Prince Edward Island, CSV format

  • Members of Assemblée nationale du Québec, CSV format

  • Members of Legislative Assembly of Saskatchewan, CSV format

More movies online! Via the USA

· Film · 5 comments

My local video stores all closed two years ago, and we switched largely to iTunes rentals, plus the occasional Bay St. video or Film Buff for obscure films. I was initially quite unhappy with the selection on iTunes Canada - we watch a lot of obscure, old and foreign films, but most of the video-on-demand services are mainly good for post-2005 North American films. So, I’ve just done a quick scan of the alternatives.

The verdict: iTunes Canada is considerably better than it used to be, and iTunes US is a little better - but not massively better. Using both iTunes US and Amazon Instant Video is probably the best bet.

Here’s the math. We’ve got a list of 81 movies we’d like to see. This list already excludes many easy-to-find titles that we’ve already rented from iTunes Canada, but still has a number of popular movies. Many films on the list are from the Onion A.V. Club’s Best of 2000s and orphans lists, the American Film Institute’s Top 100, and good films I’ve previously seen and would like to watch with my wife. You can think of my list as an “obscurity-ometer” - the more you can hit off, the better for viewing obscure films.

Continue reading

Summer break mix

· Music

coverA more electronic-heavy mix, to celebrate the start of my summer break!

There’s not much more to say, except maybe that track #7 is supposed to be a metaphor about the music industry, not just raw sex.

Download here, for a few weeks only. I was hoping to post this as an iTunes Store playlist so you could buy the tracks… but apparently that feature has recently been removed.

[ Postscript: Mixcloud now lets me do something reasonable. ]

  1. tv on the radio. love dog. rock, from dear science…, 2008.
  2. broken social scene. all to all. rock, from forgiveness rock record, 2010.
  3. basti grub & mike trend. afrika am strand [short version]. acid jazz, from future sounds of jazz vol. 12, 2012.
  4. múm. the ballad of the broken string. ambient, from yesterday was dramatic - today is ok, 2000.
  5. afx. reunion 2. electronic/experimental, from chosen lords, 2006.
  6. the long lost. woebegone [flying lotus’ like woe remix]. electro / dubstep, from ninja tune xx compilation, 2010.
  7. the roots feat. cody chestnutt. the seed (2.0). hip hop / soul, from collateral soundtrack, 2004.
  8. roots manuva. chin high [manuvadelic version]. hip hop, from you don’t know: ninja cuts compilation, 2008.
  9. black sun empire. don’t you. drum & bass, from driving insane, 2004.
  10. burial. street halo. techno, from fourtet - fabriclive 59 compilation, 2011.
  11. trentemøller. nightwalker. downtempo, from the last resort, 2006.
  12. patrick watson. lighthouse. rock, from adventures in your own backyard, 2012.
  13. portishead. deep water. jazz, from third, 2008.
  14. sarah harmer. new enemy. folk, from all of our names, 2004.
  15. feist. so sorry. pop, from the reminder, 2007.
  16. thom yorke. and it rained all night. rock, from the eraser, 2007.
  17. prefuse 73. choking you. glitch, from one word extinguisher, 2003.
  18. ingfried hoffman. midnight bossa nova. jazz, from mojo club dancefloor jazz vol. 9, 2000 (original: 1969).

Passive portfolio 2012

· Finance

I have little new to add about my investment portfolio; mostly, this is just an update on the fine, fine results of the past year - a +12% year!

Past editions: 2009, 2010, 2011

I’ve made only a few tweaks to my portfolio targets this year:

  • Switched to a 75/20/5 portfolio split on equities/bonds/cash, from 80/15/5.  I’ve been meaning to do this for a while, but wanted to wait for a good stocks year before doing it.
  • Dropped XRB (real return bonds) from the target portfolio. I’ve been a little baffled by the ETF’s good performance for the past several years; it didn’t make sense to me, and while I’d added XRB to my target portfolio, I hadn’t actually gone through and purchased yet. I finally figured out the reason: XRB holds mostly long duration bonds, with an average duration of 20.4 years. It’s the inflation-protected equivalent of XLB (long bonds, avg. 22.6 years), not the twin of XBB (mixed bonds, avg 9.7 years). That explains the good recent performance - long bond prices have been on a tear as interest rates plummeted and settled at zero. But their future performance doesn’t look good at all; it’s a terrible time to enter an XLB or XRB position. If there was a Canadian real return bond ETF with a shorter duration, I’d consider it, but there isn’t.
  • Adjusted target weights due to Vanguard changes regarding South Korea (a.k.a. jokingly as “Samsung”). Vanguard is in the process of migrating its funds to a different set of target indices, and the new indices classify South Korea as a “developed” economy rather than an “emerging” economy. My target weights for VEA and VWO have to change as a result.
  • Adjusted target weights for shifting national market cap shifts. This raises the US market exposure in particular. I use Vanguard data on the components of their VT fund to decide the appropriate weights for VTI/VEA/VWO; I’m essentially trying to manually match the contents of VT excluding Canada.

Here’s a table comparing last year’s portfolio target with my current target:

Weight (last year)Weight (now)
Equities
   U.S.A.VTI28.7%28.7%
   Europe / PacificVEA26.4%24.2%
   EmergingVWO8.9%7.1%
   CanadaXIC16.0%15.0%
Subtotal80%75%
Fixed income
   Broad bondsVAB/XBB11.3%20.0%
   Real return bondsXRB 3.8%
Subtotal15%20%
Cash5%5%

Performance

Let’s close with a quick review of the performance of this portfolio over the past several years. The table below shows the annual returns of each component of the portfolio, giving the “sequence of returns” for each piece.

200720082009201020112012
Equities
   U.S.A.VTI-9%-23%11%11%6%16%
   Europe / PacificVEA-6%-27%10%3%-8%18%
   EmergingVWO17%-42%52%13%-15%19%
   CanadaXIC9%-33%34%17%-9%7%
Subtotal-2.2%-27.8%18.9%9.9%-3.3%15.2%
Fixed income
   Mixed bondsXBB/VAB 3%6%5%6%9%3%
Subtotal3.0%6.1%5.1%6.0%9.1%3.0%
Cash0%0%0%0%0%0%
Total-1.1%-19.7%15.2%8.6%-0.7%12.0%

Same assumptions as usual:

  • Expressed in Canadian dollar terms (i.e., including all currency shift effects and using no currency hedging)
  • Rebalanced annually

Cumulative returns:

  • From Jan. 2007 to Dec. 2012: 10.7%
  • From Jan. 2008 to Dec. 2012: 11.9%
  • From Jan. 2009 to Dec. 2012: 39.3%
  • From Jan. 2010 to Dec. 2012: 20.9%
  • From Jan. 2011 to Dec. 2012: 11.3%

I started investing in late 2008, so I usually look at the Jan. 2009 - Dec 2012 return - but it’s always good to remember that this gives a very rosy view compared to other starting dates.

Closing Thoughts

Despite all of the European fear and the “fiscal cliff” in the US at year end, it’s been a very good year. This year finally demonstrated the value in a globally balanced portfolio, as Canada’s markets stagnated. And the portfolio’s already up another 3% since Jan. 1st…

Moving Cooler, part 2

· Climate Change, Transportation · 1 comment

Six weeks ago, I wrote a first piece on the Moving Cooler report. In that post, I walked through some of the report findings:

  1. Scope and approach

  2. What would happen if we deployed a sensible “bundle” of policies all at once?

  3. How do individual policies compare, within that bundle?

In this post, I’ll continue by looking at:

  1. What about at a “maximum” level?

  2. Conclusions

What does maximum deployment look like?

In the previous post, I looked at a few of the “big impact” policies. At the time, I focused on the “aggressive” deployment level. In this section, I want to switch gears to the “maximum” deployment level and dive a little deeper.

Continue reading

Moving Cooler, part 1

· Climate Change, Transportation, Urban Planning · 2 comments

Three years ago, an excellent report advanced my understanding of which transportation/land use policies can really help to tackle climate change. From all appearances, that report has disappeared beneath the waves without a trace; I’ve met few policy advisors who have read it.
The report is Moving Cooler, written by consultants at Cambridge Systematics in 2009. It’s a non-academic technical piece with good math but poor messaging and graphics, and while there was some promotion during the study process, I’ve seen no follow-through. Together, this probably explains why it went unnoticed.
I’ll walk through the report findings in four stages:

  1. Scope and approach

  2. What would happen if we deployed a sensible “bundle” of policies all at once?

  3. How do individual policies compare, within that bundle?

  4. What about at a “maximum” level? (Discussed in part two.)

My own perspective in this post will be to understand two questions:

  • How quickly can we realistically hope to reduce emissions within the transportation sector?

  • Which policies offer the greatest potential at a reasonable cost? (This will necessarily ignore other considerations, such as equity or acceptability. To me, the first question is “does it work?” and only then is it worth asking “is it fair?” and “is it politically realistic?”

The report itself was never freely available, but executive summary material and appendices were online until quite recently. As the report website has recently disappeared, I’ve reposted a few of the freely available items for reference:

Scope and Approach

There are three key items to be aware of when interpreting the study:

  1. The study scope focuses only on policies in two of four areas:

    • included: travel activity changes by reducing the distance travelled or shifting to more carbon-efficient modes of travel.

    • included: vehicle and system operations by improving traffic flow.

    • not included: vehicle technology, such as electric vehicles

    • not included: fuel technology, such as cellulosic ethanol

  2. Confusingly, the “bundles” in the study and the graphs showing potential emission reductions all exclude carbon pricing or fuel taxes or other economy-wide pricing initiatives. These policies are covered elsewhere in the text, but the presentation is quite confusing, especially considering that these are likely the most important policies. I will attempt to cover them more clearly here.

  3. The study sponsors and steering committee are largely so-called “interest groups” such as environmental NGOs, Shell Oil and ITS America. Surprisingly, this membership hasn’t significantly coloured the study findings or objectivity. The study does not make recommendations and the dry, clinical tone is undoubtedly a requirement for a neutral policy study of this sort with a diverse set of stakeholders.

The study is quite U.S.-centric, but I feel the findings could be easily extrapolated to most English-speaking countries, who have all experienced 65 years of substantial post-war growth in low-density auto-oriented suburbs.

What can a full bundle do?

I’m not going to reiterate what the report itself says well. The executive summary is quite clear; I’ll just add my own interpretation. There are a few helpful points to add regarding the baseline scenario:

  • The future fuel prices make sense. I was initially concerned that this 2008-09 study might be too optimistic, as it relies on Energy Information Administration (EIA) forecasts, which were notoriously optimistic prior to their 2009 release. However, the study clearly tried to grapple with the issue in the absence of EIA guidance and they came up with a fairly reasonable scenario, midway between  the EIA’s 2012 “baseline” and “high oil price” scenarios extrapolated out to 2050.  That fuel price assumption is essentially $3.70/gal in 2010 with a 1.2% real annual increase thereafter, giving about $6/gal by 2050 (in real dollars).

  • The fuel efficiency assumptions are an “optimistic business as usual” scenario, with fuel efficiency improving from 20 mpg to 44 mpg by 2050. This doesn’t include significant policy to reduce gasoline usage through vehicle technology or alternate fuels

I would characterize the aggressive and maximum scenarios as shown in the above figure (adapted from Figure ES.3). In this figure, I’ve added in the effect of the carbon price / fuel tax  policies. As can be seen, this shows considerable potential for carbon reductions from the full policy bundles studied. The key messages:

  • Travel activity policies can have a real effect, up to a quarter of transportation emissions.

  • Strong carbon pricing of some form must be a part of the mix to make a real dent in emissions; the majority of the reductions shown are due to the pricing policy alone, and the pricing policies have the highest potential early on.

  • Additional policies in the vehicle and fuel technology areas are required to hit the long-term reduction targets.

The report’s executive summary and figures don’t hammer these points home enough, in my view.


Of course, the climate will continue to change unless we can reach zero annual emissions. Until then, each year’s emissions will accumulate in the atmosphere, adding to the warming. The figure above shows the same information in terms of “total accumulated emissions to the atmosphere between 1990 and 2050.”  As long as the emissions curve keeps going up, the climate will keep getting warmer.

What can individual policies do?

The report’s executive summary does a poor job of comparing individual policies or policy categories. I will draw my own highlights instead. Let’s take a look at each policy category and the “best of breed” policy from an emissions perspective, at an “aggressive” deployment level.

StrategyBiggest Policy in StrategyEmissions Reduction (MT)Cost
PricingCarbon pricing4,410< $0.05 B
Regulatory measuresSpeed limit reductions2,320$6.5 B
Systems operation and management strategiesEco-driving1,170< $0.05 B
Land use and smart growth strategiesCombined land use865$1.5 B
HOV / carpool / vanpool / commute strategiesEmployer based commute strategies486$120.8B
Public transportation strategiesUrban transit expansion281$503.0B
Non-motorized transportation strategiesCombined pedestrian171$30.4B
Multimodal freight strategiesTruck APUs148$0.3B
Bottleneck relief and capacity expansionBottleneck relief(5)$71.4B

This really says it all:

  • Pricing measures are number one, with a bullet.  For anyone who’s been around the transportation field for a while, this is fully expected.

  • The number two and three measures are probably surprises to many people: speed limit reductions and eco-driving.  There’s a reason why Nixon implemented speed limit reductions in the 1970s: they really work at reducing gasoline usage.  Eco-driving is also the only effective policy in the “system operations” group (which otherwise consists of ITS road technologies like ramp metering and incident management).

  • Numbers four through seven are the usual suspects in “green” circles. But the order may come as a surprise - public transit is a long way down the list.

  • Freight emissions are tough: the maximum impact policy is quite small.

  • “Bottleneck relief” and “capacity expansion” make the problem worse, not better.

  • The top strategies are all quite cheap. The most popular strategies (transit, bottleneck relief) are extremely expensive.

All of this hinges on the underlying analysis, but I feel it’s pretty solid. The appendices of the report give all of the gory details; they’re stellar examples of how to do high-level “sketch” planning.  At some point, I’d be curious to try it out with Canadian data; I doubt the results would be very different, though.

Coming next - Part 2

In the next part of this blog post, I’ll look at:

  • What does “maximum” deployment look like?

  • Concluding remarks

Spring mesclun mix

· Music

album cover - moss on wood

After a dance-heavy mix last time, this one offers a little more variety.  J is of course a folk and world music fan, and I’ve started to dig through her CD collection, picking up at least a few interesting artists along the way: Kevin Breit, Amadou & Mariam, Sarah Harmer, Basia Bulat and Tri-Continental, to name a few.

Electronic music continues to hold my attention, but I’m a little tired of the repeated echoes of electro and I never got very far into dubstep.  Ninja Tune’s recent four-CD XX twentieth-anniversary collection blew my mind, though: take the various ideas coming out of electro and dubstep, and let some eccentric artists take them in wild directions. Trippy stuff; perhaps more so if I had more of a taste for UK hiphop.

Download here, for a few weeks only.

  1. kevin drew. frightening lives. rock, from spirit if…, 2007.
  2. diplo. summer’s gonna hurt you [diplo 2010 remix]. dubstep, from ninja tune xx compilation, 2010.
  3. dj krush. pretense. instrumental hip hop, from jaku, 2004.
  4. kanye west. all of the lights. hip hop, from my beautiful dark twisted fantasy, 2010.
  5. sufjan stevens. riffs and variations on a single note for jelly roll, earl hines, louis armstrong, baby dodds, and the king of swing, to name a few. pop, from come on feel the illinoise, 2005.
  6. belle & sebastian. string bean jean. pop, from dog on wheels ep, 1997.
  7. basia bulat. heart of my own. folk, from heart of my own, 2010.
  8. patrick watson. traveling salesman. rock, from wooden arms, 2009.
  9. hot chip. keep fallin’. electro-soul, from coming on strong, 2005.
  10. grasscut. blink in the night. downtempo, from ninja tune xx compilation, 2010.
  11. béla fleck & the flecktones. prelude. jazz, from outbound, 2000.
  12. peaking lights. all the sun that shines. downtempo, from 936, 2011.
  13. parov stelar. catgroove. acid jazz, from coco, 2009.
  14. dennis ferrer. son of raw. acid jazz, from future sounds of jazz vol. 11 compilation, 2007.
  15. vive la fête! assez. electro, from nuit blanche, 2003.
  16. björk. pagan poetry. pop, from vespertine, 2001.
  17. amadou & mariam. m’bife blues feat. manu chao. world, from dimanche à bamako, 2005.
  18. harry manx & kevin breit. curly may and his brother. folk, from jubilee, 2003.

Was this list influenced by any YouTube memes or the occasional “just for laughs” impulse? You be the judge.

Passive portfolio tweaks 2011

· Finance · 3 comments

I’ve posted several times previously about my investment portfolio, but I thought I’d update regarding a few tweaks I’ve made in the last year. The main inspiration for the tweaks comes from reading Rick Ferri’s book All About Asset Allocation — I  finally found a book that laid out the main aspects of portfolio selection in a thorough way, with enough graphs and correlation coefficients to satisfy my inner mathematics geek.

Here’s a table comparing last year’s portfolio target with my current target:

Weight (last year)Weight (now)
Equities
   U.S.A.VTI30.1%28.7%
   Europe / PacificVEA28.7%26.4%
   EmergingVWO5.2%8.9%
   CanadaXIC16.0%16.0%
Subtotal80%80%
Fixed income
   Short bondsXSB15.0%
   Broad bondsXBB/VAB11.3%
   Real return bondsXRB3.8%
Subtotal15%15%
Cash5%5%

Equities

I took a more careful approach to splitting equities up across the regions of the world. The weights are based on the total market capitalization of the stock markets in each region (rather than “GDP weighted”) as of Oct. 2011, with an adjustment to force Canada to 20% of the equity portfolio.  As can be seen, the emerging markets are the main item that changed in this review, mostly because different sources list different countries in the “emerging” category, and because emerging markets have gained quite a bit against developed markets since I first put my targets together several years ago.

(Side note: there’s also now a nice VXUS Vanguard fund covering VEA, VWO and some XIC, with better small-cap exposure and reasonable fees. Definitely a nice way to keep the VEA/VWO balanced for less effort.)

Fixed income

Ferri’s book helped me understand bonds better, and how stocks and bonds interact in a portfolio. I’d read advice that “long bonds have poorer returns that stocks over the long term, and therefore you should own stocks for high risk/high return and short-term bonds for safety.” On that basis, I’d bought XSB (a short-term bond index, average duration of about 2.9 years).

Medium- and long-term bonds are also quite “safe” (over an investment horizon of several years). They also typically offer better returns than short-term bonds. One source I read described short-term bonds as helpful in “inflationary recessions” and long-term bonds as helpful in “deflationary recessions.”  Regardless, I’ve seen little evidence to favour short-term bonds over the other types. As a result, I’ve shifted to XBB (or VAB) which contains a mix of short, medium and long-term bonds, all investment grade.

More importantly, I now understand how stocks and bonds interact. In technical language, they have low correlation, but I find there’s an easier way to think about it.  When you hold both stocks and bonds and rebalance at the end of each year, you’re essentially using the “low correlation” as a way to sell high/buy low. If it’s a great year for stocks, it’s usually a poor year for bonds. Rebalancing will require you to sell stocks at the end of the year (“sell high”) and shift money into bonds (“buy low”). It’s a really simple way to force you into this strategy. Additionally, stocks and bonds have a good fundamental basis for being “low correlated” - they are really different ways of providing capital to a company. Stocks are “high risk” ownership where stockholders take on the risk of good/bad economies, good/bad company performance etc. Bonds are “low risk” loans where bondholders receive income regardless of the economy or company performance; the main risk that bondholders retain is interest rate risk (that is, the risk that they could have asked for more interest on their loans if they’d loaned at a later date).  These two different types of retained-risk fundamentally drive the low correlation, and make stocks and bonds much more distinct than, say, two stocks from different industries.

I also find that this “buy low / sell high” understanding of stocks/bonds helps me decide how to make changes to my portfolio targets. For example, given the past year of poor stock performance and good bond performance, it’s a poor time to change the stock/bond allocation in my portfolio from 80%/15% to 75%/20% because that would mean “selling stocks low” and “buying bonds high.” Instead, if I want to make that change, I’ll wait a year or two.

Finally, I’ve also added “real return bonds” to the portfolio - as I understand it, they are very similar to the “broad bonds,” but with a different mix of interest-rate vs. inflation risk.  I’ll admit my understanding remains a little fuzzy.

Cash

I keep most of my cash in the bank to avoid transaction fees.  However, I’ve seen some portfolios where short-term bond ETFs are treated as cash - after all, they’re very safe and liquid instruments with a healthy 3-4% annual return.

Small-caps and Value

I learned a little about the Fama/French finding - that small-cap companies and “value-oriented” companies have historically offered higher returns than the overall stock market. I considered buying some ETFs for this purpose, but ultimately held back. My take is that the Fama/French findings are very well-known now, and that it’s not clear that a premium will continue to exist.  Tilting the portfolio in that direction is essentially a “bet” on an ongoing premium.

Instead, my equity investment goal is simply to reproduce the performance of the global equity market, weighted by market capitalization. No ifs, ands or buts; and no addition of extra layers of “bets.”  I’ll continue to aim to get coverage of small-caps and micro-caps in my portfolio, but I won’t give them extra weight as a Fama/French bet.

Performance

And now, a quick detour into the performance of this portfolio over the past several years. The table below shows the annual returns of each component of the portfolio, giving the “sequence of returns” for each piece.

20072008200920102011
Equities
   U.S.A.VTI-9%-23%11%11%6%
   Europe / PacificVEA-6%-27%10%3%-8%
   EmergingVWO17%-42%52%13%-15%
   CanadaXIC9%-33%34%17%-9%
Subtotal-1.6%-28.3%19.8%9.9%-3.9%
Fixed income
   Mixed bondsXBB/VAB 3%6%5%6%9%
   Real return bondsXRB 1%0%14%10%18%
Subtotal2.5%4.6%7.4%7.1%11.4%
Cash0%0%0%0%0%
Total-0.9%-22.0%16.9%9.0%-1.4%

Assumptions:

  • Expressed in Canadian dollar terms (i.e., including all currency shift effects and using no currency hedging)
  • Rebalanced annually

Cumulative returns:

  • From Jan. 2007 to Dec. 2011: -2.9%
  • From Jan. 2008 to Dec. 2011: -2.0%
  • From Jan. 2009 to Dec. 2011: 25.6%
  • From Jan. 2010 to Dec. 2011: 7.4%

I started investing in late 2008, so I usually look at the Jan. 2009 - Dec 2011 return - but it’s always good to remember that this gives a very rosy view compared to other starting dates.

Closing Thoughts

Sure, it’s been a poor year - the European crisis hit stocks hard - but the impact on the whole portfolio was still not huge.  I’m feeling steadily more comfortable with investment, thanks to a few years of watching the markets closely and really trying to understand what’s happening.  I can’t predict the ups and downs, but at least I’ve done my homework.

Climate Change & Online Discussion

· Climate Change, politics

In the web world, the public conversation about climate change on mainstream discussion and media websites is quite distorted. The comments sections are filled with poorly informed opinions (on all sides of the debate), personal attacks and disinformation.  (It’s widely documented that the fossil fuel industries and other motivated groups are pouring significant amounts of money into propagating disinformation.)  There’s really no meaningful “conversation” happening on most sites, the comments usually shed little real light on the subject at hand, and I don’t think anyone changes their mind by reading the comments. See some examples here

I find it fascinating how real conversations are underway in some places on the web, though. Slashdot is a computer-science-geeks site I’ve been reading for 10+ years, with a very politically diverse spectrum of people on it. If you looked at most political articles there, the discussion is all over the place — left wing vs. right wing vs. libertarians vs. communists vs. anarchists vs. more libertarians.
But the forum is moderated, and well-moderated. And when it comes to climate change articles, the audience is technical, science-reading, and smart. Of the thousands of comments posted on each article, the readers vote the “best” ones up in a fairly effective manner using volunteer moderators and meta-moderators. Most heavily-debunked “denier” talking points are thoroughly rebutted and often voted right out of view. See for example

My recollection from reading Slashdot 5-6 years ago was the opposite — that the debate was much more vigorous, with denier talking points being moderated up equally with climate science talking points. But after scanning several 2004-07 posts, I don’t actually see that — Slashdot’s community and moderation system seems to have effectively rebutted the denier talking points for quite a while. See for example

It speaks to me about the value of websites with a real defined “community” and good moderation systems. It’s possible to learn a lot about the subject by reading Slashdot’s comment sections today, even though the site’s articles alone are minimal or poor. It’s also possible to take an interest in the subject without being repulsed by the constant name-calling, YELLING and bad writing in most newspapers’ comment sections…
This also makes me wonder if our political system can gauge the public opinion effectively. Is the “public’s opinion” the raw, unmoderated comments of a newspaper — or is it what would emerge if online newspapers with a fairly democratic / meritocratic moderation system like Slashdot’s?  (Sure, political offices rely primarily on polling; but they still learn the nuances of public opinion from letters to the editor and other such sources.)
Food for thought.