Skip to content

Instantly share code, notes, and snippets.

View mixflame's full-sized avatar
🔊
Creating awesome audio software and things!

Jonathan Silverman mixflame

🔊
Creating awesome audio software and things!
View GitHub Profile
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
E/AndroidRuntime(10028): FATAL EXCEPTION: main
E/AndroidRuntime(10028): org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `clear' for nil:NilClass
E/AndroidRuntime(10028): at org.jruby.RubyBasicObject.method_missing(org/jruby/RubyBasicObject.java:1660)
E/AndroidRuntime(10028): at RUBY.method_missing(file:/data/app/com.jonsoft.globalchat-1.apk!/ruboto/base.rb:29)
E/AndroidRuntime(10028): at RUBY.reload_list(file:/data/app/com.jonsoft.globalchat-1.apk!/ruboto/widget.rb:171)
E/AndroidRuntime(10028): at RUBY.reload_nicks(file:/data/app/com.jonsoft.globalchat-1.apk!/global_chat_controller.rb:123)
W/ActivityManager( 308): Force finishing activity com.jonsoft.globalchat/org.ruboto.RubotoActivity
W/ActivityManager( 308): Force finishing activity com.jonsoft.globalchat/.ServerList
-compile:
[javac] Compiling 15 source files to /Users/jsilverman2/mdks/GC2-Droid/bin/classes
[javac] /Users/jsilverman2/mdks/GC2-Droid/src/org/ruboto/RubotoActivity.java:2328: cannot find symbol
[javac] symbol : class ActionMode
[javac] location: package android.view
[javac] public void onActionModeFinished(android.view.ActionMode mode) {
[javac] ^
[javac] /Users/jsilverman2/mdks/GC2-Droid/src/org/ruboto/RubotoActivity.java:2374: cannot find symbol
@mixflame
mixflame / gist:4006155
Created November 3, 2012 05:25
Rakefile
task :boot do
puts "booting"
`emulator -avd Android_4.1 -partition-size 200 -no-audio -no-boot-anim`
end
task :off do
puts "shutdown"
`adb emu kill`
end
require 'ruboto/widget'
require 'ruboto/util/toast'
require 'server_list_controller'
ruboto_import_widgets :Button, :LinearLayout, :TextView, :ListView, :EditText
class ServerList
# def self.load_preferences
@mixflame
mixflame / gist:3985361
Created October 31, 2012 06:22
Server List Activity
require 'ruboto/widget'
require 'ruboto/util/toast'
require 'server_list_controller'
ruboto_import_widgets :Button, :LinearLayout, :TextView, :ListView, :EditText
class ServerList
def on_create(bundle)
super
@server_list_hash = Net::HTTP.get('nexusnet.herokuapp.com', '/msl').
split("\n").
collect do |s|
par = s.split("-!!!-")
{:host => par[1], :name => par[0], :port => par[2]}
end
@names = @server_list_hash.collect { |i| i[:name] }
@mixflame
mixflame / gist:3972148
Created October 29, 2012 07:33
Ruboto Text Me Code
task :send_text do
# black magic
text = ARGV.last
require 'socket'
ts = TCPSocket.open('localhost', 5554)
unless ts.closed?
ts.puts("sms send 1231231234 #{text}")
end
# supplementary magic
task text.to_sym do ; end
@mixflame
mixflame / gist:3968501
Created October 28, 2012 12:39
Ruboto Generate Full
ruboto gen app --package="com.jonsoft.globalchatpacked" --target="android-16" --with-jruby --name="Gc" --activity="ServerList" packed-gc2
ruboto gen app --package="com.jonsoft.globalchatpacked" --target="android-16" --name="Gc" --activity="ServerList" packed-gc2
@mixflame
mixflame / Rakefile
Created October 28, 2012 10:28
Useful Rakefile for Ruboto
# hope you're using HAXM
task :boot do
puts "booting"
`emulator -avd Android_4.1`
end
task :off do
puts "shutdown"
`taskkill /IM emulator-x86.exe`