Latest Posts

CS479R - Week 3 2013-01-27

Week 3 covered the basics of jade, jquery and creating a bookmarklet using jade and jquery. This was all pretty straightforward.

You create the page that will hold the bookmarklet (so it's easy to add it to your browser). Using jade, end up with some code like this (index.jade):

!!! 5
html
  head
    script(src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js")
    script(src="loader.js")
  body
    a.js-bookmarklet-link(href="#itstoosoon") Craigslist Thumbnails

To get the html out of that, you need to compile it (make sure jade is installed).

jade index.jade

This will give you an index.html file. Opening this file in your browser will give you a very simple page with a single link that says "Craigslist Thumbnails" on it. That's the bookmarklet. But before this works, the bookmarklet needs the bootstraping script created. Here's loader.js:

[strict]:

CS479R - Week 2 2013-01-18

This week we went over getting ruhoh set up and installed on a web server. Ruhoh is a static blog framework. You create your content using Markdown and "compile" it and ruhoh provides you with all your content in a static format. The idea is that if you're just publishing content, why do you need the relatively large overhead of something like drupal or wordpress?

But ruhoh is not only about eschewing the tranditional ideas of what blog software should be. You also gain extreme portability as well. You can host your content anywhere with a webserver, including and basic shared host or even on github.

Since it uses markdown for publishing, it's very easy to pick up for most any modern content creator.

Getting ruhoh configured on a computer was probably more difficult than it needed to be. This is, perhaps, thanks to ruby's issue it has with various versions floating around. Once it's all together though, the commands are simple enough (if not immediately obvious) that it doesn't take too much effort to get your first post up.