Skip to content

Instantly share code, notes, and snippets.

<html>
LOL
#!/bin/bash
#
# backup stuff
#
newfile=$(date +%Y-%m-%d_%H-%m-%S)$1
touch $newfile.sql
mysqldump -h DATABASE_LOCATION -u USERNAME -pPASSWORD DATABASE_NAME > /backup/$newfile.sql
s3cmd put $newfile.sql s3://ramamia-backup/$newfile.sql
techno/trance/dance/house/electronic
likingness graph
|
| /
| ..___ /
| / \ /
| / \________/
|/
-------------------------
# Paperclip
has_attached_file :file, :storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/amazon_s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => 'classleaf-development'
if request.post?
firstname = params[:firstname]
lastname = params[:lastname]
prefix = params[:prefix]
email = params[:email]
subdomain = params[:subdomain]
o = [('a'..'z'),('0'..'9')].map{|i| i.to_a}.flatten # map of a-z0-9
password = (0..5).map{ o[rand(o.length)] }.join # create random password from map
@account = Account.find_by_subdomain(current_subdomain)
== Designing for Technophobes ==
- alternative reality
- bridging the gap between.
- take a lot of drugs to match technophobes ;)
- early and often
- FAMILIARITY - one less hurdle to feel comfortable in the environment
- look for "superusers" - not coders, but they like technology, fluent in the vocabulary
- get as many people as possible - first time users
- nontechnical users don't read
== Coworking ==
Jon Pierce & Brian del Vecchio
heads of popular Cambridge, MA coworking space Betahouse
25 April 2009, BarCamp Boston 4, Boston MA, 16:00-16:40
http://betahouse.org | info@betahouse.org
- coworking space + incubator
- started out when people were working at home but wanted the social interaction with office
Processing CommentsController#create (for 127.0.0.1 at 2009-06-30 21:35:42) [POST]
Parameters: {"commit"=>"Add Note", "action"=>"create", "controller"=>"comments", "comment"=>{"commentable_type"=>"Lead", "commentable_id"=>"50", "user_id"=>"1", "comment"=>"asdfasdf"}, "_"=>""}
SQL (0.3ms) SELECT VERSION()
User Columns (3.1ms) SHOW FIELDS FROM `users`
User Load (0.8ms) SELECT * FROM `users` WHERE (`users`.`id` = 1) AND (users.deleted_at IS NULL OR users.deleted_at > '2009-07-01 01:35:42') LIMIT 1
SQL (0.1ms) BEGIN
User Update (1.7ms) UPDATE `users` SET `updated_at` = '2009-07-01 01:35:42', `last_request_at` = '2009-07-01 01:35:42' WHERE `id` = 1
SQL (59.5ms) COMMIT
Comment Columns (23.5ms) SHOW FIELDS FROM `comments`
Lead Columns (3.3ms) SHOW FIELDS FROM `leads`
mark-baos-macbook-pro:src markbao$ env | grep '^GO'
GOBIN=/Users/markbao/bin
GOARCH=amd64
GOROOT=/go
GOOS=darwin
mark-baos-macbook-pro:src markbao$ env | grep '^GO'
GOBIN=/Users/markbao/bin
GOARCH=amd64
GOROOT=/Users/markbao/go
GOOS=darwin
...
mark-baos-macbook-pro:src markbao$ ls -l $GOBIN
total 8