InquiryLabs

Politics, Programming and Possibilities

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. 

Basically, there is a very high success rate for “unlearning” a fear if the fear is recalled 10 minutes prior to a training session in which the fear stimulus does not result in the feared outcome.  The amygdala essentially allows feelings surrounding the trauma to be forgotten even though the memory of the experience persists.

– Duane

Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • 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.

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • 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.

    My wife is studying CIPA (the Child Internet Protection Act) as part of her Marriage and Family Therapy degree.  As she pointed out, it’s always a tricky bit of legislation to get right since it’s easy to be too lax for the sake of First Amendment rights or too strict for the sake of the children.

    I suggested perhaps the solution to the ambiguity inherent in English words would be to create an open-source filtering package as part of the bill.  Let concerned parents who are also programmers get together to define a specification and a software program that would be the Gold Standard.  Vague words such as “obscene” would yield themselves to the specifics of an algorithm, and the software included in the bill could become a standard for libraries and schools.

    So back to the idea of real-time image processing.  I don’t think I’ve ever seen a product that even attempts this, but why not create an adapter that sits in between the VGA cord of a computer monitor and the video card itself?  This “adapter” would have to be a computer in its own right, of course—it would have to process the incoming image in real-time at 60 or so frames per second, and match nudity patterns in the pixels.  It would then draw black boxes in place of the obscene images.  The pixel buffer, in its modified form, would then be delivered to the monitor, (sans the nudity).

    The benefits of such a technique would be threefold: (1) the source of the obscenity would be irrelevant—whether it came from the internet, a disk, or even a drawing, it would be filtered out; (2) there would be no need to keep a long “white” or “black” list of internet sites because all obscene images would be filtered out in an even-handed way (3) as a hardware solution, there would be no tampering with it unless physically tampered with.

    Figure 1: An attempt to show a VGA cable with a black box in the middle.

    Note: There is a network-based hardware solution that is similar to this idea called iBoss, but this is not the same technology. iBoss seems like it’s worth a look, however, if you’re looking for a hardware solution and don’t need my vaporware :)

    Posted via email from Duane’s Quick Posts

  • 1 Comment
  • Filed under: Uncategorized
  • Numbers that Can’t Say No to Time

    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.

    This is probably old news to most math people, but it was just such a neat realization that I had to share it: there is a class of numbers that can be represented in space, for example, 1.0 and 10^99; and then there are a class of “numbers” that can only be described through a process that must involve time.  These other “numbers” are processes—that’s the key point.  Their secrets cannot be revealed without the dimension of time and a repetitious loop headed toward infinity.

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • Sign the Get FISA Right Open Letter

    This open letter is the product of a long and thoughtful process that I’ve been paying attention to, associated with a mailing list led by Jon Pincus.

    Please add your name to the list of concerned Americans if you care about restoring our right to know when we’re being wiretapped by the government (unless there’s a warrant), and especially if you believe the “national security letters” should be done away with.

    I think it’s a terrible thing for a government to be able to systematically silence citizens who oppose it, and this open letter seems to be a positive action in that direction.

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • Reading a File with Node.js

    I’m playing with Node.js right now for one of my side projects and found that it was a little more difficult to read a file than I had anticipated.  First, I looked for an “obvious” function that would read in an entire file, but there didn’t seem to be anything like Ruby’s IO.read (I was wrong, however, see the posix.cat solution below).

    In order to get the benefits of Node.js’s event-based system, we have to use the posix utilities.  Here’s what I tried first:

    var prepareTemplate = function(file, callback) {
      posix.open(file, posix.O_RDONLY).addCallback(function(fd) {
        if (fd) {
          posix.read(fd, 100000, 0).addCallback(function(data, bytes_read) {
            var template = jsont.fromString(data);
            callback(template);
          });
          posix.close(fd);
        } else {
          sys.puts(”Unable to read file: ” + file);
        }
      });
    };

    Node.js croaked with the following error, however:

    /Users/duanejohnson/Projects/hello.js:15
      posix.open(file, process.O_RDONLY);
            ^
    TypeError: Bad argument

    Contrary to these presumably out-of-date slides, the documentation shows that the O_CREAT, O_RDONLY etc. constants are to be found in the “process” namespace (not the “posix” namespace).  That was easy to switch…. but same error.  It turns out the “mode” parameter is not optional:

    var prepareTemplate = function(file, callback) {
      posix.open(file, posix.O_RDONLY).addCallback(function(fd) {
        if (fd) {
          posix.open(file, process.O_RDONLY, 438).addCallback(function(fd) {

    The “438″ in there is simply octal “666″ (read/write permissions) turned into decimal.

    Last but not least, I found that there is a “trick” to loading files if you don’t care about concurrency (for example, when the server starts up and you want to load templates):

    var data = posix.cat(file).wait();

    Alternatively, you can use addCallback() instead of wait() to get around the concurrency issues.

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • End the Fed Rally Chicago

    Kelty and I just went for a walk in Millenium Park and happened across an End the Fed rally. It was neat to see support for Ron Paul’s “Audit the Federal Reserve” bill there.

    Sent from my iPhone

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • Audit the Fed Bill Approved

    This is a snippet of the good news:

    The House Financial Services Committee has approved Rep. Ron Paul’s measure to drastically expand the government’s power to audit the Federal Reserve.

    Thank goodness Rep. Mel Watt’s anti-transparency measure was given the no-go.

    Posted via email from Duane’s Quick Posts

  • 0 Comments
  • Filed under: Uncategorized
  • Flu Vaccine Needs Further Testing?

    The Atlantic has published an interesting article about the current state of knowledge in flu vaccinations.  Based on this article, it seems that we don’t have any good double-blind studies to show that the vaccination actually has the effect we hope it does.  This is an interesting problem, because since a majority of health professionals believe that it does help, it is unethical in their view to return to “square one” and attempt such a study:

    Demonstrating the efficacy (or lack thereof) of vaccine and antivirals during flu season would not be hard to do, given the proper resources. Take a group of people who are at risk of getting the flu, and randomly assign half to get vaccine and the other half a dummy shot. Then count the people in each group who come down with flu, suffer serious illness, or die. (A similarly designed trial would suffice for the antivirals.) It might sound coldhearted, but it is the only way to know for certain whether, and for whom, current remedies actually work.

    In the absence of such evidence, we are left with two possibilities. One is that flu vaccine is in fact highly beneficial, or at least helpful. Solid evidence to that effect would encourage more citizens—and particularly more health professionals—to get their shots and prevent the flu’s spread. As it stands, more than 50 percent of health-care workers say they do not intend to get vaccinated for swine flu and don’t routinely get their shots for seasonal flu, in part because many of them doubt the vaccines’ efficacy. The other possibility, of course, is that we’re relying heavily on vaccines and antivirals that simply don’t work, or don’t work as well as we believe. And as a result, we may be neglecting other, proven measures that could minimize the death rate during pandemics.

    A very good read if you are interested in the current vaccine debate.
    Update: There is a good article at Effect Measure that looks at the other side of this issue. In addition, an acquaintance pointed to this double-blind study that seems to have been overlooked by the Atlantic article.
  • 0 Comments
  • Filed under: Uncategorized
  • I wrote the following piece for my BYU American Heritage class as a final paper. It is my view on how to bring equality to marriage while preserving the boundaries required by tradition. Please download the PDF for footnotes and supporting references. The historical footnotes are actually quite interesting.

    Strong Church, Strong State: The Marital Standard Foundation as a Solution (PDF)

    In our modern Republic, varying ideas of marriage are vying for a monopoly over the whole. Rather than struggle for dominance, minorities should unite to create a new kind of entity: the Marital Standard Foundation. Each such foundation would be commissioned with the legal authority to marry and the legal obligation to maintain healthy communities.

    There is general agreement from all segments of society that marriage should promote the well being of families while also granting social rights and responsibilities to mutually obligated adults. Historically, however, factions have tried to legislate marital morality on the underrepresented. One such minority—Utah’s Latter-day Saints—was once targeted by federal legislation that sought to force the Latter-day Saints to accept marriage as only between one man and one woman. Advocates of the one-size-fits-all legislation claimed a moral high ground, pointing at early Utah’s remarkably high divorce rate as justification for a Constitutional amendment to protect monogamous marriage.

    While there has never been a true consensus view of marriage in America, monogamous heterosexual marriage has been upheld by law as a general standard. In this arrangement, churches have played the role of liaison between the modern state and the family. However, they have never truly been given charge of defining marriage—this power has generally been left to the states.

    Given the need for families to form communities with common values, and for the state to decline jurisdiction over religious matters, the only reasonable alternative to the present struggle for dominance is a third party entity whose legal authority is conferred from the state and whose moral authority is given and maintained by a deep-rooted community such as a church or foundation.

    In addition to binding like-minded people together, third party Marital Standard Foundations would permit legal discrimination based on age, race, and gender. This explicit right to discriminate would protect conservative organizations that seek to draw lines around the definition of marriage. Liberal organizations would also benefit from the latitude a Marital Standard Foundation would offer. Whatever their constitution, Marital Standard Foundations would suffer natural consequences—thus biology and sociology would naturally drive more traditional ideas to succeed due to popularity and better funding. Innovation, on the other hand, would provide a release valve for long oppressed minorities.

    Further study is needed to determine the minimal stipulations and legal scope of a Marital Standard Foundation. It is clear that a solution is needed right now, however—it makes little sense that the definition of marriage should follow geographic boundaries. Instead, boundaries should be drawn around communities with shared values. I believe the possibility of convergence and tolerance on this long-standing American issue merits immediate attention before all states arrive at permanent and constitutionally binding disagreement.

    Strong Church, Strong State: The Marital Standard Foundation as a Solution (PDF)

    NOTE: I have changed the name throughout this article from “Marital Corporation” to “Marital Standard Foundation” because, after initial publication, I realized that corporation has a lifeless stigma that doesn’t seem to match the idea I’m trying to convey.

  • 2 Comments
  • Filed under: Uncategorized