Monday, May 20, 2013
While the WebAPI certainly seems modeled after that, and it's a noble effort, I've been struggling to get routes working the way I want running into issues with nested resources and using parameters in the url. The preferred solution seems to be to use IQueryable and OData, I don't use an ORM that implements IQueryable, and I wasn't willing to switch. So I have stumbled onto the pattern of using FromUrl to at least pass parameters in a more complex than the standard way.
Sunday, April 7, 2013
I journal quite a bit and my holy grail has been using my favorite text editor (Vim or Vim bindings) with Evernote to store the everything in a smart searchable format. Today I stumbled onto a neat little tool that makes this all happen called Geeknote http://www.geeknote.me/. It's written in Python and works fine on my Mac.
#!/bin/sh# Download the repository.git clone git://github.com/VitaliyRodnenko/geeknote.gitcd geeknote# Launch Geeknote and go through login procedure.python geeknote.py login#change vim to whatever you want it to bepython geeknote.py settings --editor vim
#change checkout_dir to match where you've checked out the latest
#change notebook to whatever notebook you use as your journal
if [ -z "$1" ]
echo creating a note named $title in the $notebook notebook
python $checkout_dir/geeknote.py create --title $title --notebook $notebook --content "test"
python $checkout_dir/geeknote.py edit --note $title --notebook $notebook --content "WRITE"
Writing Journal Entries
journal #creates a note in journal with todays date as the title
journal custom_title #no spaces allowed and will use the title specified