Skip to content

Instantly share code, notes, and snippets.

sudo gem install miso-java --source=http://gemcutter.org
sudo miso-java-configure
miso-java create puppyapp
cd puppyapp
miso-java scaffold Puppy name breed
#### Run the SQL command it spits out ####
script/build
import java.util.Timer;
import java.util.TimerTask;
import java.lang.reflect.Method;
public class Abomination {
String callback;
public static void main(String args[]) {
new Abomination().setInterval("lol", 1000);
// Parallelizes delivery to multiple devices across a worker pool.
// Begin by initializing lists for the jobs and results we're expecting.
// Then, divide the device information across these jobs, and submit them.
// Finally, call ".get()" on each of the jobs to wait until they're done.
@SuppressWarnings("unchecked")
public void parallelizeDelivery() throws ExecutionException {
try {
HashMap[] jobs = new HashMap[numWorkers];
Future[] results = new Future[numWorkers];
for(int i=0; i < numWorkers; i++)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/ostruct.rb:83:
[BUG] rb_gc_mark(): unknown data type 0x0(0x100148380) corrupted object
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Abort trap
D/PackageManager( 59): Services: com.urbanairship.airmail.AirMailService
E/AndroidRuntime( 335): java.lang.RuntimeException: Unable to instantiate application
com.urbanairship.airmail.AirMailApplication: java.lang.ClassNotFoundException:
com.urbanairship.airmail.AirMailApplication in loader
dalvik.system.PathClassLoader[/data/app/com.urbanairship.airmail-1.apk]
E/AndroidRuntime( 335): Caused by: java.lang.ClassNotFoundException:
com.urbanairship.airmail.AirMailApplication in loader
dalvik.system.PathClassLoader[/data/app/com.urbanairship.airmail-1.apk]
Process: Python [57254]
Path: /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [56894]
Date/Time: 2011-05-02 15:41:35.750 -0700
OS Version: Mac OS X 10.6.7 (10J869)
Report Version: 6
cscotta@tacobot:~$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing import Queue
>>> q = Queue(maxsize=32768)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/multiprocessing/__init__.py", line 212, in Queue
return Queue(maxsize)
[info] == throughput ==
[info] Running overlock.atomicmap.ThroughputTest
2 CPU's
created 1048576 keys
warming up JIT
Warmup took 30.480539s for 60079285 ops with ratio 0.01745320371239438
noThreads trial_1 trial_2 trial_3 trial_4 trial_5 trial_6 trial_7 trial_8 trial_9 trial_10 trial_11 trial_12 trial_13 trial_14 trial_15 trial_16 trial_17 trial_18 trial_19 trial_20 mean stddv
2
java.lang.ClassCastException: java.lang.String cannot be cast to scala.runtime.Nothing$
@cscotta
cscotta / Example.json
Created May 14, 2011 20:33
Map Operation
// Sample Event Stream:
{ "event_type": "identification", "name": "nachos" }
{ "event_type": "event", "data": {"meat_type": "carnitas", "cheese_temp": 103, "vegetables": ["tomatoes", "olives"] } }
{ "event_type": "event", "data": {"meat_type": "beef", "cheese_temp": 101, "vegetables": ["tomatoes", "olives"] } }
{ "event_type": "event", "data": {"meat_type": "chicken", "cheese_temp": 98, "vegetables": ["tomatoes", "olives"] } }
// Sample Query:
{
"stream_id" : "nachos",
cscotta@insight:~$ ruby --version
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
cscotta@insight:~$ gem --version
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/cscotta/.rvm/gems/ruby-1.9.2-p0@global/specifications/bundler-1.0.2.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/cscotta/.rvm/gems/ruby-1.9.2-p0@global/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Users/cscotta/.rvm/gems/ruby-1.9.2-p0/specifications/ar_mailer-1.5.1.gemspec:11.