Politics, Programming and Possibilities
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.
2 Dec
Technology keeps getting faster, but I wonder if it is fast enough to do real-time image processing to filter out pornography? More on this idea soon, but let me first explain why the question came up.
2 Dec
Infinity is such a “number”. The irrational numbers are too, as is π (pi), and e, and so are a whole host of “numbers” derived through functions such as sin, cos, tan.