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
Message = MBX.JsModel.create("Message", { | |
iAmAClassAttribute: '', | |
instanceMethods: { | |
defaults: { | |
content: "I'm default content" | |
}, | |
iAmAnInstanceMethod: function () { | |
//this.doSomething; | |
}, | |
beforeCreate: function () {}, |
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
require 'rubygems' | |
gem 'zookeeper' | |
require 'zookeeper' | |
REQUIRED_NUMBER_OF_PROCESSES = 2 | |
class EventHandler | |
import org.apache.zookeeper.Watcher | |
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
<object width="600" height="409"> | |
<param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param> | |
<param name="flashvars" value="src=http%3A%2F%2Fosmf.org%2Fvideos%2Fcathy2.flv&poster=http%3A%2F%2Fosmf.org%2Fimages%2Fposter_cathy_fmp.jpg"></param> | |
<param name="allowFullScreen" value="true"></param> | |
<param name="allowscriptaccess" value="always"></param> | |
<embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="409" flashvars="src=http%3A%2F%2Fosmf.org%2Fvideos%2Fcathy2.flv&poster=http%3A%2F%2Fosmf.org%2Fimages%2Fposter_cathy_fmp.jpg"> | |
<video src="http://osmf.org/videos/cathy2.flv" controls="controls" height="409" width="600"> | |
Your browser does not support Flash *or* html5 video. | |
</video> | |
</embed> |
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
ruby-1.8.7-p334 :022 > col.update({:_id => id}, {:test => 0}) | |
=> 105 | |
ruby-1.8.7-p334 :023 > col.update({:_id => id}, {"$inc" => {:test => 7599434616}}) | |
=> 120 | |
ruby-1.8.7-p334 :024 > col.find({:_id => id}).first | |
=> {"_id"=>BSON::ObjectId4dac55a85fedbd37dd000001, "test"=>-990499976} | |
ruby-1.8.7-p334 :025 > col.update({:_id => id}, {:test => 0}) | |
=> 105 | |
ruby-1.8.7-p334 :028 > col.update({:_id => id}, {"$inc" => {:test => 7599434616.0}}) | |
=> 120 |
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
In December 1995, American Airlines Flight 965 departed from Miami on a regularly scheduled trip to Cali, Columbia. On the landing approach, the pilot of the 757 needed to select the next radio-navigation fix, named "ROZO." He entered an "R" into his navigation computer. The computer returned a list of nearby navigation fixes starting with "R," and the pilot selected the first of these, whose latitude and longitude appeared to be correct. Unfortunately, instead of "ROZO," the pilot selected "ROMEO," 132 miles to the northeast. The jet was southbound, descending into a valley that runs north–south, and any lateral deviation was dangerous. Following indications on the flight computer, the pilot began an easterly turn and slammed into a granite peak at 10,000 feet. One hundred and fifty-two passengers and all eight crewmembers aboard perished. Four passengers survived with serious injuries. The National Transportation Safety Board investigated, and—as usual—declared the problem human error. The navigational aid |
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
2011-04-14_19:53:04.75667 Traceback (most recent call last): | |
2011-04-14_19:53:04.75669 File "/usr/local/bin/swift-object-server", line 7, in <module> | |
2011-04-14_19:53:04.75670 execfile(__file__) | |
2011-04-14_19:53:04.75670 File "/mbox/apps/openstack-swift/bin/swift-object-server", line 22, in <module> | |
2011-04-14_19:53:04.75671 run_wsgi(conf_file, 'object-server', default_port=6000, **options) | |
2011-04-14_19:53:04.75671 File "/mbox/apps/openstack-swift/swift/common/wsgi.py", line 116, in run_wsgi | |
2011-04-14_19:53:04.75677 log_to_console=kwargs.pop('verbose', False)) | |
2011-04-14_19:53:04.75677 File "/mbox/apps/openstack-swift/swift/common/utils.py", line 403, in get_logger | |
2011-04-14_19:53:04.75681 get_logger(conf, name, log_to_console, log_route='root') | |
2011-04-14_19:53:04.75682 File "/mbox/apps/openstack-swift/swift/common/utils.py", line 428, in get_logger |
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
We see fairly high infant mortality on the hard drives deployed in brand new pods, so we like to burn the pods in for a few days before storing any customer data. We have yet to see any drives die because of old age, which will be fascinating to monitor in the next few years. |
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
[alias] | |
st = status | |
d = diff | |
ci = commit -v | |
cia = commit -v -a | |
co = checkout | |
cp = cherry-pick | |
l = log | |
ll = log -p | |
lt = log trunk.. |
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
s = Fog::Storage::AWS.new({ | |
jruby-1.6.7 :006 > :aws_access_key_id => S3_CREDS[:access_key], | |
jruby-1.6.7 :007 > :aws_secret_access_key => S3_CREDS[:secret_access_key], | |
jruby-1.6.7 :008 > :persistent => false | |
jruby-1.6.7 :009?> }) | |
=> #<Fog::Storage::AWS::Real:... [redacted] > | |
jruby-1.6.7 :010 > s.directories.get('amicus-users') | |
Excon::Errors::SocketError: write would raise | |
from org/jruby/ext/openssl/SSLSocket.java:607:in `syswrite_nonblock' | |
from /Users/topper/.rvm/gems/jruby-1.6.7@global/gems/jruby-openssl-0.7.6.1/lib/1.9/openssl/buffering.rb:374:in `write_nonblock' |
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
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
PS1="$RED\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)$GREEN\$ " |
OlderNewer