Permalink
Browse files

Current weather for San Diego is Overcast (57F/14C) Humidity: 73%

Current time zone is US/Pacific
Last 3 Twitter messages from Gina Trapani:
1) @emilsit yes it is. Term inspired by this: http://bit.ly/ydMcE
2) @emilsit  http://bit.ly/Hb4HA ha, TweeMI is almost a year old now!  :)
3) @feliciaday Ah, my phone-hating friend. Trust me: the learning curve is SO worth it.
Last 3 entries from ginatrapani's Recently Played Tracks:
A-Punk ? Vampire Weekend
http://www.last.fm/music/A-Punk/_/Vampire+Weekend
Joshua Radros ? The Fear You Won't Fall
http://www.last.fm/music/Joshua+Radros/_/The+Fear+You+Won%27t+Fall
Kings of Convenience ? I'd Rather Dance With You
http://www.last.fm/music/Kings+of+Convenience/_/I%27d+Rather+Dance+With+You
  • Loading branch information...
1 parent fb2ed08 commit 2be2899867b93870f8774c78cf332a883aebd8cf @ginatrapani committed Apr 29, 2009
Showing with 18 additions and 25 deletions.
  1. +18 −25 flashbake_automates_version_control.txt
@@ -14,7 +14,10 @@ As a programmer-turned-writer, Flashbake tickles me pink, because it makes a pow
What you get is a database of file versions over time, with notes attached that tell you what you were doing, what it was like outside, and what you were listening to at the time. I used Flashbake as I wrote this very article, and pushed my local Git repository to GitHub, a free Git host, to show off Flashbake in action.
-Check out a history of changes to this post over time: <a href="http://github.com/ginatrapani/write/commits/master/flashbake_automates_version_control.txt">flashbake_automates_version_control.txt / Commit History</a>. Click on the "Commit" link to see a color-coded file diff between that version and the earlier one, like this:
+Here's what it looks like:
+<img src="http://cache.gawker.com/assets/images/lifehacker/2009/04/flashbake-commit-hist.png" width="945" height="509" /><br clear="all">
+
+Check out a history of changes to this post over time for yourself: <a href="http://github.com/ginatrapani/write/commits/master/flashbake_automates_version_control.txt">flashbake_automates_version_control.txt / Commit History</a>. Click on the "Commit" link to see a color-coded file diff between that version and the earlier one, like this:
<img src="http://cache.gawker.com/assets/images/lifehacker/2009/04/flashbake-colored-diff.png" width="620" height="527" /><br clear="all">
@@ -46,7 +49,7 @@ flashbake_automates_version_control.txt
(Flashbake ignores the first line, which starts with the #, because it's a comment.)
-Now we're almost ready to run Flashbake. First we've got to configure a plug-in or two.
+Now we're almost ready to run Flashbake. But first we've got to configure a plug-in or two.
<h3 style="font-size: 120%; margin-top: 20px;">Shake and Flashbake Plug-ins</h3> Flashbake plug-ins are the secret sauce that make it a worthy interface to Git. Plug-ins automatically add information to each version's commit notes, like feed items, the weather, and timezone.
@@ -77,39 +80,29 @@ flashbake_automates_version_control.txt
Note that the order in which you list the plug-ins matters. I switched weather and timezone's position to <a href="http://github.com/ginatrapani/write/commits/master/">see the weather at the top of each commit message in GitHub's version list, here</a>.
-Now you're ready to run Flashbake. To try a "dry run" of Flashbake and see what it will commit without actually performing the commit, <code>cd ..</code> to your project directory's parent and run:
-<blockquote><pre>flashbake -d write</pre></blockquote>
+Now you're ready to run Flashbake. To try a "dry run" of Flashbake and see what it will commit without actually performing the commit, <code>cd ..</code> to your project directory's parent and run the following (Where "your_project_directory" is the name of your project directory.):
+<blockquote><pre>flashbake -d your_project_directory</pre></blockquote>
-(Where "write" is the name of your project directory).
+ You can even add a <code>-v</code> switch in your command to get extra-verbose output for debugging.
You'll get output similar to this. Tweak your <code>.flashbake</code> file until the output is to your liking.
+<img src="http://cache.gawker.com/assets/images/lifehacker/2009/04/flashbakeoutput01.png" width="976" height="465" /><br clear="all">
+Once you've got Flashbake's plug-ins working the way you want, simply run the following to save the current state of the file as a version:
-<h3 style="font-size: 120%; margin-top: 20px;">Publish Your Flashbake Git Repository to GitHub</h3>
-
-How to make local commits automatically push to remote host (like GitHub)
-http://snippets.dzone.com/posts/show/6346
-
-
-Mention TWiT episode
-
-
-<i><strong><a href="http://ginatrapani.org">Gina Trapani</a></strong>, Lifehacker's founding editor, loves a good free Android app. Her weekly feature, <a href="http://lifehacker.com/tag/smarterware/">Smarterware</a>, appears every Wednesday on Lifehacker. Subscribe to the <a href="http://lifehacker.com/tag/smarterware/index.xml">Smarterware tag feed</a> to get new installments in your newsreader.</i>
-
-
-Tags:
-"Version Control" Downloads Writing "Command Line" "Plain Text" Feature Smarterware bigpic=true digg=true Top Git
+<blockquote><pre>flashbake your_project_directory</pre></blockquote>
+To make Flashbake run automatically in the background, use your system's cron scheduler. Here's the <a href="http://wiki.github.com/commandline/flashbake/running">full list of ways to run Flashbake</a>.
-###
+<h3 style="font-size: 120%; margin-top: 20px;">Publish Your Flashbake Git Repository to GitHub</h3> Now you've got a local Git repository of file versions. Great, right? Well, not if you can use 'em easily. Git newbs don't know all the commands to search and diff between versions, but luckily a pretty web hosting solution for Git means you don't have to know the commands. I published my local Git repository to <a href="http://github.com">GitHub</a> to show off my file changes in this post. Register for a free account at GitHub and create a new repository there. Then, push your local repository to GitHub for cloud backup and a good-looking web interface to your project. Use GitHub's setup instructions to do just that. After I created a repository on GitHub called write, GitHub told me to run the following commands:
+<img src="http://cache.gawker.com/assets/images/lifehacker/2009/04/github-setup01.png" width="591" height="113" /><br clear="all">
-Throwaway Text:
-<h3 style="font-size: 120%; margin-top: 20px;">What's Flashbake?</h3>
+Where "existing_git_repo" is your project directory. The <code>git push origin master</code> command is the magical command that pushes your local files to GitHub. By default, you have to do that remote push by hand, but if you're automating Flashbake's runs, you can make local commits automatically push to a remote host (like GitHub) using <a href="http://snippets.dzone.com/posts/show/6346">this handy command</a>.
-Git is free software that programmers use to track and collaborate on code as it changes over time, created by Linus Torvalds, the gentleman who brought you the Linux operating system. Git, in this humble programmer's opinion, is nothing short of the cat's pajamas. But there's a learning curve, and lots of git commands to master before you can really get good use out of it. Flashbake aims to take all the learning out and give you all the benefits of Git.
+Flashbake is still a very young mechanism for driving Git, and more plug-ins and configuration options are becoming available, so we've only scratched the surface here. But adopting programmer version control for writing, lists, or notes is something more and more tech-savvy folks will do going forward. Thanks to Leo Laporte and Cory Doctorow for making me aware of Flashbake in this <a href="http://twit.tv/183">episode of This Week in Tech</a>.
-Flashbake is a single command that saves snapshots of frequently-changing text files over time to a Git repository with little or no intervention. Flashbake also offers plug-ins that can automatically add ambient information about your creative process to the notes associated with each version (in programmer-speak, the commit message). What kind of ambient information, you ask? Well, things like your current timezone, system uptime, the weather in your location, your Twitter status, the last few songs you listened to or blog posts you authored ()
+Have you given Flashbake, Git, or GitHub a try? Post links to your projects and let us know how you like it in the comments.
-left brain/right brain--get nerdy with your creative writing
+<i><strong><a href="http://ginatrapani.org">Gina Trapani</a></strong>, Lifehacker's founding editor, loves using Git for writing as well as coding. Her weekly feature, <a href="http://lifehacker.com/tag/smarterware/">Smarterware</a>, appears every Wednesday on Lifehacker. Subscribe to the <a href="http://lifehacker.com/tag/smarterware/index.xml">Smarterware tag feed</a> to get new installments in your newsreader.</i>

0 comments on commit 2be2899

Please sign in to comment.