1. 2011
    Nov
    07

    Scientific Computing Stack Exchange

    I’ve occasionally posted here about my involvement with Physics Stack Exchange — in fact, don’t be too surprised to see more posts of that nature in the upcoming weeks. But today I would like to bring your attention to another potential Stack Exchange site that will be of interest to many physicists and others: Scientific Computing.

    As some of my regular readers (let us assume for the moment that these “regular readers” exist) will know, Stack Exchange is a network of question and answer websites on various topics. It started with Stack Overflow for computer programming, then expanded to Server Fault and Super User for sysadmins and power users respectively, and based on the success of that model, the people in charge have created about 70 more based on proposals from community members. The proposal for a scientific computing site came about because the topic occupies a niche between general-purpose programming and the specific science. To take computational physics as an example, these sorts of questions don’t quite fit on Physics Stack Exchange, which is about physical principles, but they don’t get a particularly good response on Stack Overflow, because they get swamped by all the questions …

  2. 2011
    Nov
    07

    Why things need to be published

    A pharmacologist at Oxford, Susan Greenfield, is putting forward a theory that computer games cause dementia in children. The theory itself doesn’t really concern me, but I do notice that often when someone comes out with a theory like this, people tend to be pretty dismissive — you hear things like “How can you possibly think that?” Well, every fact we know about the world had to be thought by someone first, and just because it sounds ridiculous or even offensive doesn’t necessarily make it wrong.

    However, any theory, especially a controversial one, does need to be verified or rejected with plenty of evidence, and that’s where publication comes in. At the Bad Science blog post linked above, Dr. Goldacre makes a good point

    Science has authority, not because of white coats, or titles, but because of precision and transparency: you explain your theory, set out your evidence, and reference the studies that support your case. Other scientists can then read it, see if you’ve fairly represented the evidence; and decide whether the methods of the papers you’ve cited really do produce results that meaningfully support your hypothesis.

    In this regard, I don’t mean peer …

  3. 2011
    Nov
    06

    Scilab

    Based on a tip on Stack Overflow, I just discovered Scilab, a FOSS (free/open source software) equivalent to Matlab. Then I discovered that I had actually only rediscovered it: Scilab was already installed on my computer. Maybe my scientific software collection needs a cleanup.

    Anyway, as I mentioned, Scilab aims to do basically what Matlab does. It’s an admirable goal, but I’m not such a fan of the program itself, for a couple of reasons: first, at least on Linux, it looks ugly, and more importantly, the GUI seems to lack some of the basic functionality that people tend to expect these days, like scrolling. If you’re a fan of xterm then perhaps Scilab is for you, but otherwise it’s kind of inconvenient to use. For the rest of us, the need for a Matlab equivalent is pretty well filled by Python with Numpy/Scipy and matplotlib, plus your terminal of choice. Python also has the benefit of being a general-purpose programming language, so once you learn it for numerical computation, you can do all sorts of other cool things with it.

  4. 2011
    Nov
    04

    What's your favorite sci-fi technology?

    Inspired by the recent news that NASA is investing in the tractor beam (albeit for molecules), here’s an interesting question: what fictional piece(s) of technology from a science fiction world would you most like to get your hands on? I’ve known for a while that my #1 choice would be the lightsaber, but I recently decided on the portal gun as #2 and one of those little alien fighter ships from Independence Day (or something similarly maneuverable) as #3.

    Of course, those choices are just based on the sheer coolness factor. If we could actually have one piece of sci-fi tech, I’d definitely put my vote in for warp drive. I think the ability to travel to other planets in a short time (and presumably a relatively low cost) would have a bigger impact on society than anything else.

  5. 2011
    Nov
    03

    NaBloWriMo

    Last night I noticed that I’ve posted something on this site every day for 5 days in a row. In comparison to my usual pattern of posting maybe once every two or three weeks, this feels pretty good. It’s nice to see my site looking “dynamic” or whatever.

    As it happens, this streak coincides with the start of National Novel Writing Month, NaNoWriMo. The concept of NaNoWriMo is that you force yourself to write an entire novel between November 1 and November 30. (By the way, NaNoWriMo people: the idea is great, but you seriously picked the worst abbreviation I have ever seen.) Of course, I couldn’t hope to write a novel in a month, but writing is writing, so I’m setting myself a goal of averaging one blog post per day for the entire month of November. National Blog Writing Month, I suppose. If nothing else, it’ll be a good excuse to finish up some of the posts I’ve been meaning to make for ages. Let’s see how this goes!

  6. 2011
    Nov
    03

    How much does data weigh in flash memory?

    An interesting article in the New York Times has been making the rounds of the internet lately. It talks about the tiny theoretical increase in weight of a Kindle when its memory is full as opposed to when it’s empty. Since I’ve previously written about the weight of data on a magnetic hard drive, I couldn’t resist taking a look at the equivalent effect for flash memory.

    To begin with, we need to know a little about how flash memory works, and to do that, we need to know how transistors work. A transistor is just a tiny electrical switch. It has two contacts, the source and the drain, that are separated by a layer of material with an excess or lack of electrons. Normally this configuration blocks any current from flowing between the source and the drain. But when the right kind of voltage is applied to the separation layer, it removes the excess (or fills the lack) of electrons, allowing current to pass through. (For the record, I know I’m not doing justice to semiconductor physics here.)

    As described in a pretty good article on Explain That Stuff!, and several other sources I’ve …

  7. 2011
    Nov
    01

    The Higgs boson does not create mass

    Here is a very apt quote from Wikipedia:

    …the combination of spontaneous symmetry breaking in conjunction with the Higgs mechanism gives these particles mass. It also suggests the presence of a new, as yet undetected particle, the Higgs boson.

    This makes clear something that I think is glossed over all too often: the Higgs boson is a consequence, a side effect, of the proposed theoretical description of why particles have mass. The Higgs particle itself does not actually bestow mass on other particles.

  8. 2011
    Oct
    31

    Running Mathematica notebooks in batch mode

    If you’re like me, you’re used to thinking of Mathematica as an interactive calculator, where you type in an expression and Mathematica evaluates it and spits out the result. But the Mathematica system actually incorporates a whole programming language, and as you might expect of any programming language, it’s possible to write Mathematica programs (scripts) that run non-interactively.

    In order to write a Mathematica script, you create a text file which contains the expressions you want to evaluate (in normal programming terminology, the statements to execute). The conventional file extension for Mathematica scripts is .m. Each expression that you would normally type into the Mathematica window, you type into the script file, one per line. (Line breaks are allowed within expressions under certain circumstances.) You can then run the script using

    math -script filename.m
    

    (on Linux). The evaluated expressions, which Mathematica would normally show you right below where you typed in the input, are printed to standard output, so I recommend ending lines with a semicolon (which suppresses the output) by default. Only leave the semicolon off for the results you actually care about.

    Keep in mind that a Mathematica script file is not what you …

  9. 2011
    Oct
    30

    Good science on The Daily Show

    A while ago I “complained” about something Jon Stewart said during one of his interviews. It was just a minor point, I just wanted to take the opportunity to point out something about the nature of science. So now that The Daily Show has done an entire episode with a scientific theme, while making a bunch of good points, of course I have to mention it. I highly recommend watching it.

    I’m sure I’ll have more to say about this later, but here’s the interview with Lisa Randall:

    The Daily Show With Jon StewartMon - Thurs 11p / 10c
    Lisa Randall
    www.thedailyshow.com
    Daily Show Full EpisodesPolitical Humor & Satire BlogThe Daily Show on Facebook
  10. 2011
    Oct
    29

    Another best abstract ever

    Following up on my last post, here’s another example of beautifully clear writing:

    The interferometers now being developed to detect gravitational vaves work by measuring small changes in the positions of free masses. There has been a controversy whether quantum-mechanical radiation-pressure fluctuations disturb this measurement. This Letter resolves the controversy: They do.

    This was brought to my attention in the PSU colloquium this week by Dan Stamper-Kurn.