Skip to content

Instantly share code, notes, and snippets.

View newbamboo's full-sized avatar

New Bamboo newbamboo

View GitHub Profile
---
layout: default
title: Ruby on Rails development
---
{% for post in site.posts %}
<div class="entry old_entry">
<div class="entrytitle">
<h2><a href="{{ post.url }}">{{ post.title }}</a> <span class="author">{{ post.author }}</span></h2>
<h3>{{ post.date | date_to_string }} | <a href="{{ post.url }}#disqus_thread" class="commentslink">View comments</a></h3>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Bamboo Blog - {{ page.title }}</title>
<link href="/stylesheets/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>
---
layout: default
---
<div class="entry entry-5044">
<div class="entrytitle">
<h2><a href="{{ page.url }}">{{ page.title }}</a> <span class="author">{{ page.author }}</span></h2>
<h3>{{ page.date | date_to_string }}</h3>

Getting Started

Panda runs entirely within Amazon's Web Services, so before continuing you will need to sign up for an account and have access to EC2, S3 and SimpleDB services.

If this is the first time you've used EC2, you'll need to ensure you've setup certificates and local environment. Everything is described in Amazon's EC2 Getting Started Guide.

If you would like to run Panda on a different platform, please first follow the Local Installation Guide

Launch the AMI

#!/bin/bash
#================================================================================
# /engineyard/bin/monit_merb_mpc
#================================================================================
# This script controls the multi-process Merb 1.0 service
#
# Do not forget to ensure this script is executable:
# $ chmod a+x /engineyard/bin/monit_merb_mpc
#================================================================================
#!/bin/bash
# Startup script for a Panda encoder.
PORT=5000
MERB_ROOT="/var/www/panda/current"
PID_FILE="$MERB_ROOT/log/merb.encoder.pid"
RETVAL=0
# Go no further if merb app conf is gone
[ -a "$MERB_ROOT" ] || exit 0

Installing Panda on your local machine or server

This guide is an alternative to using the prebuilt AMI which includes all the software required to run Panda.

Please note that this guide been mainly tested on OSX and Ubuntu. Please post modifications to the mailing list if you try another platform.

Before starting, your system must have a working Ruby (1.8.x) installation along with Rubygems (>= 1.3.1) and MySQL running happily.

Install dependencies

(character (value あ) (width 300) (height 300) (strokes ((54 58)(249 68)) ((147 10)(145 201)(182 252)) ((224 103)(149 230)(82 240)(53 204)(86 149)(182 139)(240 172)(248 224)(228 250))))
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>index</title>
<script type ="text/javascript">
function drawOnCanvas () {