<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>My Blog</title>
    <description>Tell us about your site
</description>
    <link>Materials-Informatics-Lab.github.io/research-pages/</link>
    <atom:link href="Materials-Informatics-Lab.github.io/research-pages/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Thu, 02 Apr 2015 00:07:58 +0000</pubDate>
    <lastBuildDate>Thu, 02 Apr 2015 00:07:58 +0000</lastBuildDate>
    <generator>Jekyll v2.4.0</generator>
    
      <item>
        <title>A Javascript Stack for Science</title>
        <description>

## This Post

&lt;h4&gt;&lt;i&gt;Illustrates the powerful capabilities Javascript offers for creating personalized
  and dynamic visualizations of dense scientific information... fluff too.&lt;/i&gt;&lt;/h4&gt;

&gt; It only works in Chrome.  I am coming to this as a scientist, not a developer.

## What to do?

* Iteract with the [d3](http://d3js.org) visualizations to explore real materials science datasets.

  The d3 plots are reduced embeddings for real machine learning examples.  This dynamic interaction
  allows experts to rapidly peruse their information.

  There are two of visualizations.

    1. An exploration of [Al-Mg-Si SEM Images](http://alikhosravani.github.io/MIC-Al6061-NIST-project/2014/09/17/Project-description.html).
    2. Micrographs of [$\alpha-\beta$ Titanium](http://tonyfast.com/Titanium/)

* Click the Stand-Alone Images to activate Lightbox for a gallery view of visual
  information.

    &gt; I&#39;ll fix this soon, it&#39;s kinda broked.

* Observe the references at the end that are automatically collated by a
  customized [Jekyll template](http://jekyllrb.com).

    If you click on the &lt;span class=&quot;octicon octicon-pencil&quot;&gt;&lt;/span&gt; in the menu bar at the top left you can see the
    source for this post.  It is a hybrid of structured and unstructured data using
    [YAML front matter](http://jekyllrb.com/docs/frontmatter/).  References in this post and made using with
    the [liquid syntax](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers),
    ``{{ref[i]}}``.

* Interact with the comments served up by [Disqus](http://disqus.com).
* Click &lt;span class=&quot;octicon octicon-gift&quot;&gt;&lt;/span&gt; to put the post into presentation mode
  thanks to [fullpage.js](http://alvarotrigo.com/fullPage/).

  The d3 visualizations will become easier to use and each the remaining sections
  will be parsed into slides.

## A Javascript Stack for Dynamic Presentation

The complete set of tools used on this page is listed below.

&lt;table class=&quot;table table-bordered&quot;&gt;
&lt;tr&gt;
  &lt;th&gt;
    Javascript
  &lt;/th&gt;
  &lt;th&gt;
    Styling
  &lt;/th&gt;
  &lt;th&gt;
    External Services
  &lt;/th&gt;
&lt;/tr&gt;


&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://www.mathjax.org/&quot;&gt;MathJax&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://getbootstrap.com&quot;&gt;Bootstrap&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://disqus.com&quot;&gt;Disqus&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://lokeshdhakar.com/projects/lightbox2/&quot;&gt;Lightbox&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://embed.ly&quot;&gt;Embedly&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://alvarotrigo.com/fullPage/&quot;&gt;Fullpage.js&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://octicons.github.com&quot;&gt;Octicons&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://slideshare.net/tonyfast1&quot;&gt;SlideShare&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://jquery.com/&quot;&gt;JQuery&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;https://github.com/Shopify/liquid/wiki/Liquid-for-Designers&quot;&gt;Liquid&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;&quot;&gt;&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;http://d3js.org&quot;&gt;D3&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;&quot;&gt;&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;&quot;&gt;&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
  &lt;td&gt;
    &lt;a href=&quot;https://github.com/knsv/mermaid&quot;&gt;Mermaid&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;&quot;&gt;&lt;/a&gt;
  &lt;/td&gt;
  &lt;td&gt;
    &lt;a href=&quot;&quot;&gt;&lt;/a&gt;
  &lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;

# All the Jazz

# A Chart

Easily create graphs using [Mermaid](https://github.com/knsv/mermaid)&#39;s simple diagramming syntax.  There is a [bl.ocks.org](http://bl.ocks.org/tonyfast/b77d1cb766f65f026c67) page that can
be used to explore Mermaid.

&lt;style&gt;
.mermaid div{ color: black; }
&lt;/style&gt;

&lt;div class=&quot;mermaid&quot;&gt;
  graph LR;
    A[Physics Based Model]--&gt;B(Feature Identification);
    B--&gt;C(Feature Encoding);
    B--&gt;b1((segmentation));
    C--&gt;D(Data Analytics);
    C--&gt;c1((spatial statistics));
    D--&gt;|collaborate|E{Design};
    D--&gt;d1((PCA));
    E--&gt;|iterate|A;
&lt;/div&gt;


&lt;div class=&quot;panel panel-default&quot;&gt;
  &lt;div class=&quot;panel-heading remove&quot;&gt;
    &lt;p&gt;
    &lt;h4&gt;Reduced Embedding Visualizer&lt;/h4&gt;
    &lt;i&gt;
    MouseOver any point to reveal pertinant information.
    Each point can be clicked to remind yourself which ones you have visited.
    &lt;/i&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;panel-body&quot;&gt;
&lt;div class=&quot;section rembedder&quot;&gt;
  &lt;div id=&quot;embed-name&quot; style=&quot;display:none;&quot;&gt;/research-pages/assets/data/embedding.json&lt;/div&gt;

    &lt;div class=&quot;row&quot;&gt;
      &lt;div id=&quot;embedding&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;

    &lt;div class=&quot;row&quot; id=&quot;stage&quot;&gt;
      &lt;div class=&quot;panel panel-primary&quot;&gt;
        &lt;div class=&quot;panel-heading&quot;&gt;
          &lt;p id=&quot;img-name&quot;&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel-body&quot;&gt;
          &lt;img src=&quot;&quot;/&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;


  &lt;/div&gt;
&lt;/div&gt;



## Some section explaining code

&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-javascript&quot; data-lang=&quot;javascript&quot;&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;WhatsTheAnswer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;parseInt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;#39;42&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

## Using Posts as Code

&lt;iframe src=&quot;http://nbviewer.ipython.org/gist/tonyfast/242af9bda2517a9179c0/blog-to-data.ipynb&quot; width=&quot;100%&quot; height=&quot;475px&quot;&gt;&lt;/iframe&gt;


&lt;div class=&quot;panel panel-default&quot;&gt;
  &lt;div class=&quot;panel-heading remove&quot;&gt;
    &lt;p&gt;
    &lt;h4&gt;Reduced Embedding Visualizer&lt;/h4&gt;
    &lt;i&gt;
    MouseOver any point to reveal pertinant information.
    Each point can be clicked to remind yourself which ones you have visited.
    &lt;/i&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;panel-body&quot;&gt;
&lt;div class=&quot;section rembedder&quot;&gt;
  &lt;div id=&quot;embed-name&quot; style=&quot;display:none;&quot;&gt;/research-pages/assets/data/embedding2.json&lt;/div&gt;

    &lt;div class=&quot;row&quot;&gt;
      &lt;div id=&quot;embedding&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;

    &lt;div class=&quot;row&quot; id=&quot;stage&quot;&gt;
      &lt;div class=&quot;panel panel-primary&quot;&gt;
        &lt;div class=&quot;panel-heading&quot;&gt;
          &lt;p id=&quot;img-name&quot;&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class=&quot;panel-body&quot;&gt;
          &lt;img src=&quot;&quot;/&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;


  &lt;/div&gt;
&lt;/div&gt;


## An Image

&gt; For good measure

![One Image](https://farm3.staticflickr.com/2689/12972815434_734b24ef1d_q.jpg)

## Dolla Dolla Bills Y&#39;all

Fencing latex in ``$`` and ``$$`` will activate MathJax.

eg.
```
$$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x)$$
```


$$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$$

## And Another

![@docfast](http://photos-b.ak.instagram.com/hphotos-ak-xfp1/10632254_450887461721113_670996025_n.jpg)
</description>
        <pubDate>Thu, 20 Nov 2014 00:00:00 +0000</pubDate>
        <link>Materials-Informatics-Lab.github.io/research-pages/2014/11/20/LDA-tester.html</link>
        <guid isPermaLink="true">Materials-Informatics-Lab.github.io/research-pages/2014/11/20/LDA-tester.html</guid>
        
        
      </item>
    
      <item>
        <title>Ipython Notebook</title>
        <description># Access IPython notebook embeds

Embed IPython Notebooks in research posts using a new ``_include``.





&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;{% include notebook.html url=&amp;#39;http://notebook.url&amp;#39; %}&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;iframe src=&quot;http://nbviewer.ipython.org/github/Materials-Informatics-Lab/Materials-Informatics-Lab.github.io/blob/master/snippets/Sharing%20Plot.ly%20Figures%20and%20Data.ipynb
&quot; height=&quot;500&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;

</description>
        <pubDate>Wed, 17 Sep 2014 00:00:00 +0000</pubDate>
        <link>Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Ipython-Notebooks.html</link>
        <guid isPermaLink="true">Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Ipython-Notebooks.html</guid>
        
        
      </item>
    
      <item>
        <title>Easily embed flickr images into posts
</title>
        <description># Embed.ly

[Embed.ly](http://embed.ly/) is a service that provides its users to
embed content from endpoint urls for [250 services](http://embed.ly/embed/features/providers).

It is is easy to test url&#39;s by modifying the ``href`` in the HTML embed code below




&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;a&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;embedly-card&amp;quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;href=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;crop_template&lt;span class=&quot;nt&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;){&lt;/span&gt;
  &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;embedly-platform&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;nx&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getElementById&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)){&lt;/span&gt;
    &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;createElement&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;nx&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https:&amp;quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;===&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;location&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;protocol&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https&amp;quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;http&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;://cdn.embedly.com/widgets/platform.js&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getElementsByTagName&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;];&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;parentNode&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;insertBefore&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)}}(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


## On ``research-pages``

I added features for **Flickr** images and general **embedly** links.  See [``_includes``](https://github.com/Materials-Informatics-Lab/research-pages/tree/gh-pages/_includes)

&gt; **Why both when they do the same thing?**  Be specific.  It will save time down the line.

Use the following liquid syntax in your posts and pages.




&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot; data-lang=&quot;html&quot;&gt;# Show Flickr Image

{% include flickr.html url=&amp;#39;http://www.flickr.com/photos/tonyfast/15198543551/&amp;#39; %}

# Try A SlideShare Presentation

Use the general embedly include statement.

{% include embedly.html url=page.deck %}&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


# Examples in Action

## Flickr Embed



&lt;iframe src=&quot;http://www.flickr.com/photos/tonyfast/15198543551/&quot; height=&quot;500&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;



## SlideShare Embed

&lt;a class=&quot;embedly-card&quot; href=&quot;http://www.slideshare.net/tonyfast1/the-materials-data-scientist&quot;&gt;crop_template&lt;/a&gt; &lt;script&gt;!function(a){var b=&quot;embedly-platform&quot;,c=&quot;script&quot;;if(!a.getElementById(b)){var d=a.createElement(c);d.id=b,d.src=(&quot;https:&quot;===document.location.protocol?&quot;https&quot;:&quot;http&quot;)+&quot;://cdn.embedly.com/widgets/platform.js&quot;;var e=document.getElementsByTagName(c)[0];e.parentNode.insertBefore(d,e)}}(document);&lt;/script&gt;


Modifications to the styling can be gleaned from the [embedly code generator](http://embed.ly/code).
</description>
        <pubDate>Wed, 17 Sep 2014 00:00:00 +0000</pubDate>
        <link>Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Embed.ly-Flickr-Stack.html</link>
        <guid isPermaLink="true">Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Embed.ly-Flickr-Stack.html</guid>
        
        
      </item>
    
      <item>
        <title>Data Pages Demo</title>
        <description># Using Data Files in Posts

[Data Files in Jekyll](http://jekyllrb.com/docs/datafiles/) provide site-wide access
to ``yaml`` and ``json`` files stored in the ``_data`` folder on your Github Pages branch.

# How to Data Files Work.

* ``yaml`` or ``json`` files are stored in the ``_data`` directory.

    Examples:
    ``_data/file-name.yml`` or ``_data/file-name.json``.
* Access the file content through ``{{site.data[&#39;file-name&#39;]}}`` in posts and pages.

  ``file-name`` is a string thatcorresponds to the file name without the extension.  In the following
  examples we will use different files for the site data.

# Demo ``_data/yexample.yaml``

In this case, the file is [``_data/yexample.yaml``](https://github.com/Materials-Informatics-Lab/research-pages/blob/gh-pages/_data/yexample.yaml) and can be accessed with the
syntax ``{{site.data[&#39;yexample&#39;]}}``

**YAML Site Data**


&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-yaml&quot; data-lang=&quot;yaml&quot;&gt;&lt;span class=&quot;p-Indicator&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;description&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;Segmented $\\alpha&amp;amp;-$\\beta$ Titanium micrographs from Pete Collins at UNT.\n&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;gist&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;https&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;//gist.github.com/tonyfast/afafb762798e9204bac4&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;volumefraction&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;0.60206419148851&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;tags&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;Experiment1&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;AnalysisMagic&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;units&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;[{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;x&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;10&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;y&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;10&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;}],&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;flickr&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;view&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;https&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;//www.flickr.com/photos/tonyfast/12972815434/in/set-72157641959260094&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;set&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;https&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;//www.flickr.com/photos/tonyfast/sets/72157641959260094/&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;author&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;[{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;name&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;Tony Fast&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;p-Indicator&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;email&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;tony.fast@gmail.com&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;}],&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;thumb&amp;quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;=&amp;gt;&amp;quot;https&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;//farm3.staticflickr.com/2689/12972815434_734b24ef1d_q.jpg&amp;quot;&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;




# Demo ``_data/jexample.json``

In this case, the file is [``_data/jexample.json``](https://github.com/Materials-Informatics-Lab/research-pages/blob/gh-pages/_data/jexample.json) and can be accessed with the
syntax ``{{site.data[&#39;jexample&#39;]}}``

**JSON Site Data**


&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-json&quot; data-lang=&quot;json&quot;&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;quot;gist&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https://gist.github.com/tonyfast/afafb762798e9204bac4&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;description&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Segmented $\\alpha&amp;amp;-$\\beta$ Titanium micrographs from Pete Collins at UNT.\n&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;volumefraction&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.60206419148851&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;tags&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Experiment1&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&amp;quot;AnalysisMagic&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;author&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[{&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;quot;name&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;Tony Fast&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;quot;email&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;tony.fast@gmail.com&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}],&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;units&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[{&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;quot;y&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;x&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}],&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;flickr&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;quot;set&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https://www.flickr.com/photos/tonyfast/sets/72157641959260094/&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;view&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https://www.flickr.com/photos/tonyfast/12972815434/in/set-72157641959260094&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;&amp;quot;thumb&amp;quot;&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&amp;quot;https://farm3.staticflickr.com/2689/12972815434_734b24ef1d_q.jpg&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


# Accessing Data Files Front Matter

Site variable names can be stored the post front-matter to access the data.  In this post the
following page variables were defined



&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-yaml&quot; data-lang=&quot;yaml&quot;&gt;&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;
&lt;span class=&quot;l-Scalar-Plain&quot;&gt;ydatafile&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;yexample&amp;quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# filename for yaml file&lt;/span&gt;
&lt;span class=&quot;l-Scalar-Plain&quot;&gt;jdatafile&lt;/span&gt;&lt;span class=&quot;p-Indicator&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;quot;jexample&amp;quot;&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# filename for json file&lt;/span&gt;
&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


The site data can be accessed as a hybrid of page and site data.

## YAML Data File from page variable

The variable ``{{site.data[page.ydatafile]}}`` yields:

```
{&quot;description&quot;=&gt;&quot;Segmented $\\alpha&amp;-$\\beta$ Titanium micrographs from Pete Collins at UNT.\n&quot;, &quot;gist&quot;=&gt;&quot;https://gist.github.com/tonyfast/afafb762798e9204bac4&quot;, &quot;volumefraction&quot;=&gt;0.60206419148851, &quot;tags&quot;=&gt;[&quot;Experiment1&quot;, &quot;AnalysisMagic&quot;], &quot;units&quot;=&gt;[{&quot;x&quot;=&gt;10, &quot;y&quot;=&gt;10}], &quot;flickr&quot;=&gt;{&quot;view&quot;=&gt;&quot;https://www.flickr.com/photos/tonyfast/12972815434/in/set-72157641959260094&quot;, &quot;set&quot;=&gt;&quot;https://www.flickr.com/photos/tonyfast/sets/72157641959260094/&quot;}, &quot;author&quot;=&gt;[{&quot;name&quot;=&gt;&quot;Tony Fast&quot;}, {&quot;email&quot;=&gt;&quot;tony.fast@gmail.com&quot;}], &quot;thumb&quot;=&gt;&quot;https://farm3.staticflickr.com/2689/12972815434_734b24ef1d_q.jpg&quot;}
```

## JSON Data File from page variable

The variable ``{{site.data[page.jdatafile]}}`` yields:

```
{&quot;gist&quot;=&gt;&quot;https://gist.github.com/tonyfast/afafb762798e9204bac4&quot;, &quot;description&quot;=&gt;&quot;Segmented $\\alpha&amp;-$\\beta$ Titanium micrographs from Pete Collins at UNT.\n&quot;, &quot;volumefraction&quot;=&gt;0.60206419148851, &quot;tags&quot;=&gt;[&quot;Experiment1&quot;, &quot;AnalysisMagic&quot;], &quot;author&quot;=&gt;[{&quot;name&quot;=&gt;&quot;Tony Fast&quot;}, {&quot;email&quot;=&gt;&quot;tony.fast@gmail.com&quot;}], &quot;units&quot;=&gt;[{&quot;y&quot;=&gt;10, &quot;x&quot;=&gt;10}], &quot;flickr&quot;=&gt;{&quot;set&quot;=&gt;&quot;https://www.flickr.com/photos/tonyfast/sets/72157641959260094/&quot;, &quot;view&quot;=&gt;&quot;https://www.flickr.com/photos/tonyfast/12972815434/in/set-72157641959260094&quot;}, &quot;thumb&quot;=&gt;&quot;https://farm3.staticflickr.com/2689/12972815434_734b24ef1d_q.jpg&quot;}
```
</description>
        <pubDate>Wed, 17 Sep 2014 00:00:00 +0000</pubDate>
        <link>Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Data-Pages-Demo.html</link>
        <guid isPermaLink="true">Materials-Informatics-Lab.github.io/research-pages/2014/09/17/Data-Pages-Demo.html</guid>
        
        
      </item>
    
      <item>
        <title>Hazelnut Dataset</title>
        <description>## Description

This Hazelnut dataset was created by Micro-CT and Segmented by some guy.

[Public Download on Dropbox](https://dl.dropboxusercontent.com/u/22455492/natural-3d/macadamia.mat)

## Dataset Preview

Please visit [This Flickr Set](https://www.flickr.com/photos/tonyfast/sets/72157647401996846/) to see a preview.

&lt;a class=&quot;embedly-card&quot; href=&quot;https://www.flickr.com/photos/tonyfast/sets/72157647401996846/&quot;&gt;crop_template&lt;/a&gt; &lt;script&gt;!function(a){var b=&quot;embedly-platform&quot;,c=&quot;script&quot;;if(!a.getElementById(b)){var d=a.createElement(c);d.id=b,d.src=(&quot;https:&quot;===document.location.protocol?&quot;https&quot;:&quot;http&quot;)+&quot;://cdn.embedly.com/widgets/platform.js&quot;;var e=document.getElementsByTagName(c)[0];e.parentNode.insertBefore(d,e)}}(document);&lt;/script&gt;


## Analytics

* **Volume Fraction** :: 0.883088032

## Source

This page was generated using the following gist.

&lt;script src=&quot;https://gist.github.com/page.gist.js&quot;&gt; &lt;/script&gt;
</description>
        <pubDate>Wed, 10 Sep 2014 00:00:00 +0000</pubDate>
        <link>Materials-Informatics-Lab.github.io/research-pages/2014/09/10/Hazelnut-Data.html</link>
        <guid isPermaLink="true">Materials-Informatics-Lab.github.io/research-pages/2014/09/10/Hazelnut-Data.html</guid>
        
        
      </item>
    
  </channel>
</rss>
