No Skepticism on the Energy Gap - NYTimes.com
No Skepticism on the Energy Gap - NYTimes.com:
"So in the end, the epic struggle over global warming, at its root, remains a struggle over how to drive energy innovation."
Emissions of an absent mind.
No Skepticism on the Energy Gap - NYTimes.com:
"So in the end, the epic struggle over global warming, at its root, remains a struggle over how to drive energy innovation."
at
09:56
0
comments
Labels: energy, environment
It presently appears that anyone on the ramp without a TSA ID is subject to fines or convictions in unknown amounts and arrest or detainment by unknown persons...
It is clear the Montrose Airport Appreciation day [...] could be a bit of an issue and the TSA suggested local law enforcement could somehow staff the escort necessities on the field. How exactly do you escort a large milling crowd?
at
07:35
0
comments
Labels: aviation, constitution, transportation
"In short, a web hook, or "http callback" allows you to subscribe to another website's events with a URL. You tell a website, "Hey, when some event happens, send some information about it to this URL". Why? It doesn't matter, it's up to the developer to decide what to do with that information."
at
10:09
0
comments
Labels: web development, web2.0
"A prime example is parallel sessions, which allow you to log into a site using different credentials in separate tabs at the same time. This new technology is woven throughout Stainless, from the private cookie storage system, to session-aware bookmarks that remember the session in which they were saved."
at
06:44
0
comments
Labels: mac, os x, testing, web development
The previous post described improved support for the HTML 5 canvas. It turns out the latest betas of both Firefox and Safari also support the canvas toDataURL method.
An obvious use for this method is to let users easily copy and paste rendered depictions into other applications.
function saveToBitmap() {
var canv = $('#canv');
var img = $('img#bitmap');
img.attr('src', canv[0].toDataURL());
};
at
07:49
0
comments
Labels: javascript, software development, web development
This will be useful for depicting chemical structures using HTML5 canvas: both Safari 4 beta and Firefox 3.1b2 support the HTML5 canvas text rendering APIs.
There are still rough edges, e.g. it's hard to measure text dimensions and therefore hard to position text properly. Still, it's great to see!
$(document).ready(function() {
function redraw() {
var canv = $('#canv');
var w = canv.width();
var h = canv.height();
// Let canvas know how big CSS wants it to be.
canv.attr("width", w);
canv.attr("height", h);
var ctx = canv[0].getContext("2d");
ctx.clearRect(0, 0, w, h);
var msg = "Hello, Safari text.";
var fontSpec = "24pt Verdana";
// Find out the dimensions of the rendered msg.
var e = $('<span style="visibility:hidden;font:' + fontSpec + '">' +
msg + '</span>');
$('body').append(e);
var tw = e.width();
var th = e.height();
e.remove();
ctx.save();
ctx.translate(w/2, h/2);
// Indented to highlight transformation state.
ctx.save();
ctx.rotate(-45 * Math.PI / 180.0);
ctx.translate(-tw/2, th/2);
ctx.font = fontSpec;
ctx.fillText(msg, 0, 0);
ctx.restore();
ctx.restore();
};
redraw();
});
at
07:29
0
comments
Labels: os x, software development, web development
Today I tried to install Ubuntu 8.10 on an old Dell Inspiron 1100 laptop. Most of the process went well, but when I tried to login the screen went black.
Okay, sometimes it went to the default amber Ubuntu background color. No matter: I never got any windows or menus. Since I was unfamiliar with Ubuntu's key bindings, the only way out was to cycle power.
It turns out that compiz, which provides the default Ubuntu 8.10 window manager, does not like the old i845 graphics chipset.
Google eventually turned up a way to disable compiz. Here's what worked for me.
Summary
Login using a Failsafe Terminal session, remove compiz and compiz-core, then logout and log back in using an Xclient script session.
Details
Options link at the bottom left of the display.Select Session...Failsafe Terminal radio button.Change Session button.OK.sudo apt-get remove compiz compiz-coremetacity --replace &Options.Select Session...Run Xclient script radio button.Change Session.
at
14:12
0
comments
Labels: linux, software development, ubuntu
Japan's boffins: Global warming isn't man-made — The Register:
The Register's title is an understatement. The report from The Japan Society of Energy and Resources goes beyond questioning human origins of global warming. It also claims that the pattern of warming since the mid-20th century has ceased.
Excerpts:
One of the five contributors compares computer climate modelling to ancient astrology. Others castigate the paucity of the US ground temperature data set used to support the hypothesis [emph. added], and declare that the unambiguous warming trend from the mid-part of the 20th Century has ceased.
Global mean temperature rose continuously from 1800-1850. The rate of increase was .05 degrees Celsius per 100 years. This was mostly unrelated to CO2 gas (CO2 began to increase suddenly after 1946. Until the sudden increase, the CO2 emissions rate had been almost unchanged for 100 years). However, since 2001, this increase halted. Despite this, CO2 emissions are still increasing.
There is no prediction of this halt in global warming in IPCC simulations.
...climate change and solar activity's relationship is inconclusive. It is necessary to increase research efforts into the relationship between Earth's climate fluctuations and solar activity.
at
07:46
0
comments
Labels: environment, science
Safari 4 Beta has some nice features. Some have apparently been around since Safari 3, but I didn't notice. For example:
ADC — CSS Recipes for WebKit:
"Getting columns right on webpages using pure CSS instead of HTML tables has always been tricky. Since the CSS3 properties for multi-column layout are implemented in Safari and WebKit, you can clearly define the number of columns [and] the gap between the columns...
This code defines that the HTML in the columns div tag should be presented in three columns. Each paragraph is its own column."
-webkit-column-break-* properties can control this.-moz-column-*. Firefox 3.1 beta 2 extends support to properties such as -moz-column-rule.]
at
11:29
0
comments
Labels: mac, os x, web development
The HTML 5 specification includes an API to render text on a canvas. Unfortunately, this portion of the canvas API has only been implemented by Firefox, though it's already in WebKit nightly builds (and thus will very likely be in a future version of Safari) and Chromium nightlies (from which Chrome versions are derived). We expect Opera will soon as well.
at
07:16
0
comments
Labels: javascript, web development
Flex: Stopping event propagation from itemRenderers | kahunaburger:
"My problem was that whenever I clicked on one of the menu items (the four icons at the bottom of the right tile), the mouse event would not only execute the action associated with the menu-item, no, the event would propagate up the chain and would result in the current tile being selected as well. Not good - this has to stop. "
at
17:19
0
comments
Labels: flex, software development
Edited lightly:
macosxhints.com - 10.4: Use Automator to batch add Spotlight comments:
10.4: Use Automator to batch add Spotlight comments
By: cafemomo on Wed, May 18 2005 at 6:24AM PDT
In Automator, create the following workflow:
1. Finder > Get Selected Finder Items
2. Spotlight > Add Spotlight Comments to Finder Items
2.1. Keep 'Append to Existing Comments' checked
2.2. Open the Options disclosure area and check 'Show Action When Run' so you can set comments each time
3. In Automator, go to File > Save as Plug-in..., enter 'Add Spotlight Comments' as the 'Save Plug-in As:' name, and make sure 'Plug-in for:' is set to 'Finder'
4. Save and close Automator (if it asks you to save again, do so)
Now in Finder, select some items you want to add comments to and right-click (or control-click) and select 'Add Spotlight Comments' from the 'Automator' submenu.
at
07:12
0
comments
Op-Ed Columnist - Yes, They Could. So They Did. - NYTimes.com:
It's a plug-in electric car that is also powered by rooftop solar panels -- and the two young women, recent Yale grads, had just driven it all over India in a 'climate caravan' to highlight the solutions to global warming being developed by Indian companies, communities, campuses and innovators, as well as to inspire others to take action.
Zappy is an all-electric vehicle under construction in Dan Baker's garage off Old Santa Fe Trail. Baker -- known around town as an avid cyclist -- also is a big solar-energy and electric-vehicle proponent. He'll run Zappy off the 5-kilowatt solar photovoltaic system he had installed on his roof last September.
[Our vehicle] operates in all electric mode for the first 30 miles, then operates in hybrid mode with a full range of 400 miles. Bright Automotive's smart vehicle architecture is also designed to return stored energy back to the electrical grid - potentially reducing peak energy demand.
at
06:03
0
comments
Labels: energy, technology, transportation
Mozilla Webdev » Blog Archive » Native JSON in Firefox 3.1:
"Pretty easy huh? And here’s how to get a JSON string from an object:
var personString = JSON.stringify(person);"
var graph = {
'item': {
'name': 'bob',
value:42
},
'index': 1};
$('#msg').html("Graph: " + $.param(graph));Graph: item=%5Bobject+Object%5D&index=1
at
08:42
0
comments
Labels: javascript, software development, web development
"I won't say that this entry has that much spice, but I hope you can take a moment with me to see through time to allow wonder and delight to replace fear of change."
at
07:40
0
comments
Former astronaut scoffs at global warming - SantaFeNewMexican.com:
'As a geologist, I love Earth observations,' [Harrison Schmidt] wrote in his Nov. 14 resignation letter. 'But, it is ridiculous to tie this objective to a 'consensus' that humans are causing global warming when human experience, geologic data and history, and current cooling can argue otherwise.'
"We're very skeptical about the crisis that people are proclaiming in global warming," [said Dan Williams, publisher with the Heartland Institute, which is hosting the second International Conference on Climate Change in New York]. "Not that the planet hasn't warmed. We know it has or we'd all still be in the Ice Age. But it has not reached a crisis proportion and, even among us skeptics, there's disagreement about how much man has been responsible for that warming."
[Schmidt] said he is heartened that next month's conference is made up of scientists who haven't been manipulated by politics, possibly because they are not dependent on government funding.
at
07:21
0
comments
Labels: energy, environment, science
VoodooPad's new HTML-savvy application-specific URLs are a great way to retrace your steps in TextMate.
I keep my worklog in VoodooPad. I do most of my code editing in TextMate. When I'm trying to understand a new chunk of code, I often need to jump around through the code base.
It's hard to keep track of where I've been, so I can back out of a code path once I understand what it does. Until now I've just jotted down pathnames and line numbers in my worklog, so I could manually retrace my steps.
Puzzle Pieces
txmt://open?url=file://pathname&line=lineNum;column=colNum. Open one of these URLs and TextMate will open a window showing the specified line (and column, if specified) of the specified file.Bundles -> Bundle Editor -> Show Bundle Editor), creating a New Command using the tool menu at the bottom left of the Bundle Editor window, and pasting it into the resulting Command(s) text area:#!/usr/bin/env python2.6
import os, datetime, urllib, subprocess
escape = urllib.quote
# What Textmate location are we bookmarking?
path = os.environ["TM_FILEPATH"]
lineNum = os.environ["TM_LINE_NUMBER"]
_tmURLTemplate = """txmt://open?url=file://{path}&line={lineNum}"""
tmURL = _tmURLTemplate.format(path=path, lineNum=lineNum)
# Which VoodooPad worklog page should we add it to?
vpPageName = escape(datetime.date.today().strftime("%Y-%m-%d"))
# What text should Voodoopad show for the link?
currLine = os.environ.get("TM_SELECTED_TEXT", os.environ["TM_CURRENT_LINE"])
# How should the HTML be formatted?
_vpHTMLTemplate = '''<a style="font:12px helvetica" href="{tmURL}">{currLine}</a>'''
vpMarkup = _vpHTMLTemplate.format(tmURL=tmURL, currLine=currLine)
# What URL do we open to inject the HTML into VoodooPad?
_vpURLTemplate = """voodoopad:html={vpMarkup}&page={vpPageName}"""
vpURL = _vpURLTemplate.format(vpMarkup=escape(vpMarkup), vpPageName=escape(vpPageName))
subprocess.check_call(["open", vpURL])
at
13:49
2
comments
Labels: mac, os x, software development, textmate, voodoopad
VoodooPad bookmarklets are very useful. But they let you paste only plaintext from your web browser into your document — until now.
VoodooPad Application URLs
VoodooPad understands application-specific URLs of the form voodoopad:description=encoded_text&page=name_of_VoodooPad_document_page. When you open one of these URLs, VoodooPad inserts the encoded text into the indicated page of the current VP document.
You can open voodoopad: URLs from other applications, such as a web browser. That's what's so cool about VP bookmarklets -- they let you quickly select some text in your web browser and paste it into a VP document, along with other information such as the URL where the text originated.
The only problem is, the description parameter can contain only plain text. So if you've selected part of a web page that contains hyperlinks, those hyperlinks won't come along for the ride.
New Feature
Gus Mueller, VoodooPad's creator, recently released a new build. It adds a new html parameter to VoodooPad URLs. Now you can select part of a web page and transfer it as HTML into your VoodooPad document.
Gus summarized the new feature thus:
The format of the bookmarklet is like so:Here's expanded code for a JavaScript bookmarklet which takes advantage of the new parameter. It works in both Safari and Firefox 3.0.x:
voodoopad:page=junk&html=<b>hello</b>%20world!
javascript: function pad(v) {
var res=String(v);while(res.length<2) {
res='0'+res;
}
return res;
};
var d=new Date();
var page=(String(d.getFullYear())+'-'+
pad(d.getMonth()+1)+'-'+ pad(d.getDate()));
function selHTML() {
var wr=document.createElement('div');
var c=window.getSelection().getRangeAt(0).cloneContents();
wr.appendChild(c);
return wr.innerHTML;
};
location.href='voodoopad:html='+encodeURIComponent('<div style="font:12px helvetica">'+location.href+'<br/>"""<br/>'+selHTML()+'<br/>"""</div><br/>')+'&page='+page;
at
13:16
0
comments
Technology Review: Neanderthal Genome Unraveled:
"Using previously sequenced genomes from other species was also crucial, says John Hawks, a biological anthropologist at the University of Wisconsin. 'Bootstrapping computer information about genomes really made all of this possible,' he says. 'To be able to take snippets of DNA of 50 base pairs or less and have the computer say that it's the same as a bacterial sequence has enabled the reconstruction of genuine Neanderthal sequence.'"
at
23:52
0
comments
Labels: science
"Five years of ‘action’ and only one country out of five so-called advanced European nations — all of which fought with the USA to get it to sign the Kyoto Protocol — has managed to reduce its emissions by more than 5%."
at
10:01
0
comments
Labels: energy, environment, politics