This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
LOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
techno/trance/dance/house/electronic | |
likingness graph | |
| | |
| / | |
| ..___ / | |
| / \ / | |
| / \________/ | |
|/ | |
------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paperclip | |
has_attached_file :file, :storage => :s3, | |
:s3_credentials => "#{RAILS_ROOT}/config/amazon_s3.yml", | |
:path => ":attachment/:id/:style.:extension", | |
:bucket => 'classleaf-development' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== 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 | [email protected] | |
- coworking space + incubator | |
- started out when people were working at home but wanted the social interaction with office |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mark-baos-macbook-pro:src markbao$ env | grep '^GO' | |
GOBIN=/Users/markbao/bin | |
GOARCH=amd64 | |
GOROOT=/go | |
GOOS=darwin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer