<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">Magic Acid Blog</title>
  <id>urn:uuid:e14cdde7-8b36-3ef8-a175-482b8795c0d3</id>
  <updated>2018-05-03T00:00:00Z</updated>
  <link href="http://magicacid.com/blog/" />
  <link href="http://magicacid.com/feed.xml" rel="self" />
  <author>
    <name></name>
  </author>
  <generator uri="https://github.com/ajdavis/lektor-atom" version="0.3">Lektor Atom Plugin</generator>
  <entry xml:base="http://magicacid.com/blog/314-action/">
    <title type="text">Getting Science into Politics with 314 Action</title>
    <id>urn:uuid:01002e07-e284-3820-b6a7-14bf322b9bda</id>
    <updated>2018-05-03T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/314-action/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-lg-6&quot;&gt;
    &lt;p&gt;
      One thing has become clear to me over the past year: &lt;strong&gt;our
    political system in the US needs more scientifically literate
    people&lt;/strong&gt;. Luckily,
    the &lt;a href=&quot;http://www.314action.org/home/&quot;&gt;314 Action&lt;/a&gt;
    group is working diligently on this. Last week, they hosted a
    training event in Chicago to give scientists the tools to
    successfully run for political office. As it turns out, many
    great scientists find the process of running a political
    campaign uncomfortable and foregin. I'll admit, the idea of
    asking people for money to fund a campagin
    sounds...unpleasant.
    &lt;/p&gt;
    &lt;p&gt;
      There were two national candidates there, but more exciting were
      the enthustic candidates for local and state offices: less
      glamorous but equally important. There was also a strong
      presence from graduate students and other early-career
      scientists. Completing a PhD and running for office is too much,
      but after grad-school...who knows!
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-lg-6&quot;&gt;

    &lt;img src=&quot;/blog/314-action/314-training.jpg&quot;
         alt=&quot;Group shot at the 314 action training&quot; /&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;p&gt;I also had a chance to meet two &lt;strong&gt;exciting candidates in the greater
Chicago area&lt;/strong&gt;. &lt;a href=&quot;http://ellmanforillinois.com/&quot;&gt;Laura Ellman&lt;/a&gt; is
running for &lt;strong&gt;state senate&lt;/strong&gt; in the Naperville area, and &lt;a href=&quot;http://marianneforuptown.com/&quot;&gt;Marianne
Lalonde&lt;/a&gt; for the next &lt;strong&gt;Alderman&lt;/strong&gt;
(Alderwoman?) in the 46th ward uptown. &lt;strong&gt;Please consider donating&lt;/strong&gt;
$50 (or whatever you can) to their campaigns, so we can &lt;strong&gt;bring some
much needed science&lt;/strong&gt; to our local and state government.&lt;/p&gt;
</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/glass-electrolyte/">
    <title type="text">Thoughts About Glass Electrolytes</title>
    <id>urn:uuid:3873a142-6fef-3708-9017-4ae63caf2f03</id>
    <updated>2017-03-19T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/glass-electrolyte/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;p&gt;In a recent episode of one of my favorite podcasts, the &lt;a href=&quot;http://www.theskepticsguide.org/podcast/sgu/608&quot;&gt;Skeptic's
Guide to the
Universe&lt;/a&gt;, they
discussed &lt;a href=&quot;https://dx.doi.org/10.1039/C6EE02888H&quot;&gt;a recent paper&lt;/a&gt; from
the John Goodenough lab. I figured I'd take a look at this paper and
see what's inside. They propose a type of battery where there's a
lithium-metal reduction on both sides of the cell. Overall, the
electrochemical results they show are impressive: very high capacities
with good cyclability at a decent cell potential (between 2.5 and
2.7V); though not quite as impressive as the press-release makes them
sound. However, I'm not clear on how they think this reaction actually
happens. Many of the clarifying details are missing, which makes it
hard to properly evaluate. Regardless of the electrochemical
mechanism, though, if the results can be reproduced reliably, then
great!&lt;/p&gt;
&lt;!-- more --&gt;

&lt;p&gt;There's really two parts to this paper. The first is the use of a
solid, glassy electrolyte to overcome the limitations of using
metallic lithium anodes. Dendrite formation is a major problem and, as
such, modern rechargeable batteries use graphite, resulting in a lower
energy density and cell potential. Their strategy also avoids the
flammable, toxic liquid electrolyte, which would be nice. If the
results are reproducible, this technique could be combined with
existing cathodes to give a nice increase in energy density. To be
clear, though, the idea of using
&lt;a href=&quot;https://en.wikipedia.org/wiki/Fast_ion_conductor#beta-Alumina&quot;&gt;solid&lt;/a&gt;
or &lt;a href=&quot;https://en.wikipedia.org/wiki/Lithium_polymer_battery&quot;&gt;polymer&lt;/a&gt;
electrolytes in not new.&lt;/p&gt;
&lt;p&gt;The second part seems to be a fundamentally new mechanism for
constructing batteries. Based on the schematic they've drawn in figure
4, it looks like they're oxidizing lithium metal at the anode, and
then reducing lithium metal at the cathode. The anode part is fine;
that's the standard discharge reaction for lithium-metal
batteries. However, having the same reduction/oxidation (&quot;redox&quot;)
half-reaction taking place at both the cathode and the anode would
give a cell potential of 0V; that is, the battery wouldn't be able to
store any energy. They claim that:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;The Fermi level of the lithium plated on the carbon–copper composite
cathode current collector is determined by the Fermi level of the
cathode current collector, whereas the Fermi level of the lithium
anode remains that of metallic lithium, but the cell voltage is
determined by the energy of the redox couple of the unreduced redox
center.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The implication here is that the potential of the cathode redox couple
is raised by the presence of copper. It's not clear to me why the
Fermi level¹ of plated lithium would be the level of the current
collector. It is true that the chemical potential of metallic lithium
would be higher than that of metallic copper, and if they were
proposing an alloying mechanism, then the Fermi level would be
influenced by the copper. However, they're claiming that the lithium
plates on to the copper. Presumably, anything beyond the first several
atomic layers of lithium wouldn't really be influenced by the presence
of copper underneath. A simple test would have been to replace the
copper with aluminum and see what affect this has on the potential,
but they didn't perform this experiment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It's also not clear to me what the role of the sulfur, ferrocene or
manganese-oxide redox center is&lt;/strong&gt;. The idea that these redox centers
are not reduced during the reaction suggests that they serve a
catalytic role, which the authors confirm in the introduction. These
redox centers therefore &lt;strong&gt;can't influence the thermodynamic potential
of the cell&lt;/strong&gt;, only the kinetic barriers that must be overcome to
initiate redox². This would effectively raise the potential needed to
charge the cell, but lower the potential achieved on discharge, and so
doesn't explain the asymmetry between the cathode and anode
potentials.&lt;/p&gt;
&lt;p&gt;Having said all that, &lt;strong&gt;the images they show&lt;/strong&gt; combined with the
extremely high full-discharge capacities do &lt;strong&gt;seem to confirm that
they have moved all the lithium through the glass&lt;/strong&gt; from one electrode
to the other. If this can be reproduced, then I have an opportunity to
improve my understanding of some of these foundational electrochemical
principles.&lt;/p&gt;
&lt;p&gt;There are a few other things I think are missing from the
paper. First, it's unusual that no cyclic-voltammetry (CV) was
done. CV is an electrochemical technique that sweeps across a range of
potentials, and the current response at each point gives information
about which redox processes are occurring as well as the inherent
kinetic barriers in the system. It's a standard technique for
characterizing new materials that operate by known mechanisms, let
alone an entirely new mechanism such as this one.&lt;/p&gt;
&lt;p&gt;The press release claims&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;high volumetric energy density and fast rates of charge and discharge&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;neither of which are reported in the paper. The paper does claim &quot;high
volumetric energy density&quot; (Joules per mL) in describing previous work
on sodium anodes, but never actual reports the values they achieved,
instead opting for gravimetric energy density (Joules per gram). To be
fair, volumetric energy density is hard to calculate for a system like
this, and gravimetric values are far more common. Regarding their rate
capability, they show reversible electrochemistry data at 0.25C and
0.1C rates, which would corresponding to charging your car in 4 and 10
hours respectively³. Not bad by any means, but I would characterize
this as &quot;moderate&quot;. The authors even describe this towards the end as
&quot;The cell voltages and rates are acceptable.&quot;, which I agree
with.&lt;/p&gt;
&lt;p&gt;In summary, the results look promising but I await replication and
better description of what's actually happening. For a paper that
sounds as revolutionary as this one does, it's noteworthy that it's
only 6 pages and has only 5 references, 3 of which are from the
authors' own research group. This is not the first paper to report &quot;a
safe, low-cost, lithium or sodium rechargeable battery of high energy
density and long cycle life.&quot; but somehow those claims never seem to
be as transformative as promised. From the paper:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;All that remains to be optimized is the thickness of the solid glass
electrolyte, the loading and choice of the redox center in the
composite cathode to provide a required voltage, and optimization of
the rate of ion transfer across the cathode/electrolyte interface to
obtain a desired rate performance of the stored electric power.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So what, about 5-10 years maybe...?&lt;/p&gt;
&lt;h4&gt;Footnotes&lt;/h4&gt;
&lt;p&gt;1) The &lt;em&gt;Fermi Level&lt;/em&gt; for a species can be (non-rigorously)
described as the work needed to add an electron to a material. Since
battery chemistry is all about moving electrons around, Fermi levels
are a key concept for understanding the underlying thermodynamics.&lt;/p&gt;
&lt;p&gt;2) This is similar to how enzymes can only influence the rate of a
bio-chemical reaction, not the underlying thermodynamic states; a
second, higher-energy, reaction (eg ATP --&amp;gt; ADP) must be coupled to
the reaction of interest in order to reverse the reaction arrow.&lt;/p&gt;
&lt;p&gt;3) This description needs a large asterisk next to it. The authors
only charged the cell partially in 10 hours but also have a
significantly larger capacity than conventional materials, so it's
difficult to compare this in a &quot;your car charges in 4 hours&quot; kind of
way.&lt;/p&gt;
</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/basic-refinement/">
    <title type="text">GSAS-II Introduction - Basic Profile Refinement</title>
    <id>urn:uuid:f1ed3a55-c743-32d6-8845-90a30bed6949</id>
    <updated>2015-09-01T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/basic-refinement/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;style&gt;
.heading,.tab {
    font-style: italic;
}
.value,.menu {
    font-family: &quot;Lucida Console&quot;, Monaco, monospace;
}
&lt;/style&gt;&lt;p&gt;
  This document will guide the user through a basic whole-pattern
  decomposition of a single phase using the Pawley method. This method
  is simpler than the Rietveld method and will provide a closer fit,
  however the the refined parameters are not physically meaningful so
  the amount of information obtained is limited. In this tutorial, I
  will refine a corundum scan taken on our Bruker D8 Discover
  (&quot;Alice&quot;).
&lt;/p&gt;&lt;!-- more --&gt;

&lt;p&gt;
 The diffractogram can be downloaded
  in
  &lt;a href=&quot;corundum.xye&quot; title=&quot;Download corundum xye file&quot;&gt;
    .xye format&lt;/a&gt;. You may also want to look at
    the &lt;a href=&quot;basic-refinement.gpx&quot;&gt;finished
    GSAS-II project&lt;/a&gt;.
&lt;/p&gt;&lt;h2&gt;Installation&lt;/h2&gt;&lt;p&gt;
  Visit
  the &lt;a href=&quot;https://subversion.xor.aps.anl.gov/trac/pyGSAS&quot;&gt;GSAS-II
  website&lt;/a&gt; and follow the installation instructions for your
  platform (GNU/Linux, Windows, MacOS). Arch Linux users can install
  &lt;span class=&quot;value&quot;&gt;gsas2-svn&lt;/span&gt; from
  the &lt;a href=&quot;https://aur.archlinux.org/packages/gsas2-svn/&quot;&gt;arch
  user repository&lt;/a&gt;. Upon running GSAS-II for the first time, you
  should see a terminal window and several empty windows, similar to
  the screen shot below.
&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;blank-refinement.png&quot;
     alt=&quot;Screenshot of new refinement project&quot; /&gt;&lt;/p&gt;
&lt;p&gt;
  The terminal window is not normally used, though it can provide
  useful information if your refinement is not succeeding. The other
  two windows are the &lt;span class=&quot;heading&quot;&gt;plotting
  window&lt;/span&gt; and the &lt;span class=&quot;heading&quot;&gt;data tree&lt;/span&gt;
  window. They are currently empty since we have not yet imported any data.
&lt;/p&gt;&lt;h2&gt;Load Powder Data&lt;/h2&gt;&lt;p&gt;
  First we must load a powder data file to refine against. First,
  export your data from Eva as a &lt;span class=&quot;value&quot;&gt;.xye&lt;/span&gt;
  file. In the data tree window, select &lt;span class=&quot;menu&quot;&gt;Import →
  Powder Data → guess format from file&lt;/span&gt;. The first dialog to
  appear will ask you to choose the file containing the powder
  diffraction data. The second dialog asks for an instrument parameter
  file. If you do not have an instrument file, click Cancel and you
  are prompted to choose a generic instrument (eg. CuKα). You should
  now see your data listed in the data tree window.
&lt;/p&gt;&lt;h2&gt;Create Phase Object(s)&lt;/h2&gt;&lt;p&gt;
  The next step is to create a phase object that can be refined
  against the powder data. There are two options for this: importing a
  &lt;span class=&quot;value&quot;&gt;.cif&lt;/span&gt; file or creating a blank
  phase. Once the phase has been created you should see an entry for
  it in the data tree window (you may have to expand the Phases entry.
&lt;/p&gt;&lt;h3&gt;Importing a Phase from a .cif File&lt;/h3&gt;&lt;p&gt;
  If a .cif file is available for your material, this is the easier
  option. The materials project may have one you can download for your
  material. To import a .cif file, in the data tree window select the
  menu &lt;span class=&quot;menu&quot;&gt;Import → Phase → from CIF file&lt;/span&gt;. You
  will be asked to associate this phase with one of more previously
  imported data (&quot;histogram&quot;); you can select your powder data, or
  wait to do so in the next section.
&lt;/p&gt;&lt;h3&gt;Creating a Blank Phase&lt;/h3&gt;&lt;p&gt;
  In the data tree window, select the menu Data → Add phase, you will
  be prompted to name the phase.
&lt;/p&gt;&lt;h3&gt;Prepare for First Refinement&lt;/h3&gt;&lt;p&gt;
  Before running the first refinement cycle, it's necessary to set
  some initial values. If you imported
  a &lt;span class=&quot;value&quot;&gt;.cif&lt;/span&gt; file, some of these may already be
  set for you. This section assumes you have created a blank phase.
&lt;/p&gt;&lt;p&gt;
  In the data-tree window select your phase from the Phases list. A
  new data display window should appear. Select the Data tab. Enter
  your space group in appropriate text box. GSAS-II requires
  spacegroup terms to be separated by a space. The corundum spacegroup
  (R-3c) is entered as &quot;R -3 c&quot;. Press enter and confirm your
  choice. You will now notice that your choices for unit-cell
  parameters are restricted to &lt;span class=&quot;heading&quot;&gt;a&lt;/span&gt;
  and &lt;span class=&quot;heading&quot;&gt;c&lt;/span&gt; due to the crystal system
  associated with this spacegroup. Enter approximate unit-cell
  parameters in the appropriate textboxes. Wikipedia lists a=4.75Å and
  c=12.982Å for corundum so let's start there.  Farther down you will
  find a section labeled &lt;span class=&quot;heading&quot;&gt;Pawley
  controls&lt;/span&gt;. Check the checkbox labeled &lt;span class=&quot;heading&quot;&gt;Do
  Pawley Refinement&lt;/span&gt;.
&lt;/p&gt;&lt;p&gt;
  Next switch to the &lt;span class=&quot;tab&quot;&gt;Data&lt;/span&gt; tab. If you see a message reading
  ``This phase has no associated data'', you will first need to create
  a histogram by selecting the menu Edit → Add powder histograms. In
  the new dialog, select your powder data and click okay (skip this
  step if you associated your data when importing a .cif file). Leave
  the values in this tab at their defaults for now; we will come back
  to them later.
&lt;/p&gt;&lt;p&gt;
  We will now move to the &lt;span class=&quot;tab&quot;&gt;Pawley Reflections&lt;/span&gt; tab. Select the
    &lt;span class=&quot;menu&quot;&gt;Operations → Pawley create&lt;/span&gt; menu entry to
  automatically create a list of reflections
  and &lt;span class=&quot;menu&quot;&gt;Operations → Pawley estimate&lt;/span&gt; to have
  GSAS set initial reflection intensities. The
    &lt;span class=&quot;heading&quot;&gt;refine&lt;/span&gt; column contains check boxes
  that indicate which reflection intensities will be refined. Click on
  the column heading to select them all and type &quot;y&quot; to check them.
&lt;/p&gt;&lt;p&gt;
  Lastly, go back to the data-tree and under your powder data entry,
  select the &lt;span class=&quot;heading&quot;&gt;Sample parameters&lt;/span&gt; entry. In the data-display
  dialog, uncheck the &lt;span class=&quot;heading&quot;&gt;Histogram scale factor&lt;/span&gt; box. If
  checked, GSAS will refine the intensities of the reflections as a
  whole, which is unnecessary since we are already refining them
  individually.
&lt;/p&gt;&lt;h2&gt;Evaluating Initial Fit&lt;/h2&gt;&lt;p&gt;
  You are now ready to run the initial refinement. In the data-tree
  window, select the menu &lt;span class=&quot;menu&quot;&gt;Calculate → Refine&lt;/span&gt; (you will be
  prompted to save if you have not done so yet). Assuming the
  refinement runs smoothly, you should be presented with a dialog
  asking you to &lt;span class=&quot;heading&quot;&gt;Load new result?&lt;/span&gt; (click
  &lt;span class=&quot;heading&quot;&gt;Yes&lt;/span&gt;). Click on the powder data entry in
  the data-tree and inspect the results in the plotting window. You
  may have to select the &lt;span class=&quot;tab&quot;&gt;Powder Patterns&lt;/span&gt;
  tab. You should see several overlayed plots showing the original
  diffractogram, the calculated diffractogram, the background fit and
  the difference between the observed and calculated diffractograms.
&lt;/p&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-7&quot;&gt;
    &lt;p&gt;
      Chances are, your refinement is not very good at this point, but
      maybe it's good enough. Use the zoom button along the bottom to
      view several peaks close up. Along the center of the plot you
      will see small vertical lines representing the predicted
      reflections. Hopefully, your unit cell parameters are at least
      close enough that the predicted reflections fall somewhere
      within &lt;em&gt;most&lt;/em&gt; of the peaks. If not, you may have to
      manually adjust the cell parameters until you're close.
      Something like the figure at the right should work. Select your
      phase and go to the &lt;span class=&quot;tab&quot;&gt;General&lt;/span&gt; tab,
      check &lt;span class=&quot;heading&quot;&gt;Refine unit cell&lt;/span&gt;. Also, for
      your powder data, open the &lt;span class=&quot;heading&quot;&gt;Sample
      Parameters&lt;/span&gt; dialog. Change the diffractometer type
      to &lt;span class=&quot;value&quot;&gt;Bragg-Brentano&lt;/span&gt; and enable
      refinement of &lt;span class=&quot;heading&quot;&gt;Sample
      displacement&lt;/span&gt;. This will help correct any errors due to
      the sample not being mounted at the exact instrument center. Now
      run the refinement again. You may have to re-select your powder
      data in the data-tree to refresh the plot.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-5&quot;&gt;
    &lt;img src=&quot;peak-good-enough.png&quot; class=&quot;img-responsive&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      Refinement after first pass. Shown are observed (blue),
      calculated (green), background (red) and difference (teal).
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;h2&gt;Refining Background&lt;/h2&gt;&lt;p&gt;
  Zoom out on the plot by clicking the home button and look at how
  well the refinement is accounting for the background. It
  may be helpful to zoom vertically to get a better look. In the
  data-tree select the &lt;span class=&quot;heading&quot;&gt;Background&lt;/span&gt; dialog. The default is
  to refine three coefficients, change this to something higher if you
  feel the background is not fit well. For corundum I chose
  10. Re-run the refinement, if you're happy with how the background
  looks, you can move on.
&lt;/p&gt;&lt;p&gt;&lt;h2&gt;Refining Peak Width and Shape&lt;/h2&gt;&lt;/p&gt;
&lt;p&gt;
  There are two sources of line broadening in diffraction data:
  instrument effects and sample effects. Instrument effects are not
  usually of scientific interest and are lumped together and described
  by parameters in the &lt;span class=&quot;heading&quot;&gt;Instrument Parameters&lt;/span&gt; section. If you
  used an accurate instrument parameters file, these should not need
  much adjusting.
&lt;/p&gt;&lt;p&gt;
  Of more interest are the sample effects. These can be found in the
  dialog for each phase, under the &lt;span class=&quot;tab&quot;&gt;Data&lt;/span&gt;
  tab. They do not have directly refineable parameters, instead you
  must choose a model to describe the peak shapes and widths. Since we
  are doing profile fitting, &lt;strong&gt;the parameters in this tab do not
  reflect their real world analogs&lt;/strong&gt;; for that a thorough
  Rietveld treatment is necessary. Select whichever model you prefer
  and check the corresponding box. For corundum, I used
  &lt;span class=&quot;heading&quot;&gt;size&lt;/span&gt;. Sample parameters are usually
  described well by Lorentzian functions, but the Lorentzian/Gaussian
  ratio can be refined by the
  corresponding &lt;span class=&quot;heading&quot;&gt;LGMix&lt;/span&gt; parameter. 1 is
  entirely Lorentzian.
&lt;/p&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;peak-final.png&quot; class=&quot;img-responsive&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      Fit after multiple refinements.
  &lt;/div&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      From here, continue going until you achieve the desired
      fit. Each time you run the Refine command, GSAS-II performs
      three refinement cycles. Just because the process ends does not
      mean that it has found the best fit. You may need to run
      the &lt;span class=&quot;heading&quot;&gt;Refine&lt;/span&gt; command several times,
      until the calculated patterns are constant from one refinement
      to the next. For the corundum example, I ended with a cell
      parameters of 4.75903Å and 12.99294Å.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/mapping-artifacts/">
    <title type="text">Research Update: Mapping Artifacts</title>
    <id>urn:uuid:3eb7b727-da5a-39f4-9752-275c37665dae</id>
    <updated>2015-07-06T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/mapping-artifacts/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      I'm almost one year into my time here at UIC. I've been making
      steady progress on my research and have run into a strange
      issue. My research focus is developing a new technique to make
      surface maps, like the one on the right, of battery cathode
      materials using X-ray diffraction. The material studied in this
      post is \(MgMn_2O_4\). By creating these maps, I am able to look
      for areas where the electrochemistry is different from the rest
      of the material. The map at the right looked promising at first;
      however as described below this excitement may have been
      premature.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;/blog/mapping-artifacts/map180.svg&quot; alt=&quot;MgMn2O4 map&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;Map of discharged \(MgMn_2O_4\) battery cathode based on area of 18° peak.&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;p&gt;&lt;h2&gt;Mapping&lt;/h2&gt;&lt;/p&gt;
&lt;p&gt;
  Each spot on the map represents one X-ray diffraction scan. The
  whole map is of a ½&quot; diameter cathode that was recovered from a
  magnesium coin cell after being discharged. The diffractograms below
  show the average over all the scans in a map. The areas highlighted
  in blue and green represent the 2θ ranges of the expected peaks
  based on the known phases. The material exists in either a
  discharged or charged phase, however peaks were seen that don't
  correspond to either phase. The purpose of this experiment was the
  try and learn more about their origin. The peak in the 18° range is
  the one I focused on here. The color of each map pixel is determined
  by the integrated area under this peak after background
  subtraction. Looking at the diffractograms from individual pixels we
  see that indeed the peak is strong in areas colored green and not
  present in areas colored blue. However, the other peaks associated
  with this phase do not change proportionally, contrary to the usual
  behavior of XRD patterns. The fact that the color scale bar on the
  maps does not go to zero is mostly due to low-quality background
  fitting in some pixels.
&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;mmo-bulk-diffractogram.svg&quot; alt=&quot;MgMn2O4 bulk diffractogram&quot; /&gt;&lt;/p&gt;
&lt;p class=&quot;caption&quot;&gt;
  Average of diffractograms from each scan in original map (blue) and
  map after 180° rotation of sample (green).
&lt;/p&gt;&lt;p&gt;&lt;h2&gt;Sample Rotation&lt;/h2&gt;&lt;/p&gt;
&lt;p&gt;
  Puzzled by the strange behavior of the 18° peak, I wanted to see if
  this was perhaps an artifact of the instrument, rather than the
  sample. I rotated the sample 180° and made another map. The two are
  shown side-by-side below. Since the sample was rotated 180°, I
  expected the resulting map to also be rotated. This was not
  the case, leading me to suspect that this effect is either
  due to the instrument itself or to some aspect of the sample
  mounting method.
&lt;/p&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;mmo-map.svg&quot; alt=&quot;MgMn2O4 map&quot; /&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;mmo-map-180.svg&quot; alt=&quot;MgMn2O4 map rotated 180°&quot; /&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p class=&quot;caption&quot;&gt;
  Maps and reconstructed micrographs of \(MgMn_2O_4\) in original
  orientation (left) and after 180° rotation on specimen stage
  (right). Differences in spot size are due to changes made to mapping
  software between experiments.
&lt;/p&gt;

&lt;p&gt;
  The images below show how the sample was mounted. I am working at
  fairly low angles and the detector is set around 11° (θ-2). Because
  of this it is possible that the 18° peak is blocked in some
  areas. It is possible that the tape used to mount the specimen is
  obstructing the X-ray beam, though this does not appear to be the
  case in the photos and would require very similar obstruction upon
  remounting the specimen. It is also possible that the specimen
  itself is not perfectly flat and that some areas are obstructed by
  other areas of the sample. It is difficult to imagine, however, how
  this would result in the effect seen here; the right area would need
  to be blocked by something that itself doesn't contain the target
  peak but yet doesn't block the electrode where the 18° peak is
  visible (green areas). Furthermore this effect would have to be
  symmetrical in order to produce the same artifact after rotating the
  specimen.
&lt;/p&gt;

&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;xrd-mounting-1.jpg&quot; alt=&quot;Mounting of sample on XRD stage&quot; /&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;xrd-mounting-2.jpg&quot; alt=&quot;Mounting of sample on XRD stage&quot; /&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;p class=&quot;caption&quot;&gt;
  Mounting of \(MgMn_2O_4\) on µ-XRD specimen stage from front (left)
  and side (right).
&lt;/p&gt;&lt;p&gt;
  Ultimately, I don't know the source of this artifact; I may need to
  run more experiments to test some ideas. Regardless of the outcome,
  I intend to come up with a better way of mounting specimens to
  replace the multiple layers of tape I'm currently using. I will also
  be on the look-out for this effect in future work.
&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/beamtime/">
    <title type="text">Beamtime Galore</title>
    <id>urn:uuid:1465aeb3-5e3a-3a2c-9f57-cca0582a3352</id>
    <updated>2015-04-26T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/beamtime/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8 pull-right&quot;&gt;
    &lt;p&gt;
      My PhD research project involves using X-rays to probe the
      chemistry of lithium-ion battery electrodes. In order to see
      something with a high level of detail, you need to look at it in
      bright light. Analogously, I need access to very high quality
      X-rays. The last two weekends &lt;b&gt;I traveled to two different
      synchrotron&lt;/b&gt;; particle accelerators whose sole purpose is to
      generate high intensity X-rays. Each one has 10-30 X-ray beams
      coming off of it, set up to run a variety of experiments. At
      Argonne National Lab's &lt;em&gt;Advanced Photon Source&lt;/em&gt; (APS),
      we used diffraction to measure the strain withing a micrometer
      sized particle. At the &lt;em&gt;Stanford Synchrotron Radiation
      Lightsource&lt;/em&gt; (SSRL) we collected the data to make
      &lt;strong&gt;three-dimensional reconstructions&lt;/strong&gt; of the
      micro-structure of some samples using &lt;strong&gt;X-ray Transmission
      Tomography&lt;/strong&gt;.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;/blog/beamtime/brian-argonne.jpg&quot;
     alt=&quot;Brian in the hutch at Argonne&quot; /&gt;
    &lt;p&gt;
      Fellow grad-student Brian May at beamline 34-ID-E at Argonne
      National Lab.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;h2&gt;The Physics&lt;/h2&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      Viewed from above, the synchrotron is a big ring. In the case of
      Argonne, it's 1.1km (3,622ft) around. Stanford's is a little
      smaller. Electrons travel around the ring at over 99.99% of the
      speed of light. Anytime a charged particle accelerates, it gives
      off electromagnetic light waves. [NB: &quot;Light&quot; doesn't
      necessarily mean visible light, it can also refer to microwaves,
      UV light, X-rays, etc.] From a physicists perspective, moving in
      a circle is a form of acceleration, so as these electrons travel
      around the ring they give off electromagnetic
      radiation. Because of how fast they're going, the light given
      off is in the X-ray region of the electromagnetic spectrum. The
      electrons also go through special magnets, either &quot;undulators&quot;
      and &quot;wigglers&quot;, that give off even better light. These X-rays
      are very bright, quite straight and highly coherent; perfect for
      my research.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;aps_ariel.jpg&quot;
     alt=&quot;Argonne Advanced Photon Source&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      The &lt;em&gt;Advance Photon Source&lt;/em&gt; at Argonne National Lab, Chicago IL.
  &lt;/div&gt;
&lt;/div&gt;&lt;h2&gt;The Chemistry&lt;/h2&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;txm-image.png&quot;
     alt=&quot;X-ray micrograph of secondary particles&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      X-ray micrograph of secondary cathode particles. Each particle
      is ~2-5µm across.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      In my research group, we look at cathode materials for
      lithium-ion batteries. These materials are usually crystalline,
      meaning the atoms form a regular, repeating pattern. X-rays are
      really good at probing crystal structures and so with the right
      experiment, we can get a lot of information about our
      sample. The experiment at SSRL made use of an X-ray
      microscope. The concept is analogous to a conventional
      microscope except that X-rays have a much smaller wavelength so
      we can, in theory, resolve much smaller distances. Also,
      different elements absorb X-rays at different wavelengths, so by
      tuning the beam we can actually collect images of just certain
      elements, something conventional microscopy cannot do. We looked
      at the secondary particles of a battery matherial. Then we
      rotated the sample and by taking multiple images were able to
      reconstruct a 3-dimensional model of where specific elements are
      located.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;h2&gt;The Experience&lt;/h2&gt;&lt;p&gt;
  The first reaction to being at a synchrotron was awe. These machines
  are enormous and incredibly complex. At first, the equipment can be
  overwhelming. Fairly quickly, though, I came to realize that each
  piece is straightforward. I certainly don't claim to understand what
  all (or even most) of the pieces do, but there's nothing mysterious
  about their operation. There's also a fair amount of downtime, since
  it takes time to collect all the data and much of the process is
  automated. This provides a good opportunity to wander around
  experiment hall and read the various research posters that the
  different beamlines have created. Each beamline is set up for a
  different technique, so seeing what each is capable of was a
  fascinating tour.
&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/image-formats/">
    <title type="text">Image Formats</title>
    <id>urn:uuid:49af1299-c063-3857-8695-ea4ea1e598de</id>
    <updated>2015-01-24T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/image-formats/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;p&gt;
  This post is meant as a resource for helping to decide how best to
  send images for posting on websites. There are usually three
  possible options: &lt;strong&gt;lossly bitmaps&lt;/strong&gt;, &lt;strong&gt;lossless
  bitmaps&lt;/strong&gt; and &lt;strong&gt;vector graphics&lt;/strong&gt;. The right
  decision is usually a compromise between a high-quality image that
  gives a clean, sharp presentation to the user, and a small file-size
  so a user doesn't get bored while waiting for your website to load
  all of the 2MB images. Using the right image formats will result in
  a website that loads quickly and has a consistent, sharp layout.
&lt;/p&gt;&lt;table&gt;
&lt;thead&gt;&lt;tr&gt;
&lt;th&gt;Image Type&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Example Extension&lt;/th&gt;
&lt;th&gt;Min Resolution (pixels)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Photograph&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;../../blog/image-formats/#lossless&quot;&gt;Lossy bitmap&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;.jpg .jpeg&lt;/td&gt;
&lt;td&gt;Landscape: 750&amp;times;464&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Portrait: 350&amp;times;475&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logos and other flat graphics&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;../../blog/image-formats/#vector&quot;&gt;Vector graphics (preferred)&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;.svg .ai .eps&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;.png .tif .gif .bmp&lt;/td&gt;
&lt;td&gt;Context dependent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;!-- more --&gt;

&lt;p&gt;
  I design a few websites in my spare time, namely
  the &lt;a href=&quot;http://kalamazooacs.org&quot; title=&quot;KACS homepage&quot;&gt;Kalamazoo
  ACS local section&lt;/a&gt; and an
  &lt;a href=&quot;jglcrm2015.com&quot; title=&quot;joint regional meeting homepage&quot;&gt;
    ACS regional meeting&lt;/a&gt;. This post is aimed at contributors for
    these organizations.
&lt;/p&gt;&lt;h2 id=&quot;vector&quot;&gt;Raster vs Vector Graphics&lt;/h2&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      Image formats basically store information as a series of 1's and
      0's on a computer's hard-drive. Two mains schemes are
      available. &lt;em&gt;Raster graphics&lt;/em&gt;, also known
      as &lt;em&gt;bitmaps&lt;/em&gt;, divide the image into a series of discrete
      picture elements, or &amp;ldquo;pixels&amp;rdquo;, and assign each one a
      number that represents its color. Deciding how many pixels to
      use (&amp;ldquo;resolution&amp;rdquo;) determines how small each pixel
      is. Any details that are smaller than the size of one individual
      pixel are lost. A higher resolution saves more detail but
      results in larger file-sizes and thus slower page loading
      times. &lt;strong&gt;When submitting images for publication, higher
      resolutions are generally better&lt;/strong&gt;; I can always remove detail but
      I can't add it back in once it's gone.
    &lt;/p&gt;
    &lt;p&gt;
      &lt;em&gt;Vector graphics&lt;/em&gt;, on the other hand, describe the image
      as being made up of various shapes, or &amp;ldquo;vectors&amp;rdquo;. A
      clock-face might be described as a black circle with a specific
      thickness; another slightly smaller circle filled with white;
      and various straight black lines of different lengths. The
      advantage here is that all the details of the image are captured
      perfectly. As a result, the image can be scaled to any size with
      no loss of quality. The catch is that the image has to be
      designed and saved as a vector graphic using something
      like &lt;a href=&quot;https://www.inkscape.org/&quot; title=&quot;Inkscape
      homepage&quot;&gt;Inkscape&lt;/a&gt; or Adobe Illustrator. A vector graphic
      can be converted into a raster graphic but a raster graphic
      cannot be converted back into a vector graphic. For this
      reason, &lt;strong&gt;please send me vector graphics if
      possible.&lt;/strong&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;a href=&quot;http://en.wikipedia.org/wiki/File:VectorBitmapExample.svg&quot; alt=&quot;Image on wikipedia&quot;&gt;
      &lt;img src=&quot;vector-graphics-bottle.png&quot; /&gt;
    &lt;/a&gt;
    &lt;p class=&quot;caption&quot;&gt;
      Example image showing the difference between vector graphics and
      raster (bitmap) graphics.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;h2 id=&quot;lossless&quot;&gt;Photographs vs. Graphics (Lossy vs Lossless)&lt;/h2&gt;&lt;/p&gt;
&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;Not all raster graphics are created equal. As discussed earlier,
      storing a higher level of detail requires higher resolutions and so
      results in larger file-sizes. Techniques have been developed that
      compress the image into a smaller file-size; these are known
      as &lt;em&gt;compression algorithms&lt;/em&gt;. They can be devided into two
      categories; &lt;em&gt;lossy compression&lt;/em&gt; makes permanent changes to the
      image, while &lt;em&gt;lossless&lt;/em&gt; algorithms do
      not. The trade-off is that lossy compression can achieve smaller
      file-sizes.
    &lt;/p&gt;
    &lt;p id=&quot;lossy&quot;&gt;
      The JPEG standard divides the image into 8 pixel square sections
      and converts each section to a series of frequency components. A
      full explanation can be found
      on &lt;a href=&quot;http://en.wikipedia.org/wiki/JPEG&quot;&gt;wikipedia&lt;/a&gt;. This
      process introduces some artifacts into the image and so it is an
      example of &lt;em&gt;lossy compression&lt;/em&gt;. In photographs, these
      artifacts are generally not noticeable and the benefits in
      file-size reduction are significant. In flat graphics (logos,
      etc.), these artifacts become noticeable and file-sizes are
      usually not much better than lossless alogirithms, like PNG. A
      lossless image can be converted to JPEG but I cannot go the
      otherway around without a considerable amount of
      work. &lt;strong&gt;Please submit logos and similar graphics using PNG
      or another lossless format&lt;/strong&gt;; photographs can be sent as
      JPEG files.
    &lt;/p&gt;
  &lt;/div&gt;&lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;jglcrm-compression-test.png&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      JGLCRM logo using lossless compression (top) and lossy JPEG
      compression (bottom) using a quality factor of 5 for
      emphasis. Notice the artifacts along the color edges.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/computer-for-chemistry/">
    <title type="text">A Computer for Chemistry Data Analysis</title>
    <id>urn:uuid:adb7ab4d-b6f8-3e87-be8e-d43fdd3ad3fb</id>
    <updated>2015-01-16T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/computer-for-chemistry/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8&quot;&gt;
    &lt;p&gt;
      I've been tasked with finding a new computer for my PhD research
      here at UIC. I'll be collecting &lt;strong&gt;multiple data
      frames&lt;/strong&gt; and then &lt;strong&gt;processing and combining
      them&lt;/strong&gt; into one image; I think it's worth the time to get
      this right. If you have anything to share on the issue, feel
      free to &lt;a href=&quot;#comments&quot; title=&quot;jump down to comments
      section&quot;&gt;leave a comment&lt;/a&gt;. I wasn't given many restrictions
      other than that it must have a monitor, keyboard and mouse (for
      ergonomic reasons) and that &amp;ldquo;$1000 is on the high end but
      reasonable&amp;rdquo;. I've spent the past few days researching
      current technologies and have come up with some suggestions. All
      of the products listed will probably by obsolete by the time I'm
      done writing this, but hopefully the background will still be
      valid for a while. If you want to see specifically which parts
      I'm considering, &lt;a href=&quot;{{ this.url }}#parts-list&quot;&gt;jump straight
      to the parts list&lt;/a&gt;.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;a href=&quot;https://en.wikipedia.org/wiki/Amiga#mediaviewer/File:Amiga500_system.jpg&quot;
       title=&quot;&amp;copy; 2006 Bill Bertram&quot;&gt;
      &lt;img src=&quot;/blog/computer-for-chemistry/amiga.jpg&quot; class=&quot;img-responsive&quot; alt=&quot;Amiga 500&quot; /&gt;
    &lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;h2&gt;Requirements&lt;/h2&gt;&lt;p&gt;
  The first step in finding the right computer is deciding what this
  computer actually needs to do. My research centers around mapping
  the 2D and 3D changes that occur in a battery electrode. I will use
  an X-ray microdiffractometer to measure the structure on a spot
  approximately 100&amp;micro;m across. This will be repeated several times
  in various places. Each location will result in roughly 1 MB of
  data. The first step will be to integrate each two-dimensional
  data-set into a one-dimensional spectrum, so I need my computer to
  be good at mathematical calculations. Since I'll be processing
  multiple independent spectra, I also want it to be amenable to
  parallel computing. I would like to leave the option open of using
  something like &lt;a href=&quot;http://mathema.tician.de/software/pycuda/&quot;
  title=&quot;PyCUDA package homepage&quot;&gt;PyCUDA&lt;/a&gt; if I come across a nice
  graphics card. UIC does have a super-computer that I can use at
  times, so if I need more than my computer can provide I have that
  option.
&lt;/p&gt;&lt;h2&gt;Processor and Motherboard&lt;/h2&gt;
&lt;p&gt;
  Right now I'm looking at the Haswell CPU architecture, which gives
  me the choice of a Core i3, i5 or i7. The i7 line has
  hyper-threading, which is the ability to run multiple threads on each
  core and make good use of processor downtime; seems like something
  that would help me. The big difference between the different i7's is
  their choice of memory, DDR3 &lt;i&gt;vs&lt;/i&gt; DDR4. This affects the choice
  of motherboard, and obviously memory. The Haswell-E processors
  (5960K, 5930K, 5820K) have either six or eight cores versus four
  cores in the 4790K. Remember, all the i7's have hyper-threading so
  they can run 12, 16 and 8 threads respectively. The 4790 and 4790K
  differ mostly in the sense that the 4790K can be overclocked. For an
  extra $30, I think I will give myself this option.
&lt;/p&gt;

&lt;p&gt;
  The motherboards for these processors come in two flavors. One has
  the LGA 2011-v3 socket, which fits the newer Haswell-E line, and
  uses DDR4 memory; the other uses the 1150 socket with DDR3 and
  processors of the regular Haswell type. The former has more cores
  but the parts (CPU, motherboard and memory) are more expensive. I've
  decided on the regular Haswell setup. A graphics card is designed to
  do small repetitive tasks very quickly and can be used for fast data
  processing. A motherboard with a PCI-Ex16 slot will make that
  possible in the future. Boards with the Intel Z97 chip-set support
  overclocking (compared the the H97 chip-set). I'm not sure if I'll
  use this but why not get it anyway, right?
&lt;/p&gt;

&lt;a href=&quot;http://www.anandtech.com/show/8426/the-intel-haswell-e-cpu-review-core-i7-5960x-i7-5930k-i7-5820k-tested&quot;&gt;
  &lt;img src=&quot;http://images.anandtech.com/doci/8426/1%20-%20Processors_575px.png&quot;
       class=&quot;img-responsive&quot; /&gt;
&lt;/a&gt;

&lt;h2&gt;Memory&lt;/h2&gt;
&lt;p&gt;
  So motherboard selection will be determined in part by whether I get
  DDR3 or DDR4. DDR4 is the new successor to DDR3. There are not as
  many options available yet and it's more expensive. It's a little
  bit faster and uses significantly less power. I checked out the
  performance tests in the video below and it looks like the speed
  benefits only become significant with six or more cores. This fits
  well with the processor section since the one that uses DDR3 has
  four cores and the DDR4-class processors have six. I'm leaning
  towards the 4-core DDR3 setup as a better value.
&lt;/p&gt;

&lt;!-- DDR4 vs DDR3 video --&gt;
&lt;p&gt;
  &lt;iframe src=&quot;//www.youtube.com/embed/Pvac1AFXeWM&quot;
      width=&quot;560&quot; height=&quot;315&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;Hard Drive&lt;/h2&gt;
&lt;p&gt;
  I'm sold on using a solid-state drive (SSD) for holding system
  files. I love the fast boot time and snappy application loading. An
  SSD connected by PCI-express would be great, although I think I'll
  go for SATA III to save a few bucks. With the massive speed gains of
  SSDs compared to convention hard-drives, the interface itself is now
  the bottle-neck. A PCI-Express SSD would make my system a little
  more responsive but right now they cost several hundred dollars. To
  complement the SSD, I have a 1 TB conventional hard disk drive (HDD)
  that I will put in for data storage. Hopefully transferring data from
  the HDD to memory will not be too slow. If it is I may have to
  transfer the active project from the slow HDD to the fast SSD before
  performing that analysis.
&lt;/p&gt;

&lt;h2&gt;Operating System&lt;/h2&gt;&lt;p&gt;
  The real question here is whether I need to run anything that
  absolutely won't run on GNU/Linux. Those of you that know me know
  that I'm a big Linux fan-boy and really don't like Windows. The first
  thing that I'll be doing is installing Arch Linux. My plan right now
  is to use Python to analyze most of these data, which is platform
  agnostic. Some of the diffraction analysis software that is specific
  to our instrument will only run on Windows. Hopefully, the Windows
  emulator written for Linux (WINE), will be able to handle this
  task. If not, I might have to buy a copy of Windows in the future *shudder*.
&lt;/p&gt;&lt;h2&gt;Power Supply (PSU)&lt;/h2&gt;&lt;p&gt;&lt;p&gt;
  Every system needs enough power to run all the hardware inside of
  it. The major consideration here is the maximum power that the PSU
  can deliver. This number has to be greater than the power required
  by all the components or things will get weird. I've dealt with
  power supply issues in the past and they're a nightmare. There's
  never a light that comes on saying &quot;hey, you're
  under-powered&quot;. Things will just sporadically stop working. The
  computer might freeze or randomly restart itself. Maybe the whole
  thing will just be sluggish and I won't know why. According to a
  handy chart I found on
  &lt;a href=&quot;http://www.newegg.com/Product/CategoryIntelligenceArticle.aspx?articleId=199&quot;
  title=&quot;Newegg Guide for power supplies&quot;&gt;Newegg&lt;/a&gt;, I estimate I'll
  need 350-400 W of power. The advantage I have is that I won't be
  using a separate graphics card for now. The PSU I selected has a max
  power rating of 550W so that should give me enough breathing
  room. Beyond the maximum power consideration, there are some other
  considerations, like efficiency and noise. I will rely mostly on
  reviews for that information. I also like the idea of modular
  cables. This lets me connect only the ones I need and will reduce
  the clutter in the case.&lt;/p&gt;
&lt;p&gt;&lt;h2 id=&quot;parts-list&quot;&gt;My selections&lt;/h2&gt;&lt;/p&gt;
&lt;p&gt;&lt;p&gt;
  Here are the parts I'm considering. I haven't included the monitor
  since this is just a peripheral that I can swap out at will.
&lt;/p&gt;&lt;/p&gt;
&lt;table class=&quot;table&quot;&gt;
  &lt;tr&gt;
    &lt;th&gt;Function&lt;/th&gt;
    &lt;th&gt;Part&lt;/th&gt;
    &lt;th&gt;Cost&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Processor&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16819117369&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Intel Core i7-4790K Haswell&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$339.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Motherboard&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16813138408&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Biostar Hi-Fi Z97WE&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$114.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Memory&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16820231314&quot;
     title=&quot;Link to part on Newegg&quot;&gt;2x4GB G.Skill Ripjaw Series DDR3&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$72.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Hard-drive (SSD)&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16820147371&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Samsung 850 EVO-Series SSD&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$90.00&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;SSD Mount&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Icy Dock EZ-Fit Lite&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$7.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Case&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16811147153&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Rosewill Challenger Black ATX Mid Tower&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$49.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Power Supply&lt;/td&gt;
    &lt;td&gt;
      &lt;a href=&quot;http://www.newegg.com/Product/Product.aspx?Item=N82E16817171092&quot;
     title=&quot;Link to part on Newegg&quot;&gt;Cooler Master V550&lt;/a&gt;
    &lt;/td&gt;
    &lt;td&gt;$89.99&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th&gt;&amp;nbsp;&lt;/th&gt;
    &lt;th&gt;Total:&lt;/th&gt;
    &lt;th&gt;$765.94&lt;/th&gt;
&lt;/table&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/student-email/">
    <title type="text">Entropy of the Universe</title>
    <id>urn:uuid:193666f2-5fae-35d8-8ab2-5ce53b6cbc07</id>
    <updated>2014-12-17T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/student-email/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;p&gt;I had the following e-mail exchange with one of my Chem 114 students,
Kinza. Usually, the questions I get are specific to what we're
studying in class and they tend to be easier to answer during office
hours. These questions, on the other hand, were Kinza trying to
understand the concept of entropy. We had covered it &lt;em&gt;briefly&lt;/em&gt; earlier
in the semester in the chaprter on thermodynamics. It's definitely a
difficult concept, one I don't understand fully myself. It's more in
the physics realm than chemistry but I still felt it was worth
sharing. Published with student's permission.&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    Hi Mark,
  &lt;/p&gt;
  &lt;p&gt;
    If every reaction that occurs increases the entropy of the
    universe, doesn't that mean that all the reactions going on in the
    universe are causing the entropy of the universe to keep going up?
    What's going to happen to the universe as predicted by
    thermochemistry?
  &lt;/p&gt;
  &lt;p&gt;
    -Kinza
  &lt;/p&gt;
&lt;/blockquote&gt;&lt;!-- more --&gt;

&lt;p&gt;Hi, Kinza.&lt;/p&gt;
&lt;p&gt;What a fantastic question! You're absolutely right. There's even an
ominous name for this concept: the &lt;a href=&quot;https://en.wikipedia.org/wiki/Heat_death_of_the_universe&quot;&gt;heat death of the
universe&lt;/a&gt;. Basically the universe will be one uniform temperature and
no energy will be left to do useful work.&lt;/p&gt;
&lt;p&gt;&quot;This is the way the world ends &lt;br /&gt;
Not with a bang but a whimper.&quot; &lt;br /&gt;
-TS Eliot&lt;/p&gt;
&lt;p&gt;It's not entirely clear what effect gravity has on entropy so that does make it a little more complicated.&lt;/p&gt;
&lt;p&gt;The book &lt;em&gt;Fabric of the Cosmos&lt;/em&gt; by Brian Greene is worth checking out if you're still curious. It's written as a non-fiction pleasure-reading book. It describes some of the weirder parts of physics but without all the math that's normally involved (for people who may not yet have taken calculus 4). Part II deals a lot with entropy.&lt;/p&gt;
&lt;p&gt;Cheers,
Mark&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
  Hello,
  &lt;/p&gt;
  &lt;p&gt;
    Thank you!! I've been thinking about it a lot; yes I'm still
    curious! So since the world is reaching an ever-rising level of
    entropy, doesn't that mean everything will eventually become gas
    since gas has the highest entropy?
  &lt;/p&gt;
  &lt;p&gt;
    So we don't know whether or not the pull of the universe expanding
    will eventually become stronger than internal forces like gravity?
    Also, is the solar system going to drift apart or do we not know
    what effect entropy has on the solar system yet either?
   &lt;/p&gt;
  &lt;p&gt;
    Sorry, I have so many questions and it's a lot more helpful to ask
    someone who understands this stuff instead of reading articles
    written in words I can't pronounce. Studying the stuff we learned
    in chemistry all semester, looking at it now, I can see that it's
    brushing the surface of something really huge.
  &lt;/p&gt;
  &lt;p&gt;
    Thank you for telling me about the book! I found the PDF of it
    online I'm going to see what it's all about when finals are over.
  &lt;/p&gt;
  &lt;p&gt;
    -Kinza
  &lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;Hi, Kinza.&lt;/p&gt;
&lt;p&gt;More great questions. I've put my answers down below. These
conversations might make a good blog post. Do you mind if I post them?
If not, would you prefer I include your name or leave it off?&lt;/p&gt;
&lt;p&gt;Cheers,
Mark&lt;/p&gt;
&lt;p&gt;That's one possibility. Gas has the highest entropy compared to solids
and liquids but it gets tough to compare when you're talking about
exotic things, like blackholes. Gravity has some relationship with
entropy that I don't completely understand.&lt;/p&gt;
&lt;p&gt;The ultimate fate of the universe is still unknown. When Einstein came
up with relativity theory, he assumed a static, unchanging universe that
would not have a beginning or end. In the 1920s and 30s, Edwin Hubble
and Georges Lemaître discovered that the universe is actually expanding.
The effects of gravity work to slow down this expansion. If the initial
expansion were fast enough, gravity would not be able to keep up and the
universe would keep expanding forever (heat death). The other option is
that gravity would win and the universe would contract into a
singularity (the &quot;big crunch&quot; model). Started in 1998, evidence was
found that suggested the acceleration of the universe was actually
expanding. This requirs some sort of energy that is always repulsive
(the opposite of gravity) and could push matter faster and faster. We
currently don't what that stuff is; we call it &quot;dark energy&quot;, which is
really just a placeholder until we understand it better.&lt;/p&gt;
&lt;p&gt;No problem at all. Questions from someone who's genuinely curious are
always fun to answer; a welcome change from the &quot;how do I do this
homework&quot; type questions I usually get. =P&lt;/p&gt;
&lt;p&gt;Enjoy. It's one of my favorites. I first read it while I was on vacation
with a friend. I would periodically look up and say things like &quot;Wow!
Did you know that from a physics perspective it's statistically more
likely that all your memories are made up than that they actually
happened&quot; and they would all look at me like I was insane.&lt;/p&gt;
</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/vitamin-d/">
    <title type="text">More Sunshine (Vitamin): Doctor's Orders</title>
    <id>urn:uuid:4eb1b76a-9561-3caf-ba20-1c54edc46dd9</id>
    <updated>2014-07-02T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/vitamin-d/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-8 pull-right&quot;&gt;
    &lt;p&gt;
      As per my doctor's suggestion, I'm spending the next week on a
      sailboat. No, it's not a blood pressure or a stress thing. I had
      a physical exam a while ago and for the most part everything was
      normal. The one exception was &lt;strong&gt;vitamin D
      deficiency&lt;/strong&gt;. The solution? &lt;strong&gt;Spend more time in
      the sun&lt;/strong&gt;.
    &lt;/p&gt;
    &lt;p&gt;
      &lt;em&gt;Vitamin D&lt;/em&gt; is actually a group of five vitamins:
      D&lt;sub&gt;1&lt;/sub&gt; through D&lt;sub&gt;5&lt;/sub&gt;. The most relevant to human
      health are vitamins D&lt;sub&gt;2&lt;/sub&gt; and D&lt;sub&gt;3&lt;/sub&gt; and are
      usually what people mean when they refer to &amp;ldquo;vitamin
      D&amp;rdquo;. My results listed &amp;ldquo;Vitamin D, 25-hydroxy&amp;rdquo;
      as 18 \(\frac{ng}{mL}\) and the target range was 30-96
      \(\frac{ng}{mL}\).
      &lt;a href=&quot;http://ajcn.nutrition.org/content/88/2/491S/T4.expansion.html&quot;
     title=&quot;Table of 25-hydroxy vitamin D levels&quot;&gt; An article&lt;/a&gt;
     in &lt;em&gt;The American Journal of Clinical Nutrition&lt;/em&gt;
     suggests that levels below 20 \(\frac{ng}{mL}\) indicates a
     deficiency. Clearly I need to get those levels up. But why?
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-4&quot;&gt;
    &lt;img src=&quot;/blog/vitamin-d/sun-xray.jpg&quot;
     alt=&quot;Image of the sun taken at x-ray wavelengths&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      The sun at 17.1 nm light. Courtesy of SOHO/EIT consortium. SOHO
      is a project of international cooperation between ESA and NASA.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;h2&gt;The Importance of Vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/h2&gt;
&lt;p&gt;
  Vitamin D&lt;sub&gt;3&lt;/sub&gt; has no significant activity on its
  own&lt;sup&gt;(&lt;a href=&quot;#footnote-a&quot;&gt;a&lt;/a&gt;)&lt;/sup&gt;. It's just the starting
  material for a system that regulates the amount of calcium your body
  absorbs. The first step prepares the vitamin for use in
  regulation. Chemists often number the carbons in medium-sized
  organic molecules for easy reference. The one we're interested in
  here is carbon 25. Initially this carbon is bonded to three other
  carbons and a hydrogen atom. In the liver, the hydrogen atom is
  replaced with an oxygen and a hydrogen, a &amp;ldquo;hydroxy
  group&amp;rdquo;, to form &lt;em&gt;25-hydroxy D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;. This
  process happens readily and this molecule is the dominant form of
  vitamin D&lt;sub&gt;3&lt;/sub&gt;. This is why my lab work lists the
  concentration of vitamin D in this form.
&lt;p&gt;

&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;p&gt;
      The second step turns it into the active form. In your kidneys
      there is an enzyme that adds another hydroxy group, this time to
      the other end of the molecule at the 1 position, to
      form &lt;em&gt;dihydroxy
      D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;&lt;sup&gt;(&lt;a href=&quot;#footnote-b&quot;&gt;b&lt;/a&gt;)&lt;/sup&gt;. Once
      it's in the dihydroxy form it can bind to and activate a protein
      in the nuclei and membranes of cells, called
      the &lt;strong&gt;&lt;em&gt;vitamin D receptor&lt;/em&gt;&lt;/strong&gt;. Each hydroxy
      group has a polarity that matches up with an amino acid in
      the &lt;em&gt;vitamin D receptor&lt;/em&gt;. The common 25-hydroxy form is
      missing one of the hydroxy groups so can't fit nearly as
      well. In intestinal cells, activating the &lt;em&gt;vitamin D
      receptor&lt;/em&gt; causes other proteins to transport calcium ions
      across the intestine to the blood. In bone-synthesizing cells
      (osteoblasts), it activates molecules that absorb calcium from
      the blood and build it on to the bone.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;vitamin-d-receptor.png&quot;
     alt=&quot;3D structure of dihydroxy vitamin D inside the vitamin D receptor protein&quot;
     /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      &lt;em&gt;Dihydroxy D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; (gray) inside
      the &lt;em&gt;vitamin D receptor&lt;/em&gt;. The dashed yellow lines show
      non-covalent bonds between hydroxy groups (red) and the receptor protein.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;
  That second hydroxylation step is closely regulated by your body. As
  the level of the active &lt;em&gt;dihydroxy D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; in your
  blood rises, the activity of the kidney enzyme goes down. High
  calcium levels similarly trigger low enzyme activity. There's also a
  hormone that causes more enzyme to be produced. In order for these
  regulatory steps to be effective, however, there needs to be enough
  &lt;em&gt;25-hydroxy D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; as starting material. Vitamin D
  deficiency results in bone pain and muscle weakness in addition to
  being linked to cardiovascular disease, cognitive impairment,
  childhood asthma and cancer. The childhood illness Rickets can also
  be caused by insufficient vitamin D and results in soft and
  malformed bones due to impaired calcium absorption. One way to
  increase vitamin D levels is to have more in your diet, for example
  from &lt;em&gt;Vitamin D milk&lt;/em&gt; or oral supplements. The other way is
  to get more sun.
&lt;/p&gt;

&lt;h2&gt;Making Vitamin D&lt;sub&gt;3&lt;/sub&gt; From Sunlight&lt;/h2&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;vitamin-D-synthesis.png&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      The reaction mechanism for making &lt;em&gt;vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;
      (right) from &lt;em&gt;7-dehydrocholesterol&lt;/em&gt; (left). Ultraviolet
      light breaks one bond to form the intermediate (middle), which
      then rearranges to form the final product.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;p&gt;
      &lt;strong&gt;&lt;em&gt;Vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; is produced in the skin when
      exposed to ultraviolet light&lt;/strong&gt;, like that from the
      sun. &lt;em&gt;7-dehydrocholesterol&lt;/em&gt; is present throughout the
      body since it's a precursor to &lt;em&gt;cholesterol&lt;/em&gt;, which is a
      part of animal cell membranes. The structures
      of &lt;em&gt;7-dehydrocholesterol&lt;/em&gt; and &lt;em&gt;vitamin
      D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; are very similar; the former just has one
      extra ring. When UV light of the right wavelength (270 &amp;ndash;
      320 nm, UVB) hits that ring, it breaks one of the bonds. The
      resulting molecule then rotates around the remaining bonds to
      form the more stable conformation that matches &lt;em&gt;vitamin
      D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;. The first step takes place immediately,
      while the second one happens over several days.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;p&gt;
  So how much sunlight does it take? The recommended daily allowance
  of &lt;em&gt;vitamin D&lt;/em&gt; taken orally is 600 international units
  (IUs), about 15 &amp;mu;g. The amount of sun needed to reach this level is influenced by
  a lot of factors: latitude, season, skin color, clothing, sunscreen,
  etc. Generally, though, it's &lt;strong&gt;a matter of minutes&lt;/strong&gt;.
  &lt;a href=&quot;http://www.sciencedirect.com/science/article/pii/S0190962209009487&quot;
     title=&quot;Link to source article&quot;&gt;One article&lt;/a&gt; estimated that
     &amp;ldquo;In Boston, MA, from April to October at 12 PM EST an
     individual with type III skin, with 25.5% of the body surface
     area exposed, would need to spend 3 to 8 minutes in the sun to
     synthesize 400 IU of vitamin D.&amp;rdquo; This is not a question of
     sunbathing to get vitamin D, but more a question of &lt;strong&gt;
     trying to spend a few minutes outside every day&lt;/strong&gt;. Also,
     the sun's impact on your skin can be negative, such as sunburn
     and increased risk of skin cancer.
&lt;/p&gt;&lt;p&gt;
  As with most fat-soluble vitamins, it is possible to overdose. Too
  much sun doesn't cause problems where vitamin D is concerned,
  though. Once your skin reaches a certain amount of that intermediate
  pre-vitamin, the product starts to break down into other, inactive
  molecules. Cases of vitamin D toxicity are almost always associated
  with people taking too many oral supplements.
&lt;/p&gt;&lt;h2&gt;What About the Other Vitamin D's?&lt;/h2&gt;&lt;p&gt;
  Up until now, I've focused on &lt;em&gt;vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;. This
  is the one most common in vertebrates and the one we can synthesize
  using sunlight. The other varieties are very similar in structure,
  with a few double bonds or methyl groups added on here and
  there. They are metabolized by similar pathways to those
  for &lt;em&gt;vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;. Due to the slightly different
  shape, however, they may not have the same affinity for
  the &lt;em&gt;vitamin D receptor&lt;/em&gt;. &lt;em&gt;Vitamin D&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt; is
  the only other common form and is made by a variety of
  fungi. Research suggests it has about 25% of the efficacy
  of &lt;em&gt;vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;.
&lt;/p&gt;&lt;h2&gt;Footnotes&lt;/h2&gt;&lt;ol class=&quot;footnotes&quot;&gt;
  &lt;li id=&quot;footnote-a&quot;&gt;
    There's some confusion about what &amp;ldquo;vitamin
    D&lt;sub&gt;3&lt;/sub&gt;&amp;rdquo; actually means. In this post, I will
    use &lt;em&gt;vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt; to refer to the inactive,
    dietary form: &lt;em&gt;colecalciferol&lt;/em&gt;. &amp;ldquo;hydroxy
    D&lt;sub&gt;3&lt;/sub&gt;&amp;rdquo; will refer to the metabolized &lt;em&gt;25-hydroxy
    colecalciferol&lt;/em&gt; and &amp;ldquo;dihydroxy D&lt;sub&gt;3&lt;/sub&gt;&amp;rdquo; will
    refer to the biologically active &lt;em&gt;1&amp;alpha;,25-dihydroxy
    colecalciferol&lt;/em&gt;.
  &lt;/li&gt;
  &lt;li id=&quot;footnote-b&quot;&gt;
    There are actually two dihydroxy forms. The active form that binds
    to the vitamin D receptor is &lt;em&gt;1&amp;alpha;,25-dihydroxy vitamin
    D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;. There is also a second
    form, &lt;em&gt;24R,25-dihydroxy vitamin D&lt;sub&gt;3&lt;/sub&gt;&lt;/em&gt;, which has
    almost no binding activity with the vitamin D receptor.
  &lt;/li&gt;
&lt;/ol&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/co-detector-2/">
    <title type="text">Follow-up: I Have a Carbon Monoxide Detector. Now What?</title>
    <id>urn:uuid:10551260-a3aa-32ea-b77c-020c53b5d534</id>
    <updated>2014-06-01T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/co-detector-2/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-sm-2&quot;&gt;
    &lt;img src=&quot;/blog/co-detector-2/carbon-monoxide-detector.jpg&quot; /&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-sm-10&quot;&gt;
    &lt;p&gt;
      This is a follow-up post to
      &amp;ldquo;Why Do I Need a Carbon
    Monoxide Detector?&amp;rdquo;, which talks about the chemistry of
      carbon monoxide with oxygen-transporting proteins in your
      blood. I received a few questions about &lt;strong&gt;the relationship
    between carbon monoxide levels in the air and the levels in your
    hemoglobin&lt;/strong&gt;. I also wanted to learn &lt;strong&gt;how carbon
    monoxide alarms respond to carbon monoxide&lt;/strong&gt; (CO) but not
      other gases in the air, like carbon dioxide (CO&lt;sub&gt;2&lt;/sub&gt;).
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;h2&gt;CO Levels in Air and Blood&lt;/h2&gt;
&lt;p&gt;
  When I was younger, I was terrified that carbon monoxide binds
  permanently to hemoglobin and that the damage might never be
  undone. &lt;strong&gt;Real life is a lot more complicated than
  that&lt;/strong&gt;. Small amounts of carbon monoxide are produced
  routinely in your body and may serve a function as a
  neurotransmitter. But at higher levels, it becomes very toxic. In
  1965, a paper was published (&quot;Coburn-Forster-Kane&quot;) that provided
  an &lt;strong&gt;equation for estimating levels of hemoglobin bound up
  with carbon monoxide (&quot;COHb&quot;), based on a variety of
  factors&lt;/strong&gt;. In case you're curious, the equation is:
&lt;/p&gt;

\[
\frac{A[HbCO]_t - (BV_{CO} + PI_{CO})}{A[HbCO]_0 - (BV_{CO} + PI_{CO})} = e^{-tAV_bB}
\]

&lt;p&gt;
  It's not terribly important that you understand the whole equation
  so I'll point out the the interesting parts. We're trying to solve
  for \([HbCO]_t\), the concentration of carboxyhemoglobin in the
  blood at any given time. First there's the presence of a term \(t\),
  which means the &lt;strong&gt;duration of exposure to CO&lt;/strong&gt;,
  measured in minutes. This means that, in some way, the amount of
  time you spend exposed to higher levels of carbon monoxide is
  important. Then there's \(PI_{CO}\), which represents
  the &lt;strong&gt;concentration of carbon monoxide in the air you're
  breathing&lt;/strong&gt;. Lastly there's \(B\), which tracks &lt;strong&gt;how
  much air enters your lungs every minute&lt;/strong&gt;. So the effect
  depends on how fast you're breathing. Basically, exercise and other
  vigorous activites make the whole process run faster. The rest of the
  equation takes care of things like total volume of blood and how
  much carbon monoxide is naturally present in the body.
&lt;/p&gt;

&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;p&gt;
      Some smart people who are good at math have made graphs that
      show how this equation works. The one on the right has been
      shamelessly borrowed
      from &lt;a href=&quot;http://www.coheadquarters.com&quot;
          title=&quot;Visit CO headquarters&quot;&gt;CO Headquarters&lt;/a&gt;.
      It shows the
      &lt;strong&gt;per cent of hemoglobin that's in the carbon monoxide form as a
      function of time&lt;/strong&gt;. Each curve is a different level of CO exposure
      in the surrounding air. The World Health Organization has
      published some
      &lt;a href=&quot;http://www.who.int/ipcs/publications/ehc/ehc_213/en/&quot;
     title=&quot;WHO report on carbon monoxide&quot;&gt;information&lt;/a&gt; that is
      helpful here. Levels of COHb below 5% have no noticeable
      impact unless you are a member of an at-risk population
      (heart-disease, etc). Severe symptoms occur between 30-50%
      and bad things like coma, convulsions and death occur at
      levels above 50%. So let's say you're pregnant and are
      concerned about hitting the 15% COHb threshold at which the
      WHO reports developmental problems. This means that if you're
      exposed to 200ppm carbon monoxide in the air, you have about
      300 minutes (5 hours) before the level of COHb hits 15%. At
      500ppm this drops to 100 minutes (1 hour 40 minutes) and 1000
      ppm to 30 minutes. Of course &lt;strong&gt;if any number of variables
    change (breathing rate, etc), so do these numbers&lt;/strong&gt;. Also, if
      you get into fresh air, the concentration returns to normal
      levels over a similar time frame.
    &lt;p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;carboxyhemoglobin-graph.png&quot;
     title=&quot;Graph of COHb levels versus exposure time&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      Solutions to the Coburn-Forster-Kane equation for various air
      carbon monoxide levels. Each line is a different level of carbon
      monoxide in the surrounding air.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;How to Detect Carbon Monoxide&lt;/h2&gt;&lt;p&gt;
  So how does any of this impact carbon monoxide detectors?  A CO
  level of 35 ppm can be problematic but only for extended periods of
  time. &lt;strong&gt;The need to avoid false alarms is important&lt;/strong&gt;,
  especially in places like hospitals where evacuation has its own
  problems. Cigarette smoke produces lots of carbon monoxide but you
  wouldn't want your alarm going off every time you light one. Alarms
  typically have a threshold that's a combination of CO concentration
  and exposure time (eg &quot;150 ppm, 10-50 minutes&quot;). There are several ways
  to achieve this but here's my favorite: &lt;strong&gt;the biomimetic
  sensor&lt;/strong&gt;. It uses a disc of gel that absorbs carbon monoxide
  over time. The composition of the gel is designed in such a way that
  it responds to carbon monoxide in a similar way to hemoglobin, hence
  the term &quot;biomimetic&quot;. It's made of an atom of metal (to simulate
  the iron in hemoglobin) bound to a large organic molecule. Part of
  the molecule holds the metal and another part, the &quot;chromophore&quot;,
  changes color depending on whether the metal is bound to carbon
  monoxide. The color of the sensor then follows the curves in the
  graph above. By putting a light source on one side and a detector on
  the other, the darkness can be measured and the alarm triggered once
  it hits a certain level. This type of alarm is the most reliable but
  also expensive so most consumer products use other methods.
&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/CO-detector/">
    <title type="text">Why Do I Need a Carbon Monoxide Detector?</title>
    <id>urn:uuid:1a0c6f43-1969-3119-b061-4a2ba8cc513c</id>
    <updated>2014-05-25T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/CO-detector/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-sm-4&quot;&gt;
    &lt;img src=&quot;/blog/CO-detector/carbon-monoxide-toxic.png&quot; /&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-sm-8&quot;&gt;
    &lt;p&gt;
      What if I told you carbon monoxide detectors are a scam? Well
      I'd be lying. &lt;strong&gt;Carbon monoxide is a poisonous gas that
      gets into your red blood cells and messes everything
      up&lt;/strong&gt;; knowing when it's in your house is worth the
      investment. It doesn't help that it's colorless and odorless
      either. We had some furnace troubles last winter and after a
      night of not being sure if we'd die quietly in our sleep, I
      decided to buy a CO detector ($20 at my local hardware
      store). In order to understand why carbon monoxide is so deadly,
      we first need to learn a little about how the body transports
      oxygen.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-sm-6&quot;&gt;
    &lt;p&gt;
      It starts with red blood cells. These are special cells
      that are really rich in a molecule
      called &lt;strong&gt;hemoglobin&lt;/strong&gt;. It's a big curled up protein
      with an iron atom in just the right place. This iron atom wants
      electrons and holds on to the extra ones that are in a molecule
      of oxygen. The rest of the protein makes sure there's a space
      that's just big enough to fit an oxygen molecule (more on this
      later). Each molecule of hemoglobin has four of these iron
      centers. When the red blood cells are in a place with lots of
      oxygen, like your lungs, these four sites fill up quickly. When
      the cells are in an area with low oxygen, like your muscles
      during a workout, then hemoglobin rearranges and lets go of the
      oxygen so your muscle can use it to turn carbs into energy.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-sm-6&quot;&gt;
    &lt;img src=&quot;/blog/CO-detector/deoxyhemoglobin-popout.png&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      An iron atom can bind an oxygen molecule while the rest of the
      protein makes a nice pocket that keeps other things out of the
      way.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;!-- more --&gt;

&lt;p&gt;
  So what about carbon monoxide? Well it's a similar shape and size to
  an oxygen molecule. They have some other properties in common too,
  like sticking to that iron atom. &lt;strong&gt;The problem is that carbon
  monoxide binds to the iron way better than oxygen does.&lt;/strong&gt; So
  much so that no matter how much rearrangement it does in your
  muscles, &lt;strong&gt;hemoglobin can't shake any CO molecules that are
  attached&lt;/strong&gt;. It gets worse, actually. Once a carbon monoxide
  is stuck to one of the four oxygen-binding sites, it gums up the
  other three so they don't work properly either.
&lt;/p&gt;&lt;div class=&quot;row&quot;&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;p&gt;
      Humans (and other animals) have evolved some defenses against
      this problem, namely in the structure of hemoglobin
      itself. Remember how I said that the protein has an
      oxygen-shaped pocket next to the iron? One way in which oxygen
      and CO are different is in how they stick to the iron atom;
      carbon monoxide sticks out straight and oxygen at an
      angle. There's a pentagon-shaped part right next to where the
      oxygen sits. It doesn't really bother the bent oxygen much but
      it gets in the way of the straight carbon monoxide. This means
      that the oxygen can fit into that space a lot better than cabon
      monoxide can. Carbon monoxide still binds to hemoglobin about
      250 times better than oxygen does, but it gives your body the
      ability to tolerate a low level of the poisonous gas.
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;col-md-6&quot;&gt;
    &lt;img src=&quot;oxy-carboxy-hemoglobin.png&quot; /&gt;
    &lt;p class=&quot;caption&quot;&gt;
      Oxygen (left image, light-red) binds in a slightly bent
      configuration which doesn't get in the way of the distal
      hystadine (blue-green pentagon). The straight carbon monoxide
      molecule (right image, light-red) doesn't fit nearly as well.
    &lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;&lt;p&gt;
  Levels of naturally occuring carbon monoxide are rarely high enough
  to overwhelm this defense. However, incomplete burning of
  fossil-fuels like the natural gas in our furnace, creates
  artificially high levels in the immediate area and there hasn't been
  nearly enough time for our species to evolve any sort of
  response. The symptoms of cabon monoxide poisoning are pretty
  general (headache, nausea, etc). If you have a CO detector, on the
  other hand, you can do something about it. Get yourself and loved
  ones to some fresh air. In regular air it takes about 2-6 hours for
  half of the carbon monoxide to be replaced with good old oxygen. If
  you're given pure oxygen at 3 atmospheres, this time goes down to
  tens of minutes. And if you don't have a CO detector, go get one
  right now.
&lt;/p&gt;&lt;p&gt;
  This article prompted me to write a &lt;strong&gt;follow-up piece:
  &lt;strong&gt;&quot;I Have a Carbon Monoxide Detector. Now What?&quot;&lt;/strong&gt;.
&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/hello-world/">
    <title type="text">Hello, world!</title>
    <id>urn:uuid:62b6dd25-7b6d-3eb7-b832-2b738cd0f7e2</id>
    <updated>2014-05-23T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/hello-world/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;p&gt;So I've decided to start a blog. I think I'll make it about
&lt;strong&gt;chemistry&lt;/strong&gt;. You know, explaining everyday phenomena in a way that's
both informative and easy to understand. Who knows if I'll
succeed. I'm also planning to throw some stuff in about &lt;strong&gt;going to
grad school&lt;/strong&gt; and &lt;strong&gt;computer programming&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I'll probably need a fair amount of content to post so if you have
&lt;strong&gt;chemistry related questions&lt;/strong&gt;, I'd love to hear about them. I've put
up a thread &lt;strong&gt;&lt;a href=&quot;../../chemistry/ask-a-chemist/2014/05/23/ask-a-chemist.html&quot; title=&quot;Ask a chemist thread&quot;&gt;here&lt;/a&gt;&lt;/strong&gt;. Leave a comment with your question and I'll see what
I can dig up. I'm thinking of starting out with a post on how oxygen
gets transported from your lungs to your muscles.&lt;/p&gt;
</content>
  </entry>
  <entry xml:base="http://magicacid.com/blog/ask-a-chemist/">
    <title type="text">Ask a Chemist</title>
    <id>urn:uuid:9f22de9d-919d-370e-a52c-5b56677e63e7</id>
    <updated>2014-05-23T00:00:00Z</updated>
    <link href="http://magicacid.com/blog/ask-a-chemist/" />
    <author>
      <name>Mark Wolfman</name>
    </author>
    <content type="html">&lt;div class=&quot;alert alert-warning&quot;&gt;
  &lt;p&gt;Update (2018-08-27)&lt;/p&gt;
  &lt;p&gt;
    &lt;strong&gt;I've stopped answering questions&lt;/strong&gt; posted to the
    &quot;Ask a Chemist&quot; page. I was getting asked about specifics that
    were outside of my area of expertise and didn't make for good
    blogging fodder. If you have a chemistry question, I recommend
    posting it on
    the &lt;a href=&quot;https://chemistry.stackexchange.com/&quot;&gt;chemistry stack
    exchange&lt;/a&gt;.
  &lt;/p&gt;
&lt;/div&gt;&lt;p&gt;Ever wonder why water and oil don't mix? Well maybe not, but if you
have anything similar that you've wanted an answer to then you've come
to the right place. &lt;strong&gt;Leave a comment with your question&lt;/strong&gt; and maybe
I'll write a post about it.&lt;/p&gt;
&lt;p&gt;Examples of &lt;strong&gt;good questions&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How does C-4 work?&lt;/li&gt;
&lt;li&gt;Why do cars rust more in the Northern US?&lt;/li&gt;
&lt;li&gt;Why is water wet? (seriously)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Examples of &lt;strong&gt;bad questions&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I couldn't think of any. I'll post some here if they get asked.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
</feed>
