Skip to content

Instantly share code, notes, and snippets.

monitorPlay = (device, mediaFile) ->
loading = true
running = false
console.log("Starting play monitor")
status = Future.wrap(device.status)
while loading
res = status.wait()
console.log(res.inspect)
if res.duration > 0
console.log("Loaded")
Exception while invoking method 'play' [object Object]
at Object.Future.wait (/Users/josh/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/fibers/future.js:322:15)
at monitorPlay (app/server/play.coffee.js:36:18)
at Meteor.methods.play (app/server/play.coffee.js:22:12)
at maybeAuditArgumentChecks (app/packages/livedata/livedata_server.js:1367:12)
at _.extend.protocol_handlers.method.exception (app/packages/livedata/livedata_server.js:596:20)
at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:31:17)
at app/packages/livedata/livedata_server.js:595:44
at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:31:17)
at _.extend.protocol_handlers.method (app/packages/livedata/livedata_server.js:594:48)
@queso
queso / post.mkd
Last active December 20, 2015 01:29
A post from g+ community by Chris Moore that I moved to a public place so people don't need to login to see the message. Original link - https://plus.google.com/104336110723163548668/posts/hKiy9gMF5i6

Hey everyone! Sorry, I have been working on something similar and I haven't said much about it here because I was a bit confused as to what this group meant. My bad ;(

I've recruited a couple demos for the June Drinkup. +Carin Meier and Warren Harrison are on the schedule for the first one. Craig Smith (Hive13) was going to demo his Arduino drinking game, but he's out of town this month.

My reasoning is to slowly introduce the concept to the existing group rather than create something standalone. I don't intend to own anything and I'm not trying to step on anyone's toes – I want to make that clear. We already have the venue with the A/V control and this seemed to be the path of least resistance. If it doesn't work out, then we should certainly consider other options.

Also, I think the Drinkup is fun, but I also don't want it to stagnate and be a waste of time. I'm not entirely sure what that means, but I worry about

@queso
queso / post2.mkd
Created July 21, 2013 16:11
A post from g+ community by Chris Moore that I moved to a public place so people don't need to login to see the message. Original link - https://plus.google.com/104336110723163548668/posts/61xstrar7bj

Update: I'm canceling the demos tomorrow night, sadly. +Carin Meier, I'm sorry. I couldn't get everything together in time and I'd rather do it well. I'm going to NYC next week to the NYTM, so I hope to learn more about how it's organized.

Alan Audette: Doug, I missed the conversation. Was this on Twitter?
Josh Owens: And blog posts
Josh Owens: I think Doug is mostly referring to this: http://words.cdmwebs.com/let-s-start-with-why
Doug Alcorn: Let's Start with Why: http://t.co/nLU5KJysTw
– @cdmwebs
Doug Alcorn: For sure: ^^^^
Alan Audette: thx, I was pretty unplugged this weekend
Geoff Cornwall: Chris' post I thought hit it right on the head. (I was finally able to catch up last night on twitter / blog posts.)
Doug Alcorn: It's kinda hard to have an extended conversation 140 characters at a time, but I'm really interested in what motivates you to participate
👊 THE BEAR 👊: bbq's are great places to have conversations
@queso
queso / statement.mkd
Last active December 20, 2015 07:59

We are driving Cincinnati Forward.

We're driving innovation with our amazingly talented community. Let's focus on the makers. We strive to build relationships and share knowledge around our 80 square miles. When we grow, Cincinnati's greatness will grow.

We always

  • teach and share our knowledge
  • listen and learn from others
  • help share and cross promote events happening in our city
  • strive to do cool, amazing things
@queso
queso / email.txt
Created August 7, 2013 17:47
RHINEGEIST
Hey Josh,
Sounds like a pretty intriguing event.
We have plenty of space for that size group. When you say working on projects for 48 hours, do you literally mean that you'd need the space for 48 hours straight? That'd be the only potential complication I see, but is still something we could figure out.
Since we're open to the public on Sat & Sun, we usually charge a minimum purchase fee based on the amount of space we need to reserve. For a group that size, we'd charge $1,000min (not including gratuity) for every 4 hours that we're open when you rent the space. So, if you guys spend at least $1,000 over that time period, then you wouldn't owe anything else, but if you spent just $500, you'd owe another $500 as a rental fee. The minimum should be pretty easy to cover. If you have 100 people and everyone has 2 beers, you'd be at $1,200.
We have plenty of power, but most of the outlets are placed in the tasting room and around the brew deck, so we'd likely need to run extension chords down to the area
@queso
queso / stacktrace.rb
Created August 28, 2013 23:44
Stack trace
activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245→ query
activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245→ block in execute
activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:280→ block in log
activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20→ instrument
activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb:275→ log
newrelic_rpm-3.6.0.83/lib/new_relic/agent/instrumentation/active_record.rb:36→ block in log_with_newrelic_instrumentation
newrelic_rpm-3.6.0.83/lib/new_relic/agent/method_tracer.rb:235→ trace_execution_scoped
newrelic_rpm-3.6.0.83/lib/new_relic/agent/instrumentation/active_record.rb:33→ log_with_newrelic_instrumentation
activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245→ execute
activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb:213→ execute
@queso
queso / why.mkd
Created October 29, 2013 23:41
Why Meteor

Why Meteor?

I remember first getting started with Rails back in 2004, it was a "magical time" - of course I remember get questioned at least once a week why someone would want to use rails. My answer was always the same, developers love the framework because they can build things faster in a way they enjoy to work. I've been working with Meteor full time for over a month now and I wanted to give some answers to "Why Meteor" because I am hearing the same question a lot.

Hook-ups are hard

When a client asks us to build an app, they are really asking for a fully interactive web app that utilizes javascript to get rich client interfaces. The problem is when you start with something like rails then javascript was an afterthought - something bolted on long after the technology was built. Sure, you can spend a few days getting something cobbled together that is workable and a developer could be happy working in, but rails was developed and became widespread because it adopted convention over configuration.

#!/bin/sh
# This is the Meteor install script!
# Are you looking at this in your web browser, and would like to install Meteor?
# Just open up your terminal and type:
#
# curl https://install.meteor.com/ | sh
#
# Meteor currently supports:
# - Mac: OS X 10.6 and above