Tag Archives: tech

Visitors to Federal Websites Are Into Taxes, Weather, and…Recalling Puerto Rico’s Governor

Mother Jones

Today the federal government officially launched analytics.usa.gov, a website that shows online traffic to nearly 300 official sites (out of 1,350 executive branch domains). Think of it as Google Analytics or Chartbeat for civics nerds.

Given that Tax Day is right around the corner, the Internal Revenue Service’s “Where’s My Refund?” page predictably lands at the top of the list of sites with the most current visitors. Next is the National Weather Service’s forecast by region page.

But one entry on the top 10 list doesn’t fit in with Americans’ interest in taxes and weather: A petition calling for the removal of Puerto Rico Gov. Alejandro García Padilla that’s posted on the White House’s We the People site. Its appearance on the list is a testament both to its popularity and just how few people hang out on federal websites.

petitions.whitehouse.gov

As of midday Thursday, the petition had about 95,000 signatures, short of the 100,000 mark that would compel the White House to formally respond. Most of the rancor toward García Padilla stems from the island’s current economic crisis and the governor’s recent proposal to implement a 16 percent value-added tax to help pay down billions of the commonwealth’s debt.

Whether the Obama Administration could actually remove García Padilla is a complicated question. As a commonwealth, the island and its 4 million residents (most of whom are US citizens) has its own constitution, which includes a provision for impeachment. But the federal government could also theoretically remove the governor under a provision in the US Constitution that says that Congress has the power to “dispose of” laws in US territories.

It’s not clear what percentage of the visitors to the anti-García Padilla petition page live in Puerto Rico.

Taken from:  

Visitors to Federal Websites Are Into Taxes, Weather, and…Recalling Puerto Rico’s Governor

Posted in Anchor, Citizen, FF, G & F, GE, LAI, LG, ONA, organic, Radius, Uncategorized, Venta | Tagged , , , , , , , | Comments Off on Visitors to Federal Websites Are Into Taxes, Weather, and…Recalling Puerto Rico’s Governor

12 Great Government GIFs

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

Spend enough time browsing government websites and you’re sure to come across a GIF*. Not the bite-sized pop-culture kind, but low-res relics of the days when a GIF was a way to spice up a Web 1.0 site without slowing down Netscape users’ dial-up connections. Here are a dozen taxpayer-funded GIFs you may not be able to stop looking at:

Stinky toxic sludge

EPA

Ronald Reagan meets a turkey

National Archives

This winking, whisker-wagging feline

CDC

This adorably suicidal moon meteor

NASA

This rabid raccoon

CDC

The touch-typing Data Ferrett!

US Census (sadly now defunct)

The Wright Flier

NASA

These menacingly mesmerizing neuroreceptors

Lawrence Livermore National Laboratory

This low-res lava lamp

NIH

Small man with small change

EPA

This guy riding a space probe

NASA

Citizens demanding more GIFs!

EPA

*It’s pronounced with a hard G, like government.

Continue at source: 

12 Great Government GIFs

Posted in Anchor, Citizen, FF, G & F, GE, LG, ONA, organic, Radius, Uncategorized, Venta | Tagged , , , , , , , , , , | Comments Off on 12 Great Government GIFs

The NYPD Is Editing the Wikipedia Pages of Eric Garner, Sean Bell

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

Edits to the Wikipedia entries of several high-profile police brutality cases, including those of Eric Garner, Amadou Diallo, and Sean Bell, trace back to the headquarters of the New York Police Department, Capital New York reports this morning. The pages have been edited to cast the NYPD in a more favorable light and lessen allegations of police misconduct. The edits are currently the subject of an NYPD internal review.

In the case of Garner, who died while placed in a chokehold by a NYPD officer last summer, the word “chokehold” was swapped for “respiratory distress” and the line “Garner, who was considerably larger than any of the officers, continued to struggle with them” was added. The changes ostensibly suggest Garner’s death was his own fault.

Such modifications echo the views of NYPD supporters, including Rep. Peter King (R-N.Y.) who adamantly declared Garner would not have died had he not been so “obese.” In August, the city’s medical examiner officially ruled Garner’s death a homicide due to the chokehold.

The Wikipedia activity brewing at 1 Police Plaza took a distinctly more bizarre turn with edits to the pages “Ice Cream Soda,” “Who Moved My Cheese?” “Chumbawamba,” and “Stone Cold Steve Austin.”

Following Capital New York’s story on Friday, the Twitter account “NYPD Edits” was created to keep tabs on any future changes authored by the NYPD.

Continued here:  

The NYPD Is Editing the Wikipedia Pages of Eric Garner, Sean Bell

Posted in Anchor, FF, G & F, GE, LG, ONA, Radius, Uncategorized, Venta | Tagged , , , , , , , , , , , | Comments Off on The NYPD Is Editing the Wikipedia Pages of Eric Garner, Sean Bell

2014 Was the Biggest Year For Solar Power Ever

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

We’ve noted here before the many ways in which solar power is blowing up in the United States: Adding tons of jobs, driving progressive policies, and attracting millions of dollars in investment from major corporations. It’s not slowing down anytime soon: New data from market analysis firm GTM Research finds that 2014 was solar’s biggest year ever, with 30 percent more photovoltaic installations installed than in 2013. Check it out:

GTM

Those numbers are even more impressive when you compare them to other types of energy sources. Even though solar still accounts for a small share of US electricity generation (less than 1 percent), last year it added nearly as many new megawatts to the grid as natural gas, which is quickly catching up on coal as the country’s primary energy source. (Coal, you can see, added almost nothing new in 2014.)

GTM

The report points to three chief reasons for the boom. First, costs are falling, not just for the panels themselves but for ancillary expenses like installation and financing, such that overall prices fell by 10 percent compared to 2013. Second, falling costs have allowed both large utility companies and small third-party solar installers to pursue new ways to bring solar to customers, including leasing panels and improved on-site energy storage. Third, federal incentives and regulations have been relatively stable in the last few years, while state incentives are generally improving, particularly in states like California and Nevada that have been leading the charge.

One more chart worth pointing out: Rooftop solar tends to get the most press because that’s where homeowners and solar companies get into tussles with big incumbent power companies and the state regulators that often side with them. And it’s true that a new home gets solar more often than a giant solar farm gets constructed. But on a sheer megawatt basis, utility-scale solar is still far and away the leading source, with a few notable projects coming online in 2014, like the Topaz Solar project in the California desert, the largest solar installation in the world.

GTM

More: 

2014 Was the Biggest Year For Solar Power Ever

Posted in Anchor, ATTRA, FF, G & F, GE, LG, ONA, PUR, Radius, solar, solar power, Uncategorized, Venta | Tagged , , , , , , , , , , | Comments Off on 2014 Was the Biggest Year For Solar Power Ever

A Zombie From the 90s Makes the Case For Demanding Strong Encryption

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

Companies like Apple and Google have announced recently that they will start providing their customers with encryption that even Apple and Google don’t have the keys for. This means that even if law enforcement officers get a subpoena for data held by the companies, it won’t do any good. They couldn’t turn over decrypted data even if they wanted to.

This has led to calls from the FBI and elsewhere to provide “backdoors” of some kind for use by law enforcement. This would be a kind of master key available only under court order. But security experts argue that this makes encryption fundamentally useless. If you deliberately build in a weakness, you simply can never guarantee that it won’t be exploited by hackers. Encryption is either secure or it’s not, full stop.

Over at The Switch, Craig Timberg provides an interesting recent example of this. Back in the 90s, we were fighting this same fight, and one temporary result was the government’s mandate that only a weak form of encryption could be exported outside the U.S. This mandate didn’t last long, but it lasted long enough to get incorporated into quite a few products. Still, that was 20 years ago. What harm could it be doing today?

The weaker encryption got baked into widely used software that proliferated around the world and back into the United States, apparently unnoticed until this year.

Researchers discovered in recent weeks that they could force browsers to use the old export-grade encryption then crack it over the course of just a few hours. Once cracked, hackers could steal passwords and other personal information and potentially launch a broader attack on the Web sites themselves by taking over elements on a page, such as a Facebook “Like” button.

….The existence of the problem with export-grade encryption amazed the researchers, who have dubbed the flaw “FREAK” for Factoring attack on RSA-EXPORT Keys….Nadia Heninger, a University of Pennsylvania cryptographer, said, “This is basically a zombie from the ‘90s… I don’t think anybody really realized anybody was still supporting these export suites.”

For vulnerable sites, Heninger found that she could crack the export-grade encryption key in about seven hours, using computers on Amazon Web services….More than one third of encrypted Web sites — including those bearing the “lock” icon that signifies a connection secured by SSL technology — proved vulnerable to attack in recent tests conducted by University of Michigan researchers J. Alex Halderman and Zakir Durumeric. The list includes news organizations, retailers and financial services sites such as americanexpress.com. Of the 14 million Web sites worldwide that offer encryption, more than 5 million remained vulnerable as of Tuesday morning, Halderman said.

This is an object lesson in deliberately building vulnerabilities into encryption technology. Maybe you think you’ve done it perfectly. Maybe you think nobody but the proper authorities can ever exploit the vulnerability. But the chances are good that you’re wrong. In the case of FREAK, we were wrong for nearly 20 years before we figured out what was going on. There’s no telling how long we might be wrong if we deliberately do this again.

More:

A Zombie From the 90s Makes the Case For Demanding Strong Encryption

Posted in FF, GE, LG, ONA, Uncategorized, Venta | Tagged , , , , , , , , , | Comments Off on A Zombie From the 90s Makes the Case For Demanding Strong Encryption

New York Just Showed Every Other State How to Do Solar Right

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

New York wants to get serious about solar power. The state has a goal to cut its greenhouse gas emissions 80 percent below 1990 levels by 2050, and it’s already among the nation’s solar leaders. New York ranks ninth overall for total installed solar, and in 2013 alone it added enough to power more than 10,000 homes.

While that’s great news for solar companies and environmentalists, it’s a bit of a problem for electric utilities. Until recently, the business model of electric companies hadn’t changed much since it was created a century ago. (The country’s first electric grid was strung up by Thomas Edison in Manhattan’s Lower East Side in the 1880s, and some parts of it continued to operate into the 2000s.) Utilities have depended on a steady growth in demand to stay ahead of the massive investments required to build power plants and the electric grid. But now, that tradition is crumbling—thanks to the crazy growth of rooftop solar and other alternative energy sources and some big advances in energy efficiency that have caused the overall demand for electricity to stop growing. Meanwhile, utilities in New York are also required to buy the excess power from solar buildings that produce more than they need—a policy called “net metering”.

But here’s the thing: Even the most ardent climate hawks agree that we can’t afford for utilities to go out of business altogether. Someone needs to maintain and manage the grid. Hardly any solar homes are actually “off the grid,” since they still depend on power lines to soak up their excess electricity during sunny afternoons and deliver power at night. In fact, net metering is a key factor in making solar economically viable to homeowners.

The question of how to aggressively slash carbon emissions without completely undermining the power sector (and simultaneously raising the risk of blackouts and skyrocketing electric bills) is one of the big existential questions that climate-savvy lawmakers are now trying to figure out. And last week in New York, they took a huge step forward.

Under a new order from the state’s Public Service Commission, utility companies will soon be barred from owning “distributed” power systems—that means rooftop solar, small wind turbines, and basically anything else that isn’t a big power plant. (There are some rare exceptions built into the order, notably for giant low-income apartment buildings in New York City that small solar companies aren’t well-equipped to serve.)

“By restricting utilities from owning local power generation and other energy resources, customers will benefit from a more competitive market, with utilities working and partnering with other companies and service providers,” the commission said in a statement.

The move is part of a larger package of energy reforms in the state, aimed at setting up the kind of futuristic power system that experts think will be needed to combat global warming. The first step came in 2007, when the state adopted “decoupling,” a market design in which a utility’s revenue is based not on how much power it sells, but on how many customers it serves. (Remember that in most states utilities have their income stream heavily regulated by the state in exchange for having a monopoly.) That change removed the incentive for utilities to actively block rooftop solar and energy-saving technology, because lost sales no longer translate to lost income. But because utilities could still make money by recouping the cost of big infrastructure projects through increases to their customers’ bills, they had an incentive to build expensive stuff like power plants and big transmission hubs even if demand could be better met with efficiency and renewables.

Now, under New York’s most recent reform, a utility’s revenue will instead be based on how efficiently and effectively it distributes power, so-called “performance-based rates.” This, finally, provides the incentive utilities need to make decisions that jibe with the state’s climate goals, because it will be to their advantage to make use of distributed energy systems.

But there’s a catch, one that had clean energy advocates in the state worried. If utilities were allowed to buy their own solar systems, they would be able to leverage their government-granted monopoly to muscle-out smaller companies. This could limit consumer options, drive up prices, and stifle innovation. That, in turn, could put a freeze on consumers’ interest in solar and ultimately slow down the rate at which it is adopted. But if small companies are allowed in, then the energy market starts to look more like markets for normal goods, where customer choice drives technological advances and pushes down prices.

“New York’s approach to limit utility ownership balances the desire for more solar with the desire to have competitive markets that we expect to continue to bring down the costs of solar,” said Anne Reynolds, director of the Alliance for Clean Energy New York.

The upshot is that solar in New York will be allowed to thrive without being squeezed out by incumbent giants like Con Edison and National Grid.

“This is as exciting as the Public Service Commission gets,” said Raya Salter, an attorney with the Natural Resources Defense Council in New York who worked with state regulators on the plan. “These are bold, aggressive changes.”

The policy puts New York on track for a new way of doing business that many energy wonks now see as inevitable. In the past, the role of electric utilities was to generate power at a few central hubs and bring it to your house; in the near future, their role will be to facilitate the flow of power between countless independent systems.

“We need to plan for a primarily renewable system,” said John Farrell, director of the Institute for Local Self-Reliance, which advocates for breaking up the old utility model as a key solution to climate change. “We want to pay utilities for doing things we want, rather than paying for their return on investment for the things they build.”

So far, the response from utilities has been receptive; a spokesperson for Con Ed said the company looks forward to developing details for how the order will move forward.

The change in New York could become a model for other states, Reynolds said. Regulators in Hawaii are already considering a similar policy.

“Everyone is watching to see what’s happening here,” she said. “It’s really a model of what a utility could be in the future.”

More:

New York Just Showed Every Other State How to Do Solar Right

Posted in alo, alternative energy, Anchor, Everyone, FF, GE, LAI, LG, ONA, Radius, solar, solar power, Ultima, Uncategorized, Venta | Tagged , , , , , , , , | Comments Off on New York Just Showed Every Other State How to Do Solar Right

Summers: Yes, the Robots Are Coming to Take Our Jobs

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

Jim Tankersley called up Larry Summers to ask him to clarify his views on whether automation is hurting middle-class job prospects. Despite reports that he no longer supports this view, apparently he does:

Tankersley: How do you think about the effects of technology and automation on workers today, particularly those in the middle class?

Summers: No one should speak with certainty about these matters, because there are challenges in the statistics, and there are conflicts in the data. But it seems to me that there is a wave of what certainly appears to be labor-substitutive innovation. And that probably, we are only in the early innings of such a wave.

I think this is precisely right. I suspect that:

Automation began having an effect on jobs around the year 2000.
The effect is very small so far.
So small, in fact, that it probably can’t be measured reliably. There’s too much noise from other sources.
And I might be wrong about this.

In any case, this is at least the right argument to be having. There’s been a sort of straw-man argument making the rounds recently that automation has had a big impact on jobs since 2010 and is responsible for the weak recovery from the Great Recession. I suppose there are some people who believe this, but I really don’t think it’s the consensus view of people (like me) who believe that automation is a small problem today that’s going to grow in the future. My guess is that when economists look back a couple of decades from now, they’re going to to date the automation revolution from about the year 2000—but that since its effects are exponential, we barely noticed it for the first decade. We’ll notice it more this decade; a lot more in the 2020s; and by the 2030s it will be inarguably the biggest economic challenge we face.

Summers also gets it right on the value of education. He believes it’s important, but he doesn’t think it will do anything to address skyrocketing income inequality:

It is not likely, in my view, that any feasible program of improving education will have a large impact on inequality in any relevant horizon.

First, almost two-thirds of the labor force in 2030 is already out of school today. Second, most of the inequality we observe is within education group — within high school graduates or within college graduates, rather than between high school graduates and college graduates. Third, inequality within college graduates is actually somewhat greater than inequality within high school graduates. Fourth, changing patterns of education is unlikely to have much to do with a rising share of the top 1 percent, which is probably the most important inequality phenomenon. So I am all for improving education. But to suggest that improving education is the solution to inequality is, I think, an evasion.

Also read Kevin’s #longread all about this stuff: Welcome, Robot Overlords. Please Don’t Fire Us?

This is the key fact. Rising inequality is almost all due to the immense rise in the incomes of the top 1 percent. But no one argues that the top 1 percent are better educated than, say, the top 10 percent. As Summers says, if we improve our educational outcomes, that will have a broad positive effect on the economy. But it very plainly won’t have any effect on the dynamics that have shoveled so much of our economic gains to the very wealthy.

The rest is worth a read (it’s a fairly short interview). Summers isn’t saying anything that lots of other people haven’t said before, but he’s an influential guy. The fact that he’s saying it too means this is well on its way to becoming conventional wisdom.

Visit site:

Summers: Yes, the Robots Are Coming to Take Our Jobs

Posted in Anker, FF, GE, LAI, LG, ONA, Uncategorized, Venta | Tagged , , , , , , , , , , , | Comments Off on Summers: Yes, the Robots Are Coming to Take Our Jobs

The FCC Just Approved Net Neutrality

Mother Jones

On Thursday, the Federal Communications Commission voted to categorize the internet as a public utility and thereby uphold strong net neutrality regulations.

Advocates applauded the passage as a victory for internet consumers, blocking what had been described as the creation of internet “fast lanes” for companies willing to pay more for high-speed service.

The vote came down to a 3-2 margin, with dissents from Republicans Michael O’Reilly and Ajut Pai.

“The action that we take today is an irrefutable reflection of the principle that no one, whether government or corporate, should control free open access to the internet,” FCC Chairman Tom Wheeler said prior to the vote.

“The internet is simply too important to allow broadband providers to be the ones making the rules,” he added.

In recent months, net neutrality has emerged as a divisive political issue, with fierce opposition against regulations coming from Republicans and broadband providers alike. President Obama’s announcement back in November fully supporting net neutrality’s preservation prompted members of the GOP to denounce the potential move.

See the original article here: 

The FCC Just Approved Net Neutrality

Posted in Anchor, FF, G & F, GE, LAI, LG, ONA, Radius, Uncategorized, Venta | Tagged , , , , , , , , , , , | Comments Off on The FCC Just Approved Net Neutrality

Quiz: North Korean Slogan or TED Talk Sound Bite?

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

North Korea recently released a list of 310 slogans, trying to rouse patriotic fervor for everything from obeying bureaucracy (“Carry out the tasks given by the Party within the time it has set”) to mushroom cultivation (“Let us turn ours into a country of mushrooms”) and aggressive athleticism (“Play sports games in an offensive way, the way the anti-Japanese guerrillas did!”). The slogans also urge North Koreans to embrace science and technology and adopt a spirit of can-do optimism—messages that might not be too out of place in a TED talk.

Can you tell which of the following exhortations are propaganda from Pyongyang and which are sound bites from TED speakers? (Exclamation points have been added to all TED quotes to match North Korean house style.)

(function($)

function make_default_how_you_did_html(nCorrect, nQuestions)
var answersWord = nCorrect === 1 ? ‘answer’ : ‘answers’;
return ‘You got ‘ + nCorrect + ‘ ‘ +
‘correct ‘ + answersWord + ‘ out of ‘ + nQuestions + ‘ questions’;

function make_default_how_you_did_htmls(nQuestions)
var ret = [];
for (var i = 0; i <= nQuestions; i++)
ret.push(make_default_how_you_did_html(i, nQuestions));

return ret;
}

$.quiz = function(quiz_data, results_data, options)
var container_elem;
var self;
var cover;
var cheater_answer_tracking = [];
var answer_tracking = [];
var how_you_did_element;

var quiz =
defaulting_behavior_on : true,
defaulting_flag : ‘!default’,
container : ‘quiz_container’,
not_finished_html : undefined,
cheating : false,
possible_display_elements :

name : ‘backgroundimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slide) return ”;
return $(‘<div class=”‘ +
this.name +
‘” style=”background-image: url(” +
slidethis.name +
”); height: 100%; width: 100%;position:absolute;z-index: -1″>’
);
}
},

name : ‘topimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(

);
}
},

name : ‘topvideoembed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
needs_aspect_ratio : true,
create_element : function(slide)
//check aspect ratio
if (!slide.topvideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
},

name : ‘title’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(‘

‘ +
slidethis.name + ”
);
}
},

name : ‘middleimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(

);
}
},

name : ‘middlevideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.middlevideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
},

name : ‘subhed’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(” +
slidethis.name +

);
}
},

name : ‘text’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(” +
slidethis.name +

);
}
},

name : ‘bottomimage’,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
if (!slidethis.name) return ”;
return $(”
);
}
},

name : ‘bottomvideoembed’,
needs_aspect_ratio : true,
finder: function(container)
return container.find(‘.’ + this.name);
,
create_element : function(slide)
//check aspect ratio
if (!slide.bottomvideoembedaspectratio) return ”;
return $(” +
slidethis.name + ”
);
}
}
],

init : function(quiz_data, results_data, options)
self = this;

if (options)
for ( var option in options )
selfoption = optionsoption;

}

if (typeof(quiz_data) === ‘string’)
// is a google spreadsheet.
// Will call init_data in a callback
self.load_from_google_spreadsheet(quiz_data);
else
if (!results_data)
results_data = make_default_how_you_did_htmls(quiz_data.length);

self.init_data(quiz_data, results_data);
}

return self;
},
init_data: function(quiz_data, results_data)
self.quiz_data = quiz_data;
self.results_data = results_data;

self.calculate_aspectratios(quiz_data);
self.create_cover();

for ( var i = 0; i < self.quiz_data.length; i++ )
self.append_question(i);

self.append_how_you_did_section();
self.update_how_you_did_element();
self.preload_answer_images();
},
append_how_you_did_section: function()
how_you_did_element = $(”);
cover.append(how_you_did_element);
,

load_from_google_spreadsheet: function(spreadsheet_id)
Tabletop.init(
key: spreadsheet_id,
callback: function(data)
var quiz_data = self.make_quiz_data_from_spreadsheet_data(data);
var results_data = self.make_results_data_from_spreadsheet_data(data, quiz_data);
self.init_data(quiz_data, results_data);

});
},
calculate_aspectratios: function(data)
for (var i = 0; i < data.length; i++)
var row = datai;
for (var k = 0; k < row.possible_answers.length; k++)
var answer = row.possible_answersk;
self.find_aspectratio_for_each_type_of_video_embed(answer);

self.find_aspectratio_for_each_type_of_video_embed(row.question);
}
},

find_aspectratio_for_each_type_of_video_embed : function(slide)
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display = self.possible_display_elementsi;
if ( display.needs_aspect_ratio && slidedisplay.name )
slidedisplay.name + ‘aspectratio’ =
self.find_aspectratio(slidedisplay.name);

}
},
find_aspectratio: function(videoembed)
var height = videoembed.match(/height=”d+”/);
if (!height
height = parseInt(height0.replace(/height=”/, ”).replace(/”/, ”), 10);

var width = videoembed.match(/width=”d+”/);
if (!width || !width0)
console.log(‘Your video embed code needs a width.’);
return ”;

width = parseInt(width0.replace(/width=”/, ”).replace(/”/, ”), 10);

return (height / width)*100;
},
pull_answer_value_from_spreadsheet : function(row, value, wrong_number, correct)
correct = correct ? ‘right’ : ‘wrong’;
if (rowcorrect + wrong_number + value && rowcorrect + wrong_number + value !== self.defaulting_flag)
return (rowcorrect + wrong_number + value);

if ((self.defaulting_behavior_on && rowcorrect + wrong_number + value !== self.defaulting_flag) ||
(!self.defaulting_behavior_on && rowcorrect + wrong_number + value === self.defaulting_flag)
)
return (rowcorrect + value && rowcorrect + value !== self.defaulting_flag ?
rowcorrect + value :
(row’answer’ + value && row’answer’ + value !== self.defaulting_flag ?
row’answer’ + value :
row’question’ + value
)
);
else
return ”;

},
get_possible_answers : function(row, is_correct)
var possible_answers = [];
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
if (rowright_or_wrong)
possible_answers.push(self.make_possible_answer(row, ”, is_correct));

for (var i = 0; i < 10; i++ )
if (rowright_or_wrong + i)
possible_answers.push(self.make_possible_answer(row, i, is_correct));

}
return possible_answers;
},
make_possible_answer: function(row, row_number, is_correct)
var right_or_wrong = (is_correct ? ‘right’ : ‘wrong’);
var answer =
answer: rowright_or_wrong + row_number,
correct: is_correct
;
for (var i = 0; i < self.possible_display_elements.length; i++ )
var display_element = self.possible_display_elementsi.name;
answerdisplay_element = self.pull_answer_value_from_spreadsheet(
row, display_element, row_number, is_correct
);

return answer;
},
make_quiz_data_from_spreadsheet_data: function(tabletop)
var i, j, sheetName, data;
var quiz = [];

// Find a sheet that _isn’t_ named “Results”.
for (sheetName in tabletop)
if (tabletop.hasOwnProperty(sheetName) && sheetName !== ‘Results’)
break;

}

data = tabletopsheetName.elements;

for (i = 0; i < data.length; i++)
var row = datai;
var possible_wrong_answers = self.get_possible_answers(row, false);
var possible_right_answers = self.get_possible_answers(row, true);

var right_answer_placement = [];
for (j = 0; j < possible_right_answers.length; j++)
right_answer_placement.push(
Math.round(Math.random() * possible_wrong_answers.length)
);

// IMPORTANT TO SORT THIS. rather than check if a value is in, we only check the first
right_answer_placement.sort();

var possible_answers= [];
var right_answers_placed = 0;
for (j = 0; j <= possible_wrong_answers.length; j++)
while (j === right_answer_placementright_answers_placed)
//push right answer
possible_answers.push(possible_right_answersright_answers_placed);
right_answers_placed++;

if (j === possible_wrong_answers.length)
continue;

possible_answers.push(possible_wrong_answersj);
}

var question =
question :
,
possible_answers : possible_answers,
rowNumber : row.rowNumber – 1
};
for (j = 0; j < self.possible_display_elements.length; j++)
var display_value = self.possible_display_elementsj.name;
question.questiondisplay_value = row’question’ + display_value;

quiz.push(question);
}
return quiz;
},
make_results_data_from_spreadsheet_data: function(tabletop, quiz_data)
var ret = make_default_how_you_did_htmls(quiz_data.length);

var data = tabletop’Results’ ? tabletop’Results’.elements : [];
for (var i = 0; i < data.length; i++)
var index = datai.numberofrightanswers;
if (index) index = parseInt(index, 10);
if (!isNaN(index))
if (!retindex)
console.log(“Invalid number of correct answers: ” + index);
else
retindex = datai.html;

}
}

return ret;
},
append_question : function(question_index)
var question_data = self.quiz_dataquestion_index;
var question_container = $(‘<li class=”question_container row-fluid question_’ +
question_index +
‘”>’
);
question_container.append( self.build_question_element_from_row(question_data) );
question_container.append( self.build_possible_answer_elements_from_row(question_data, question_index) );
container_elem.append(question_container);
,
build_question_element_from_row: function(row)
var question_container = $(”);
for (var i = 0; i < self.possible_display_elements.length; i++)
question_container.append(
self.possible_display_elementsi.create_element(row.question)
);

return question_container;
},
build_possible_answer_elements_from_row : function(question, question_index)
var answers_container = $(”);

function bindClick(question_index, answer_index, possible_answer)
possible_answer.bind(‘click’, function()
// was it the right answer?
var was_correct = self.quiz_dataquestion_index.possible_answersanswer_index.correct;

// Add correct classes to possible answers
answers_container.find(‘.selected’).removeClass(‘selected’);
$(this).addClass(‘selected’);
$(this).removeClass(‘possible_answer’);
answers_container
.find(‘.answer_’ + answer_index)
.addClass(
was_correct ? ‘correct_answer’ : ‘wrong_answer’
);

//track how many you got right the first time
cheater_answer_trackingquestion_index = was_correct;
if ( typeof(answer_trackingquestion_index) === ‘undefined’ )
answer_trackingquestion_index = was_correct;
cover.find(‘.question_’ + question_index).addClass(
‘first_guess_’ +
(was_correct ? ‘right’ : ‘wrong’)
);

self.update_how_you_did_element();

//show new slide
self.display_answer(self.quiz_dataquestion_index, question_index, self.quiz_dataquestion_index.possible_answersanswer_index);

// track that this was selected last
self.quiz_dataquestion_index.previously_selected = self.quiz_dataquestion_index.possible_answersanswer_index;
});
}

for (var i = 0; i < question.possible_answers.length; i++)
var answer_data = question.possible_answersi;
var possible_answer = $(” +
answer_data.answer +
”);
bindClick(question_index, i, possible_answer);
answers_container.append(possible_answer);
this.note_answer_images(answer_data);

return answers_container;
},
answer_images : {},
preload_answer_images: function()
for (var url in this.answer_images)
var img=new Image();
img.src=url;

},
note_answer_images: function(answer_data)
var image_elements = ‘backgroundimage’, ‘topimage’, ‘bottomimage’;
for (var i = 0; i < image_elements.length; i++)
if (!answer_data[image_elementsi]) continue;
this.answer_images[answer_data[image_elementsi]] = true;
}
self.possible_display_elementsi.name;
},
add_display_in_correct_place: function(container, place_in_display_elements, slide)
for ( var i = place_in_display_elements; i > 0; i– )
if (self.possible_display_elementsi – 1.finder(container).length )
self.possible_display_elementsi – 1.finder(container)
.after( self.possible_display_elementsplace_in_display_elements.create_element(slide) );
return;

}
container.prepend(
self.possible_display_elementsplace_in_display_elements.create_element(slide)
);
},
display_answer : function(question, question_index, answer)
var displayed_slide = question.previously_selected ?
question.previously_selected :
question.question;
var slide = container_elem.find(‘.question_’ + question_index + ‘ .question’);
slide.addClass(‘revealed_answer’);
for (var i = 0; i < self.possible_display_elements.length; i++)
var display_value = self.possible_display_elementsi.name;
if ( answerdisplay_value !== displayed_slidedisplay_value )
if ( !answerdisplay_value )
self.possible_display_elementsi.finder(slide).remove();
else if ( !displayed_slidedisplay_value )
self.add_display_in_correct_place(slide, i, answer);
else
self.possible_display_elementsi.finder(slide).replaceWith(
self.possible_display_elementsi.create_element( answer )
);

}
}
},

create_cover : function()
cover = $(‘#’ + self.container);
container_elem = $(”);
cover.append(container_elem);
container_elem.addClass(‘quiz_container’);
container_elem.css(‘padding’, ‘0px’);
,
update_how_you_did_element: function()
var right_answers = 0;
var user_answers = self.cheating ? cheater_answer_tracking : answer_tracking;
var unfinished = false;
for (var i = 0; i < self.quiz_data.length; i++)
if (typeof(answer_trackingi) === ‘undefined’)
unfinished = true;

if (user_answersi)
right_answers++;

}
var html;
if (unfinished && typeof(this.not_finished_html) !== ‘undefined’)
html = this.not_finished_html;
else
html = this.results_dataright_answers;

how_you_did_element.html(html);
}
};
return quiz.init(quiz_data, results_data, options);
};

$.fn.quiz = function(quiz_data, results_data, options)
if (!options) options = results_data; results_data = null;
if (!options) options = ; }
options.container = this.attr(‘id’);
this.quiz = $.quiz(quiz_data, results_data, options);
return this;
};
})(jQuery);

var quiz = jQuery(‘#quiz_container’).quiz(‘0AqqLuNX4MRr1dDljR1gtU1NOcm5pUF9kX1hDcXBlNEE’);

Excerpt from: 

Quiz: North Korean Slogan or TED Talk Sound Bite?

Posted in FF, GE, ONA, Uncategorized | Tagged , , , , , | Comments Off on Quiz: North Korean Slogan or TED Talk Sound Bite?

Republicans Are Shooting Themselves in the Foot Over Net Neutrality

Mother Jones

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>

I’ve written before about the GOP’s peculiarly uncompromising stance on net neutrality. At its core, net neutrality has always been a battle between two huge industry groups and therefore never really presented an obvious reason for Republicans to feel strongly about one side or the other. But they’ve taken sides anyway, energetically supporting the anti-neutrality broadband industry against the pro-neutrality tech industry. Today an LA Times article dives more deeply into the problems this is causing:

As tech firms and cable companies prepare for a fight that each says will shape the future of the Internet, Silicon Valley executives and activists are growing increasingly irritated by the feeling that the GOP is not on their side. Republican leaders have struggled to explain to their nascent allies in the Bay Area why they are working so hard to undermine a plan endorsed by the Obama administration to keep a level playing field in Internet innovation.

….The fight comes at a time when Republicans had been making gains in Silicon Valley, a constituency of well-heeled donors and coveted millennial-generation voters who have generally been loyal to Democrats….Republicans have hoped to seize on recent Democratic policy moves that riled tech companies, including a push for strict anti-piracy rules and the Obama administration’s continued backing of National Security Agency surveillance of Internet users.

But the hot issue in Silicon Valley now is net neutrality. And on that issue, the GOP and the tech industry are mostly out of step….“It is close to a litmus test,” said Paul Sieminski, a Republican who is the general counsel to Automattic, the company that operates Web-making tool WordPress.com. “It’s such a fundamental issue for the Internet,” said Sieminski, who has been active in fighting for net neutrality. “I guess it is a proxy on where a candidate may stand on a lot of issues related to the Internet.”

The obvious and cynical explanation for the Republican view is that President Obama is for net neutrality, so they’re against it. The more principled view is that they hate regulation so much that they don’t care what it costs them to oppose net neutrality. It’s regulation, so they’re against it.

Neither one truly makes sense to me, and I suppose their real motivation is a combination of both. Most Republicans probably started out moderately skeptical of net neutrality because it represented a new layer of regulation, and then gradually adopted an ever more inflexible opposition as it became clear that Obama and the Democratic Party were staking out the pro-neutrality space. Eventually it became a hot button issue, and now the die is cast.

But it’s sure hard to see what it buys them. It’s already eroding any chance they had of appealing to the growing tech industry, which is going to be even more firmly in the Democratic camp after this. And while the support of the broadband industry is nice, it’s not big enough to tip the fundraising scales more than a few milligrams in either direction.

All in all, it’s an odd fight. It remains unclear to me why Republicans have chosen this particular hill to die on.

See original article: 

Republicans Are Shooting Themselves in the Foot Over Net Neutrality

Posted in FF, GE, LAI, LG, Mop, ONA, Uncategorized, Venta | Tagged , , , , , , , | Comments Off on Republicans Are Shooting Themselves in the Foot Over Net Neutrality