ToDoApp

I made a thing. It started out as an assignment and a learning experience, using JavaScript for the whole stack. Then I learned that it was taking too long. Thus, a classic Ruby on Rails application with some AJAX-y goodness thrown in. Perhaps my favorite features are the differentiation between to-do items and those overdue; and the inclusion of Action Mailer to send a daily agenda. a basic todo list that let’s you know when you’ve failed as a person daily agendas delivered early every morning! [goto](http://arcane-ridge-2246.herokuapp.com/)

Feb 25, 2014 · Christopher Boette

Running A Sinatra Console

mikeebert: For the past couple of months I’ve been searching for (and bemoaning the lack of) a proper ‘console’ command in Sinatra to access my data. Rails has its aptly named rails console command that allows you to quickly see things like User.all or User.last—but despite my best Googling, I’d found no… [goto](http://mikeebert.tumblr.com/post/29941784481/running-a-sinatra-console)

Feb 25, 2014 · Christopher Boette

Photo for 2014-02-15

slavin: Hi Google. Can we agree that “definitions” should be clearly separable from “sponsored results” and that a sponsored definition is, basically, the evil that you promised not to do?

Feb 15, 2014 · Christopher Boette

Node.js errors need some work.

Writing this in routes/api.js… exports.posts = function(req, res) { var posts = []; data.posts.forEach(function(posts, i) { posts.push({ id: i, title: post.title, text: post.text.substr(0, 50) + ‘…’ }); }); res.json({ posts: posts }); }; exports.posts = function(req, res) { var id = req.params.id; if (id >= 0 && id < data.posts.length) { res.json({ post: data.posts[id] }); } else { res.json(false); } }; [d'oh! Note the two `exports.posts`.] …and then attempting to run the Node server will through a less than helpful error: ...

Feb 9, 2014 · Christopher Boette

CSS Things I Learned This Morning

Put those dang media-specific styles at the bottom of the sheet. Cascading means cascading. When inserting ZURB’s Foundation Icons, trying to write <i class="fi-social-github"></i> as <i class="fi-social-github" /> makes for some funny [in hindsight] repetition of the icons. I thought Viewport Resizer was going to save the day for iPhone testing. I thought wrong. Not directly related, but Cyberduck has a “reload” button for transfers. Sure beats clicking and dragging the same file repeatedly.

Feb 7, 2014 · Christopher Boette

Quote for 2014-02-05

Open up a terminal and type: $ cd /home/somedir $ python -m SimpleHTTPServer That’s it! Now your http server will start in port 8000. You will get the message: Serving HTTP on 0.0.0.0 port 8000 … Now open a browser and type the following address: http://192.168.1.2:8000 You can also access it via: http://127.0.0.1:8000 If the directory has a file named index.html, that file will be served as the initial file. If there is no index.html, then the files in the directory will be listed. ...

Feb 5, 2014 · Christopher Boette

Mars Attracts!

Our final project for MakerSquare: an app for booking flights to Mars. Whimsical? Absolutely. Ahead of its time? Slightly. Completely ridiculous? Only if you’ve forgotten how to dream. [goto](http://marsattracts.com)

Feb 4, 2014 · Christopher Boette

Quote for 2014-01-24

Although the protocol is optimized for use as a payment scheme it is suitable for the transfer of larger amounts. The protocol is also suitable for use as an access control or resource allocation mechanism. With modification the protocol could be made to provide anonymity guarantees. W3C proposal for a micropayment transfer protocol…from 19 years ago. 

Jan 24, 2014 · Christopher Boette

Photo for 2014-01-18

The red, green and blue colors derive from stages of Mars’ transformation from barrenness to life depicted in the epic “Red Mars,” “Green Mars,” “Blue Mars” trilogy written by Kim Stanley Robinson. Red, green and blue are also the primary components of the spectrum, symbolizing unity in diversity, as well as light itself, and thus reason and enlightenment. The tricolor form also traditionally represents the republican values of liberty, equality and justice. The flag was sewn by Maggie Zubrin and brought aboard the Space Shuttle Discovery at the invitation of astronaut John Mace Grunsfeld. ...

Jan 18, 2014 · Christopher Boette

'Oh node, he didn't.'

Day 35 of MakerSquare. Morning: lesson on node.js and gelato. We got a quick and dirty introduction to node, its asynchronicity, and the Express.js framework. In the span of the class, we Installed node.js and npm, the Node package manager Registered API keys with Facebook and Twitter Ran our first node.js server Ate homemade gelato - cookie dough flavor! Poked around the Jade page renderer Ran a node.js server to collect our Twitter stream Posted through the server to Facebook when “JavaScript” was mentioned in said Twitter stream Played Bomberman, as built with node.js Built a chat server Whew. ...

Jan 17, 2014 · Christopher Boette