This file contains hidden or 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
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 |
This file contains hidden or 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
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); |
This file contains hidden or 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
// 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++) |
This file contains hidden or 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
/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 |
This file contains hidden or 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
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] |
This file contains hidden or 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
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 |
This file contains hidden or 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
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) |
This file contains hidden or 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
[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$ |
This file contains hidden or 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
// 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", |
This file contains hidden or 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
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. |