Permalink
Browse files

Merge branch 'master' of github.com:andrewpbrett/andrewpbrett.github.com

  • Loading branch information...
2 parents eeaf661 + 67fbc4f commit 5d9f3001caaf6c561fab1a0190a945c4a29eb8e5 @andrewpbrett committed Mar 15, 2012
Showing with 135 additions and 78 deletions.
  1. +1 −0 CNAME
  2. +28 −0 Rakefile
  3. +6 −6 _posts/2011-10-30-startup-school-2011.md
  4. +1 −1 _posts/2012-02-24-moon-over-sutro.md
  5. +0 −15 _posts/2012-02-29-jekyll-dropbox-and-mongo-oh-my.md
  6. +23 −0 _posts/2012-02-29-new-home-new-tools-dropbox-jekyll-redis.md
  7. +1 −1 _posts/2012-03-01-photos.html
  8. +11 −0 _posts/2012-03-11-frighteningly-ambitious.md
  9. +11 −0 _posts/2012-03-14-hacking-is-important.md
  10. +1 −1 _posts/2012-3-11-2-jpg.md
  11. +1 −1 _posts/2012-3-11-andydog-jpg.md
  12. +1 −1 _posts/2012-3-11-apples1-jpg.md
  13. +1 −1 _posts/2012-3-11-brooklyn-bridge-jpg.md
  14. +1 −1 _posts/2012-3-11-c19-rules3-jpg.md
  15. +1 −1 _posts/2012-3-11-christmas-2007-jpeg.md
  16. +1 −1 _posts/2012-3-11-dancing-2-jpg.md
  17. +1 −1 _posts/2012-3-11-def412062f7511e19896123138142014-7-jpg.md
  18. +1 −1 _posts/2012-3-11-disrupt-jpg.md
  19. +1 −1 _posts/2012-3-11-dscn0110-jpg.md
  20. +1 −1 _posts/2012-3-11-dscn0921-jpg-jpg.md
  21. +1 −1 _posts/2012-3-11-dscn1159-jpg-jpg.md
  22. +1 −1 _posts/2012-3-11-dscn1354-jpg-jpg.md
  23. +1 −1 _posts/2012-3-11-grace-wedding-jpg.md
  24. +1 −1 _posts/2012-3-11-grandcentral-jpg.md
  25. +1 −1 _posts/2012-3-11-imag0189-jpg.md
  26. +1 −1 _posts/2012-3-11-imag0254-jpg.md
  27. +1 −1 _posts/2012-3-11-imag0350-jpg.md
  28. +1 −1 _posts/2012-3-11-img-0002-jpg.md
  29. +1 −1 _posts/2012-3-11-img-0018-jpg.md
  30. +1 −1 _posts/2012-3-11-img-0031-jpg.md
  31. +1 −1 _posts/2012-3-11-img-0056-jpg.md
  32. +1 −1 _posts/2012-3-11-img-0433-jpg.md
  33. +1 −1 _posts/2012-3-11-img-0443-jpg.md
  34. +1 −1 _posts/2012-3-11-img-0652-jpg.md
  35. +1 −1 _posts/2012-3-11-img-0839-jpg.md
  36. +1 −1 _posts/2012-3-11-img-3531-jpg-jpg.md
  37. +1 −1 _posts/2012-3-11-img-7220-jpg-jpg.md
  38. +1 −1 _posts/2012-3-11-lh101-jpeg.md
  39. +1 −1 _posts/2012-3-11-marathon-finish-jpg.md
  40. +1 −1 _posts/2012-3-11-moonrise-jpg.md
  41. +1 −1 _posts/2012-3-11-mudder-jpg.md
  42. +1 −1 _posts/2012-3-11-n1103400-32361460-4645-jpg.md
  43. +1 −1 _posts/2012-3-11-n1107628-32355597-4428-jpg.md
  44. +1 −1 _posts/2012-3-11-n1107628-32355603-6407-jpg.md
  45. +1 −1 _posts/2012-3-11-n1107628-32355629-4643-jpg.md
  46. +1 −1 _posts/2012-3-11-penn-station-tracks-jpg.md
  47. +1 −1 _posts/2012-3-11-photo-dec-25-13-06-36-hdr-jpg.md
  48. +1 −1 _posts/2012-3-11-photo-feb-17-22-07-22-hdr-jpg.md
  49. +1 −1 _posts/2012-3-11-photo-mar-08-17-52-19-jpg.md
  50. +1 −1 _posts/2012-3-11-port-of-san-francisco-jpg.md
  51. +1 −1 _posts/2012-3-11-post-marathon-jpg.md
  52. +1 −1 _posts/2012-3-11-pre-marathon-jpg.md
  53. +1 −1 _posts/2012-3-11-quinzee-jpg.md
  54. +1 −1 _posts/2012-3-11-scoreboard-jpg-jpg.md
  55. +1 −1 _posts/2012-3-11-steve-jpg.md
  56. +1 −1 _posts/2012-3-11-sunrise-jpg.md
  57. +1 −1 _posts/2012-3-11-sunset-jpg.md
  58. +1 −1 _posts/2012-3-11-tess-wedding-jpg.md
  59. +1 −1 _posts/2012-3-11-thanksgiving-2011-jpg.md
  60. +1 −1 _posts/2012-3-11-trail3-jpg.md
  61. 0 _posts/2012-03-01-bookmarks.html → bookmarks.html
  62. +1 −1 css/screen.css
  63. +1 −3 index.html
View
1 CNAME
@@ -0,0 +1 @@
+andybrett.com
View
@@ -0,0 +1,28 @@
+desc 'create new post or bookmark. args: type (post, bookmark), title, slug'
+# rake new type=(bit|post) future=0 title="New post title goes here" slug="slug-override-title"
+task :new do
+ type = ENV["type"] || "bookmark"
+ title = ENV["title"] || "New Title"
+ external_link = ENV["link"] || "LINK"
+ slug = title.gsub(' ','-').downcase
+ slug = ENV["slug"].gsub(' ','-').downcase if ENV["slug"]
+
+ filename = "#{Time.new.strftime('%Y-%m-%d')}-#{slug}.md"
+
+ path = File.join("_posts", filename)
+ post = <<-HTML
+---
+type: TYPE
+title: "TITLE"
+layout: main
+external_link: LINK
+---
+
+HTML
+ post.gsub!('TITLE', title).gsub!('TYPE', type).gsub!('LINK', external_link)
+ File.open(path, 'w') do |file|
+ file.puts post
+ end
+ puts "new #{type} generated in #{path}"
+ system "open -a textmate #{path}"
+end
@@ -1,8 +1,8 @@
----
-type: post
-layout: main
-title: "Do Not, Under Any Circumstances, Start A Startup: Or, What I Learned At Startup School 2011"
----
+---
+type: post
+layout: main
+title: "Do Not, Under Any Circumstances, Start A Startup: Or, What I Learned At Startup School 2011"
+---
There were actually two distinct themes at this year's edition of Startup
School, but the first makes for a better title. This is *not* a recap of
everything that was said - for that, I believe you can watch the individual
@@ -13,7 +13,7 @@ videos on [justin.tv](http://www.justin.tv/startupschool) eventually.
This is, of course, tongue in cheek. But more than half the speakers said, in
one form or another, do not start a startup. The summary went something like:
-_ Don't start a company just for the sake of starting a company. Don't start a
+_Don't start a company just for the sake of starting a company. Don't start a
company because it's cool. Don't start one because you think it's going to
turn out like it does in the fictional movies, because it won't - [death is
the default for startups](http://www.paulgraham.com/hubs.html). Don't start a
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/Photo%20Feb%2023%2C%2019%2007%2034.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/Photo%20Feb%2023%2C%2019%2007%2034.jpg
caption: "Moon over Sutro"
@@ -1,15 +0,0 @@
----
-type: post
-layout: main
-title: Jekyll, Dropbox, and Mongo, Oh My
----
-I'm thinking about migrating my personal site to Jekyll/GitHub. For a while I've self-hosted and used my personal site as a sandbox for trying out interesting new technologies. The latter won't be changing, but I've come to realize that while a [dorm room][1] is cool and all, there's plenty of other places for experimenting. Plus the mini-fridge is really starting to smell.
-
-More to be committed (!) soon.
-
-Big appeal: Markdown. I was really sick of writing markup every time I wanted to post a link or write something.
-
-Rails is actually not the right tool for a blog. Or at least, a relational-database-backed Rails app is not the right tool for building a blog.
-
-[1]: http://blog.pinboard.in/2012/01/the_five_stages_of_hosting/ "The Five Stages of Hosting"
-[2]: http://www.imdb.com/title/tt0061722/quotes?qt=qt0282092 "IMDB: The Graduate"
@@ -0,0 +1,23 @@
+---
+type: post
+layout: main
+title: "New Home, New Tools: Dropbox, Jekyll, Redis"
+---
+Updated Sunday, March 11, 2012
+
+A couple weeks ago I started toying around with [Jekyll][1], an open-source, "blog-aware" static site generator. I really liked the idea of writing post content in Markdown with TextMate, and storing it in a git repository instead of a database. I got my old posts imported and [transformed from html to Markdown][2], and pushed the site to GitHub. However, I also wanted to have images as part of the site, which seemed outside the scope of what Jekyll was designed for, so I waited to actually make the switch.
+
+To be honest, though, the image capture/storage experience on my previous hand-rolled solution was never really all that great. It was cumbersome to upload photos on mobile, and you couldn't see/manipulate previously uploaded images very well.
+
+This got me thinking - what if I could just drop an image into a public Dropbox folder and have that publish it to my site? Dropbox has already made it easy to upload photos via their mobile app, so no need to reinvent the wheel there. Just like Jekyll has made it really easy to create and publish words, using Dropbox would make it really easy to publish photos.
+
+The ideal solution would really be if Dropbox provided a way to just embed a photo gallery from a public folder. But alas - even with their [shiny new release][3] this week, there isn't an easy way to do this.
+
+So this morning I set out to kludge together a solution of my own. Using the ruby dropbox SDK gem, I have a script that pings Dropbox to see if any photos have been added to the "Public/Photos" folder (first checking the returned hash from Dropbox, and then checking each path for uniqueness against a local redis instance). If it finds anything new, it grabs the public link and uses that to create a new post in my Jekyll install. Then, using the ruby-git gem, it commits the new file and pushes to GitHub. When GitHub receives the push it regenerates the site with the new photo page.
+
+Pretty Rube-Goldbergian if I say so myself. For all the gory details, or if you'd like to try this yourself, the [code is on GitHub][4]. I'll be making various improvements as I have time. Pull requests welcome.
+
+[1]: https://github.com/mojombo/jekyll
+[2]: https://github.com/andrewpbrett/jekyll_to_markdown
+[3]: http://blog.dropbox.com/?p=1005
+[4]: https://github.com/andrewpbrett/dropbox_to_jekyll
@@ -4,7 +4,7 @@
---
<div id="photos">
{% for post in site.posts %}
- {% if post.layout == "photo" %}
+ {% if post.type == "photo" %}
<div class="photo">
<a class="gallery_image" href="{{ post.source_url }}" rel="gallery" data-caption="{{ post.caption }}">
<img src="{{ post.thumbnail_url }}" />
@@ -0,0 +1,11 @@
+---
+type: bookmark
+layout: main
+title: "Frighteningly Ambitious Startup Ideas"
+external_link: http://www.paulgraham.com/ambitious.html
+---
+I might be the only one, but there's usually at least one quote in a Paul Graham essay that makes me laugh out loud. To wit:
+
+>Now [Google's] results seem inspired by the Scientologist principle that what's true is what's true for you. And the pages don't have the clean, sparse feel they used to. Google search results used to look like the output of a Unix utility. Now if I accidentally put the cursor in the wrong place, anything might happen.
+
+The rest of the essay is brilliant as usual. I won't try to distill it further.
@@ -0,0 +1,11 @@
+---
+type: bookmark
+title: "Hacking is Important"
+layout: main
+external_link: "http://www.randsinrepose.com/archives/2012/03/13/hacking_is_important.html"
+---
+>Hackers are allergic to process not because they don't understand the value; they're allergic to it because it violates their core values. These values are well documented in Zuckerberg's letter: "Done is better than perfect", "Code wins arguments", and that "Hacker culture is extremely open and meritocratic". The folks who create process care about control, and they use politics to shape that control and to influence communications, and if there is ever a sentence that would cause a hacker to stand up and throw his or her keyboard at the screen, it's the first half of this one.
+
+This is one of the better summaries of the hacker Weltanschauung, and how it contrasts with the rest of the world, that I've read in a while.
+
+Code. Wins. Arguments.
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/2.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/2.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/andydog.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/andydog.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/Apples1.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/Apples1.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/Brooklyn_Bridge.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/Brooklyn_Bridge.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/c19-rules3.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/c19-rules3.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/christmas-2007.jpeg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/christmas-2007.jpeg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/Dancing(2).jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/Dancing(2).jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/def412062f7511e19896123138142014_7.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/def412062f7511e19896123138142014_7.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/disrupt.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/disrupt.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/DSCN0110.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/DSCN0110.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/DSCN0921.JPG.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/DSCN0921.JPG.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/DSCN1159.JPG.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/DSCN1159.JPG.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/DSCN1354.JPG.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/DSCN1354.JPG.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/grace-wedding.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/grace-wedding.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/grandcentral.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/grandcentral.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMAG0189.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMAG0189.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMAG0254.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMAG0254.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMAG0350.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMAG0350.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0002.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0002.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0018.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0018.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0031.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0031.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0056.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0056.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0433.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0433.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0443.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0443.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0652.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0652.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_0839.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_0839.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_3531_jpg.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_3531_jpg.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/IMG_7220.JPG.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/IMG_7220.JPG.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/LH101.jpeg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/LH101.jpeg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/marathon-finish.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/marathon-finish.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/moonrise.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/moonrise.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/mudder.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/mudder.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/n1103400_32361460_4645.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/n1103400_32361460_4645.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/n1107628_32355597_4428.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/n1107628_32355597_4428.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/n1107628_32355603_6407.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/n1107628_32355603_6407.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/n1107628_32355629_4643.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/n1107628_32355629_4643.jpg
caption: ""
@@ -1,5 +1,5 @@
---
-layout: photo
+type: photo
source_url: http://dl.dropbox.com/u/256663/Photos/Penn_Station_tracks.jpg
thumbnail_url: http://dl.dropbox.com/u/256663/Photos/Thumbnails/Penn_Station_tracks.jpg
caption: ""
Oops, something went wrong.

0 comments on commit 5d9f300

Please sign in to comment.