Skip to content

Instantly share code, notes, and snippets.

Cut the middlemen

Minimal example how to use CouchDB JSON exports without any server-side middleware (Ruby, Python, PHP, etc) and showcase its features.

For real „standalone applications“, called CouchApps, see the CouchDB book.

Installation

require 'win32ole'
# based on this tutorial http://www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm
# 1. Download http://www.zapt.in/9Qt
# 2. Put the AutoItX3.dll on c:\windows\system32
# 3. Open the DOS Prompt and register the dll with: "regsvr32 C:\windows\system32\AutoItX3.dll
# 4. Install Ruby if you don't have it already installed: http://www.rubyinstaller.org/
# 5. Execute this file
@au3 = WIN32OLE.new "AutoItX3.Control"
# Use this commands inside app folder
git init
git status
git add .
git commit -a
touch tmp/.gitignore log/.gitignore vendor/.gitignore
# Create this .gitignore file
.DS_Store
log/*.log
THIS DOCUMENT MOVED TO http://chneukirchen.github.com/rps/
AND http://github.com/chneukirchen/rps
= Ruby Packaging Standard
The aim of this document is two-fold. First, to specify a common
structure of how a Ruby package distributed as source (that is, but
not limited to, development directories, version-controlled
repositories, .tar.gz, Gems, ...) should conform to.
@luisbebop
luisbebop / wsparser.rb
Created November 13, 2009 18:26
Use this script to parse Walk Server 2 log files
# http://rubular.com/regexes/11722
# sudo gem install dm-core
# sudo gem install dm-validations
# sudo gem install do_sqlite3
# parse walk server (www.planobe.com.br) log files and write to a database called walk_server.sqlite3 on current directory/db
# Using:
# ruby wsparser.rb walk_server2/LOGS/
require 'rubygems'