Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding new posts and modifying some elements of the design
  • Loading branch information
hepplerj committed Apr 26, 2012
1 parent 66449ee commit 8cc2479
Show file tree
Hide file tree
Showing 11 changed files with 179 additions and 63 deletions.
27 changes: 19 additions & 8 deletions Rakefile
Expand Up @@ -2,6 +2,13 @@
# Modified from Jeff McFadden:
# http://jeffmcfadden.com/blog/2011/04/13/rsync-your-jekyll/

## -- Config -- ##
source_dir = "_site"
draft_dir = "_drafts"
posts_dir = "_posts"
server_port = "4000"

## -- Working with Jekyll -- ##
desc 'default: list available rake tasks'
task :default do
puts 'Try one of these specific tasks:'
Expand All @@ -17,25 +24,29 @@ task :deploy do
puts 'Done!'
end

desc 'running Jekyll with --server --auto options'
task :dev do
puts 'Previewing the site with a local server.'
puts 'Use CTRL+C to interrupt.'
system('jekyll --auto --server --base-url / --url /')
desc "watch the site and regenerate when it changes"
task :watch do
puts "Starting to watch source with Jekyll."
system "jekyll --auto"
end

desc "preview site in browser with localhost:4000"
task :preview do
puts "Starting site preview in http://localhost:4000."
system "jekyll --server"
end

desc "give title as argument and create new post title"
# usage rake write["Post Title Goes Here",category]
# usage rake write["Post Title Goes Here"]
# category is optional
task :write, [:title, :category] do |t, args|
filename = "#{Time.now.strftime('%Y-%m-%d')}-#{args.title.gsub(/\s/, '_').downcase}.markdown"
filename = "#{Time.now.strftime('%Y-%m-%d')}-#{args.title.gsub(/\s/, '-').downcase}.md"
path = File.join("_posts", filename)
if File.exist? path; raise RuntimeError.new("Won't clobber #{path}"); end
File.open(path, 'w') do |file|
file.write <<-EOS
---
layout: post
category: #{args.category}
title: #{args.title}
date: #{Time.now.strftime('%Y-%m-%d %k:%M:%S')}
---
Expand Down
17 changes: 9 additions & 8 deletions _layouts/default.html
@@ -1,16 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>{{ page.title }}</title> <meta name="author" content="Jason Heppler" />

<link href='http://fonts.googleapis.com/css?family=Signika:300' rel='stylesheet' type='text/css'>
<!-- Google fonts -->
<link href='http://fonts.googleapis.com/css?family=Oxygen|Arvo' rel='stylesheet' type='text/css'>


<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>{{ page.title }}</title> <meta name="author" content="Jason Heppler" />

<!-- syntax highlighting CSS -->
<!-- Syntax highlighting CSS -->
<link rel="stylesheet" href="/css/syntax.css" type="text/css" />

<!-- Homepage CSS -->
<!-- Main CSS -->
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen, projection" />

<!-- Google Analytics -->
Expand All @@ -32,8 +31,10 @@
<body>

<div class="blog_header">

<p><a href="http://jasonheppler.org">jasonheppler.org</a><br> This the personal weblog of <a href="http://jasonheppler.org/about.html">Jason Heppler</a>, writer, historian, technologist, and coffee enthusiast.</p>
<p>
<a class="name" href="http://jasonheppler.org">jasonheppler.org</a><br/>
I'm <a href="http://jasonheppler.org/about.html">Jason Heppler</a>, historian, hacker-scholar, and coffee enthusiast.
</p>

</div>

Expand Down
Binary file modified _posts/.DS_Store
Binary file not shown.
Expand Up @@ -59,7 +59,7 @@ Note the <code>+=</code> above. This symbol is called an <strong>operator</stron
<td>!=</td>
<td>Not equal to operator.</td>
</tr>
</table>
</table>

<h4>if . . . elsif . . . else</h4>

Expand Down
59 changes: 59 additions & 0 deletions _posts/2011-09-28-spatial-humanities.md
@@ -0,0 +1,59 @@
---
layout: post
title: "Spatial Humanities and Visual Narratives"
date: Wed Sep 28 10:10:25 -0500 2011
tags: UNL-DHS Spatial-Humanities
category: Digital-Humanities
---

*[This is a reading reflection written for HIST946: Digital Humanities with
Professor William Thomas during the Fall 2011 semester. This week's readings
were Richard White, "[What is Spatial History?](http://www.stanford.edu/group/spatialhistory/cgi-bin/site/pub.php?id=29)," Philip Ethington, "[Los Angeles
and the Problem of Urban Historical Knowledge](http://www.usc.edu/dept/LAS/history/historylab/LAPUHK/)," and David Staley, "[Historical
Visualizations](http://quod.lib.umich.edu/j/jahc/3310410.0003.304?rgn=main;view=fulltext)". You can find related posts [here](http://jasonheppler.org/the-digital-humanities-seminar.html).]*

Computer visualizations offer new ways for humanist scholars to reconfigure the notion of
narrative As David Staley notes, visualizations have the ability to depict
complex information into spatial form. Historical visualizations, then,
represent historical information in a visual or spatial manner rather than
verbal or linear. These methods begin to give form to new styles of narrative,
or perhaps answer [Orville Vernon Burton's call](http://chnm.gmu.edu/essays-on-history-new-media/essays/?essayid=30) for models of scholarship beyond
the written monograph.

Burton writes that "history, similar to all disciplines, is badly in need of
models beyond the monograph for the demonstration of excellence, and where the
scholarship itself is in need of new genres and new strategies for reaching new
audiences." The visualization of humanistic information and data may represent one
new method for scholars to communicate their findings and research their topics
with the aid of computers.

New ideas about the intersections between geography, history, and theory along
with technological methods and techniques points towards methods humanist scholars
can utilize in studying the intersections between space and place. Humanists now
conceive of space more acutely, fully aware of how politics and society can
influence both physical and imaginative space. As Richard White notes, space is
not simply natural geography or a container to be filled with history. Instead
of an empty vessel awaiting historical action, space is a historical actor where
stories occur over geography and history (space and time). Space, then, is
a site of continual conflict shaped by struggles over power and definition.

What this all means for the humanities is a reconsideration of how technologies
like Geographic Information Systems can be applied to humanistic data. There are
various ways of doing so. For example, scholars can apply GIS to spatial
infrastructure, what Henri Lefebvre called "spatial practice," by mapping
physical spaces from county boundaries to transnational railroad lines. The
greater challenge is how to map relational space. GIS emphasizes the absolute
space (inches, feet, miles) but can do little to represent how space was
constructed. But this way of thinking about space opens up new lines of inquiry
about the connections between culture and geography. Philip Ethington asks
scholars to think more broadly about definitions of space. In his example of Los
Angeles, the city can exist as the Consolidated Metropolitan Area of the US
Census Bureau, or the City of Los Angeles, or popular definitions of the city in
sources like *Baywatch* or *Blade Runner*. How do we reconcile the technology of
GIS with its emphasis on the given-ness of space with the constructed-ness of
space?

Especially significant in spatial humanities is the reliance on mapping not as
a byproduct of research, but integrated deeply throughout the research process.
Spatial humanities offers new ways to construct narratives about historical
events.
13 changes: 13 additions & 0 deletions _posts/2011-10-06-thanks-steve.md
@@ -0,0 +1,13 @@
---
layout: post
category: History
title: "Thanks, Steve"
date: Thu Oct 06 07:56:58 -0500 2011
tags: Steve-Jobs Apple
---

![Insanely Great](http://jasonheppler.org/images/great.jpg "Insanely Great")

> “Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma, which is living with the results of other people’s thinking. Don’t let the noise of others’ opinions drown out your own inner voice, heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.”
[Steve Jobs](http://www.jasonheppler.org/go-be-awesome.html)
1 change: 0 additions & 1 deletion _posts/2012-02-15-the_french_press_method.markdown
@@ -1,6 +1,5 @@
---
layout: post
category: Lifestyle
title: The French Press Method
date: 2012-02-15 23:01:26
---
Expand Down
36 changes: 36 additions & 0 deletions _posts/2012-04-24-a-simple-ruby-ngram-generator.md
@@ -0,0 +1,36 @@
---
layout: post
title: A Simple Ruby NGram Generator
date: 2012-04-24 15:45:43
---

I was playing around with Ruby the other night and wrote a simple n-gram generator. In case anyone is interested, here is the script:

{% highlight ruby %}
#!/usr/bin/env ruby -w
# r_ngram.rb
# Generate a simple bi- and tri-gram, prints to STDOUT
# Usage: ruby ngram.rb file.txt
# To save the output to a file: ruby ngram.rb file.txt > output.txt

$words = File.read(ARGV[0]).downcase.scan(/[a-z]+/)

bi_grams = Hash.new(0)
tri_grams = Hash.new(0)

num = $words.length - 2
num.times {|i|
bi = $words[i] + ' ' + $words[i+1]
tri = bi + ' ' + $words[i+2]
bi_grams[bi] += 1
tri_grams[tri] += 1
}

puts "## -- bi-grams -- ##"
bg = bi_grams.sort{|a,b| b[1] <=> a[1]}
(num / 10).times {|i| puts "#{bg[i][0]} : #{bg[i][1]}"}
puts "\n"
puts "## -- tri-grams -- ##"
tg = tri_grams.sort{|a,b| b[1] <=> a[1]}
(num / 10).times {|i| puts "#{tg[i][0]} : #{tg[i][1]}"}
{% endhighlight %}
9 changes: 9 additions & 0 deletions _posts/2012-04-25-adam-lisagors-aeropress-tribute.md
@@ -0,0 +1,9 @@
---
layout: post
title: Adam Lisagor's AeroPress Tribute
date: 2012-04-25 21:44:48
---

<iframe src="http://player.vimeo.com/video/40980282" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>

I'm a [fan of the French press](http://www.jasonheppler.org/2012/02/15/the_french_press_method.html), but I really would like to try out the AeroPress someday soon.
64 changes: 21 additions & 43 deletions css/screen.css
Expand Up @@ -9,33 +9,19 @@
html, body {
height: 100%;
}
/*
body {
color: #333;
font-family: franklin-gothic-urw,helvetica,arial,sans-serif;
font-weight: 400;
font-size: 15px;
line-height: 1.45em;
}
body {
font: 13px/1.5 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
}
*/

body {
color: #333;
background: white;
margin: 0;
font-size: 100%;
font-family: "Helvetica Neue", Helvetica, sans-serif; /*"Signika", Cambria, Georgia, serif; */
font-family: "Oxygen", sans-serif;
line-height: 130% !important;
}

h1, h2, h3, h4, h5 {
font-weight: 700;
font-style: normal;
/*text-transform: uppercase; */
line-height: .8em;
margin: 0;
padding: 0;
Expand All @@ -53,16 +39,6 @@ h2 {
font-weight: normal;
}

/*
h3 {
padding: 0 0 1.5em 0;
margin: 0 0 1.25em 0;
font-size: 15px;
font-weight: 400;
text-transform: none;
border-bottom: solid #ccc 1px;
}
*/
p {
margin: 0;
padding: 0 0 1em 0;
Expand All @@ -74,7 +50,7 @@ a {
}

a:hover {
color: #900;
color: #b83000;
text-decoration: none;
}

Expand Down Expand Up @@ -199,18 +175,6 @@ ul.posts {
text-decoration: underline;
color: #222;
}
/*
#siteDesc {
font-size: 0.9em;
margin: 20px auto 25px;
width: 400px;
padding: 11px 0 13px;
color: #555;
font-style: italic;
border-top: 1px solid #999;
border-bottom: 1px solid #999;
}
*/

sup {
vertical-align: super;
Expand Down Expand Up @@ -728,30 +692,43 @@ li.archive_list {
}

.blog_header {
/*
border-color: #ccc;
border-width: 0px 0px 1px;
border-width: 0px 0px 1px; */
}

.blog_header {
border-top: 3px solid #08C;
background-color: #ebebeb;
height: 120px;
margin-bottom: -56px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
/*
color: #666;
background-color: #eee;
border-style: solid;
*/
}

.blog_header p {
width: 64em;
width: 44em;
margin: 0px auto;
font-size: 14px;
padding-top: 5px;
padding-top: 62px;
}

.blog_header a:link, #blog_header a:visited, #blog_header a:hover, #blog_header a:active {
color: #666;
font-weight: 700;
text-decoration: none;
padding: 0px;
}

.blog_header a.name {
font-size: 26px;
}

/*****************************************************************************/
/*
/* Posts
Expand All @@ -764,14 +741,15 @@ li.archive_list {

/* standard */

pre, code {
pre, code {
font: 13px Consolas,'Andale Mono',Monaco,Courier,'Courier New',Verdana,sans-serif;
}

pre {
border: 1px solid #ddd;
background-color: #eef;
padding: 0 .4em;
overflow-x: scroll;
}

code {
Expand Down
14 changes: 12 additions & 2 deletions index.html
Expand Up @@ -7,7 +7,7 @@
priority: 1.0
---

{% for post in site.posts offset: 0 limit: 8 %}
{% for post in site.posts offset: 0 limit: 3 %}
<div id="postmeta">
<h2><a href="http://jasonheppler.org{{ post.url }}">{{ post.title }}</a></h2>
<p><time>{{ post.date | date: "%e" | ordinalize }} {{post.date | date: "%B"}} {{post.date | date: "%Y"}} • <a href="http://jasonheppler.org{{ post.url }}">Permalink</a></time></p>
Expand All @@ -18,4 +18,14 @@ <h2><a href="http://jasonheppler.org{{ post.url }}">{{ post.title }}</a></h2>
<div id="post_division">
</div>

{% endfor %}
{% endfor %}


<h2>More Recent Posts</h2>
<ul>
{% for post in site.posts offset: 3 limit: 4 %}
<li>
<span>{{ post.date | date_to_string }}</span> &mdash; <a href="{{base.site_url}}{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>

0 comments on commit 8cc2479

Please sign in to comment.