Purpose of the touch command: create a new file or ‘touch’ some file to update its timestamp; naturally, touching a file that isn’t there will create a new file with a current time and date timestamp.

The binary file is included at the end of this post. However, if you want to “compile” this …

Read more »

While working with sinatra, I stumbled upon an issue with paths…   if you have  

    Then, the root path will be ./something, otherwise the root path is just the ./public directory. Like this:Like Loading…

Posted on: October 3, 2014

These are some quick notes (mostly for self-reference) on how to implement helpers and extensions in Sinatra (for extensions, the links to sinatra’s website are below). So, helpers straight from the book “Sinatra: Up and Running (pg. 75+)“.     Starting out with a basic skeleton for an ApplicationController:

But where’s title coming from? the …

Read more »

threespheres

Since 2011 and December 21, 2014, it’s understood by many that we are already in the 5th dimension. But then, where’s the feelings of unconditional love? Essentially, the true essence of unconditional love is something that is only fully understood in the higher realms; this 3rd dimensional holographic reality is far too rigid for it’s own good. So, …

Read more »

Today I managed to get some programming finished on a little mini-wiki I’ve been planning out. In the form of wikidpad, I want to be able to have some [name] where [name] links to some other content. Effectively, I’m still trying to decide between a MySQL, PostgreSQL, or a NoSQL database. But since it’ll mostly …

Read more »

self.class.save calls the main AOH class’s save method, so it’s only defined once in my code. Just some quick notes to remember for later as I create a tiny little wiki with a single database file. Like this:Like Loading…

Having trouble managing links since I multi-task far too much, so, I’ll dump all the links here that may help others (riiiiiight)… Querying The MongoDB (cheat sheet) http://mongoid.org/en/mongoid/docs/querying.html This is just for the ‘mongo’ rubygem. I’m going for ‘mongoid’ since it seems easier http://recipes.sinatrarb.com/p/databases/mongo Like this:Like Loading…

Posted on: September 24, 2014
Categories: Uncategorized

Automatic Wrapping To make every view default to be wrapped in a layout, create a file in erb/layout.erb and your calls to erb :myview will automatically be wrapped in this layout. Skipping the Layout If you want a particular view rendering not to use the layout, use:

  Using a Different Layout If you want to …

Read more »


%d bloggers like this: