Skip to content

Instantly share code, notes, and snippets.

josh@hades:~/code/broth$ rake spec
(in /home/josh/code/broth)
DEPRECATION WARNING: Rake tasks in vendor/plugins/no-peeping-toms/tasks and vendor/plugins/seed-fu/tasks are deprecated. Use lib/tasks instead. (called from /home/josh/.rvm/gems/ree-1.8.7-2010.02/gems/rails-2.3.10/lib/tasks/rails.rb:10)
WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang.
Missing these required gems:
cucumber = 0.8.5
You're running:
ruby 1.8.7.253 at /home/josh/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby
rubygems 1.5.0 at /home/josh/.rvm/gems/ree-1.8.7-2010.02, /home/josh/.rvm/gems/ree-1.8.7-2010.02@global
http://code.google.com/p/chromium/downloads/list
def page_title
title = backwards_title if @flipped
title ||= partial_title
title ||= @full_title
title ||= forwards_title
title
end
# Title Item - Controller - Site
def backwards_title
### “What we’ve got here is a Failure to communicate…”
The Cincinnati startup web development community sucks.
At least that’s the feeling we walked away with after reading an article posted March 11, 2012 by Laura Baverman on Cincinnati.com’s EnterChange blog. The article holds some credible facts, but not necessarily inevitable conclusions. The end result of her observations seems a little flawed. Cincinnati can sustain not only talented coders and designers; it already does. Absolutely, lots of local talent will go elsewhere to seek employment and opportunities, but plenty have stayed because they recognize the potential right here in the Queen City.
Sure it’s risky joining a startup vs. an established corporation, but if recent history has shown us anything, at least we know the future always involves risk. We’re traditionally an exceptionally conservative city, but in times like these, risk is best placed where your heart lay. Passion and commitment are what drives business. What better way to focus
@queso
queso / external_style.html
Created July 19, 2012 23:19
GDI Cincinnati Class 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>New Web Project Page</h1>
@queso
queso / newrelic_outline.mkd
Created September 12, 2012 19:28
New Relic Outline

App overview

  • Show video

End User

  • Web pages

App User

  • Web Transactions
  • Database
openssl genrsa -des3 -out config/private.pem 2048
openssl rsa -in config/private.pem -out config/public.pem -outform PEM -pubout
cat config/private.pem config/public.pem >> keypair.pem
def self.discover(timeout = 6)
Timeout::timeout(timeout) do
dns = DNSSD.browse "_airplay._tcp" do |reply|
DNSSD.resolve reply.name, reply.type, reply.domain do |resolve_reply|
device = self.find_or_create_by_hostname(hostname: resolve_reply.target)
device.update_attributes(last_discovered_at: Time.now, mac_address: resolve_reply.text_record['deviceid'])
end
end
end
end
this.socket_ = net.createConnection(port, host);
this.socket_.setKeepAlive(true, 60);
this.socket_.setTimeout(0);
this.socket_.on('connect', function() {
self.responseWaiters_.push({
callback: callback
});
=> Errors prevented startup:
Exception while bundling application:
RangeError: length > kMaxLength
at new Buffer (buffer.js:243:21)
at Object.fs.readFileSync (fs.js:200:14)
at _.extend.cp_r (/Users/josh/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/files.js:370:40)
at Array.forEach (native)
at Function._.each._.forEach (/Users/josh/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
at Object._.extend.cp_r (/Users/josh/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/files.js:352:7)
at _.extend.cp_r (/Users/josh/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/tools/files.js:362:34)