Politics, Programming and Possibilities
8 Feb
2 Feb
irb -r wx/opt/local/lib/ruby1.9/gems/1.9.1/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle: [BUG] unknown type 0×22 (0xc given)ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9]
18 Jan
javax.servlet.ServletContext log: unable to create shared application instanceorg.jruby.rack.RackInitializationException: private method `new’ called for RemembryRave::Robot:Classfrom /base/data/home/apps/remembry/1.339256739153417236/WEB-INF/gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize’
sun.reflect.NativeMethodAccessorImpl invoke0: TypeError: can’t dup Fixnum/base/data/home/apps/remembry/1.339257167247162572/WEB-INF/gems/gems/rave-0.1.2-java/lib/models/robot.rb:16:in `version’
Warbler::Config.new do |config|config.gems = %w( rave json-jruby rack builder hpricot )config.includes = %w( robot.rb appengine-web.xml )end
robot:name: Remembry Botimage_url:
profile_url: http://remembry.appspot.com/version: ‘9′appcfg:version: 1gems:- hpricot
10 Jan
6 Jan
5 Jan
This is a really neat article about the transition science is taking right now as it reframes the “placebo effect” and its role in health and the search for improvements to the body’s natural (but limited) healing system:
Benedetti often uses the phrase “placebo response” instead of placebo effect. By definition, inert pills have no effect, but under the right conditions they can act as a catalyst for what he calls the body’s “endogenous health care system.” Like any other internal network, the placebo response has limits. It can ease the discomfort of chemotherapy, but it won’t stop the growth of tumors. It also works in reverse to produce the placebo’s evil twin, the nocebo effect. For example, men taking a commonly prescribed prostate drug who were informed that the medication may cause sexual dysfunction were twice as likely to become impotent.
In a study last year, Harvard Medical School researcher Ted Kaptchuk devised a clever strategy for testing his volunteers’ response to varying levels of therapeutic ritual. The study focused on irritable bowel syndrome, a painful disorder that costs more than $40 billion a year worldwide to treat. First the volunteers were placed randomly in one of three groups. One group was simply put on a waiting list; researchers know that some patients get better just because they sign up for a trial. Another group received placebo treatment from a clinician who declined to engage in small talk. Volunteers in the third group got the same sham treatment from a clinician who asked them questions about symptoms, outlined the causes of IBS, and displayed optimism about their condition.Not surprisingly, the health of those in the third group improved most. In fact, just by participating in the trial, volunteers in this high-interaction group got as much relief as did people taking the two leading prescription drugs for IBS. And the benefits of their bogus treatment persisted for weeks afterward, contrary to the belief—widespread in the pharmaceutical industry—that the placebo response is short-lived.
20 Dec
16 Dec
Log files were invented long before the JSON data exchange format existed. In fact, they bring a sort of crisp 1970s feel whenever I look at them… text files streaming across a terminal screen. It’s almost like the Matrix—anyone who sees text files streaming across a terminal instantly believes we might be hackers. But I don’t think log files are that cool.
I, [2009-12-16T13:24:59.264678 #13623] INFO — : [app:des.rb, line:26] Encode file: blah ->
log(”Encoding file”, :level => “info”) # info is the default and can be omittedlog(”Unable to encode”, :level => “error”, :reason => “missing command ‘des’”)
[{"level":"info","msg":"Encoding file","time":"2009-12-16 14:15:10 -0600","caller":["\/Users\/duanejohnson\/bin\/test.rb:10:in `<main>'"]},{”level”:”error”,”reason”:”missing command ‘des’”,”msg”:”Unable to encode”,”time”:”2009-12-16 14:15:10 -0600″,”caller”:["\/Users\/duanejohnson\/bin\/test.rb:11:in `<main>'"]},
sed ‘$ s/,$/]/g’
cat ruby.hanging.json | sed ‘$ s/,$/]/g’ >ruby.log.json
9 Dec
This looks like an important discovery in psychology:
In an exciting breakthrough for psychological science, researchers in the United States have demonstrated a drug-free way to prevent the return of a learned fear. Similar memory modification effects have been observed before, but these experiments have involved drugs such as the beta-blocker propranolol. It’s hoped the new drug-free procedure will lead to improved therapeutic techniques for people with phobias or intrusive traumatic memories.
8 Dec
I like where this theory is going. I think it deserves more discussion:
Today, Ellis and Rothman introduce a significant new type of block universe. They say the character of the block changes dramatically when quantum mechanics is thrown into the mix. All of a sudden, the past and the future take on entirely different characteristics. The future is dominated by the weird laws of quantum mechanics in which objects can exist in two places at the same time and particles can be so deeply linked that they share the same existence. By contrast, the past is dominated by the unflinching certainty of classical mechanics.
…
They point out, for example, that this crystallization process doesn’t take place entirely in the present. In quantum mechanics the past can sometimes be delayed, for example in delayed choice experiments. This means the structure of the transition from future to past is more complex than a cursory thought might suggest.
The part that seems most significant is the way it ties quantum dynamics to classical or relativistic mechanics. The uncertainty that lies in the future just can’t be treated like a classical model, except in very narrow cases where all of the parameters are carefully controlled. In the large majority of cases, small quantum effects trigger larger effects that go on to affect the final outcome in unpredictable ways.