Skip to content

Instantly share code, notes, and snippets.

@vvs
vvs / flashcard.xml
Created November 19, 2012 21:43
Bottom area layout reduction
<LinearLayout
android:id="@id/bottom_area_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical" >
<!-- Buttons -->
<LinearLayout <!-- NOTE: everything works fine if this LinearLayout is removed -->
android:id="@+id/flashcard_layout_flip"
diff --git a/core/signal/trap_spec.rb b/core/signal/trap_spec.rb
index b238cf0..5a01e7b 100644
--- a/core/signal/trap_spec.rb
+++ b/core/signal/trap_spec.rb
@@ -5,80 +5,80 @@
ScratchPad.clear
@proc = lambda { ScratchPad.record :proc_trap }
- @saved_trap = Signal.trap(:HUP, @proc)
+ @saved_trap = Signal.trap(:INT, @proc)
From git pull help:
--rebase
Instead of a merge, perform a rebase after fetching. If there is a remote
ref for the upstream branch, and this branch was rebased since last fetched,
the rebase uses that information to avoid rebasing non-local changes. To make
this the default for branch <name>, set configuration branch.<name>.rebase to true.
diff --git a/argparser.cpp b/argparser.cpp
index 89ec558..806d9cf 100644
--- a/argparser.cpp
+++ b/argparser.cpp
@@ -302,7 +302,12 @@ bool ArgParser::parseArgs(int argc, char *argv[]) {
javaOptions.push_back("-server");
nailgunServer = true;
} else if (it->compare(0, 2, "-J", 2) == 0) {
- javaOptions.push_back(it->substr(2));
+ std::string javaOpt = it->substr(2);
io = IO.popen('yes', 'r')
io.gets
io.close
p "after"
jruby -S spec spec\ffi\async_callback_spec.rb
loadpath=D:/work/jruby-dev/repos/ffi.git/spec:D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin:D:/work/jruby-dev/jruby/lib/ruby/gems/1.8/gems/rspec-1.3.0/lib:D:/work/jruby-dev/jruby/lib/ruby/site_ruby/1.8:D:/work/jruby-dev/jruby/lib/ruby/site_ruby/shared:D:/work/jruby-dev/jruby/lib/ruby/1.8:.
./spec/ffi/async_callback_spec.rb:7 warning: already initialized constant AsyncIntCallback
Function.java:110:in `newInstance': java.lang.NullPointerException
from org/jruby/ext/ffi/jffi/Function$s_method_0_2$RUBYINVOKER$newInstance.gen:65535:in `call'
from DynamicMethod.java:160:in `call'
from CachingCallSite.java:279:in `cacheAndCall'
from CachingCallSite.java:68:in `call'
1) Error:
test_ruby_with_a_single_string_argument(TestFileUtils):
RuntimeError: Command failed with status (1): [D:/work/jruby-dev/jruby/bin/jruby.exe test/check_expansion.rb %RAKE_TEST_SH% someval]
D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:53:in `create_shell_runner'
D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:45:in `call'
D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:45:in `sh'
D:/work/jruby-dev/repos/rake/lib/rake/file_utils_ext.rb:39:in `sh'
D:/work/jruby-dev/repos/rake/lib/rake/file_utils.rb:80:in `ruby'
D:/work/jruby-dev/repos/rake/lib/rake/file_utils_ext.rb:39:in `ruby'
./test/lib/fileutils_test.rb:216:in `test_ruby_with_a_single_string_argument'
jruby --profile -e "p ARGV"
Running with instrumented profiler
profiler: on
remote: off
port: 15599
thread-depth: -1
thread.compact.threshold.ms: 10
max-method-count: 50
method.compact.threshold.ms: 10
file: ./profile.txt
public class Thrower {
public static void throwError() {
System.err.println("About to throw Error");
throw new UnknownError("Unknown Error");
}
public static void throwOutOfMemoryError () {
System.err.println("About to throw OutOfMemoryError ");
throw new OutOfMemoryError ("No Memory Error");
mspec -t j library\delegate\
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-03-21 646afea) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
..FE..........E
1)
SimpleDelegator when frozen is not writeable FAILED
Expected RuntimeError but no exception was raised
D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:22
D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:4
D:/work/jruby-dev/rubyspec.git/library/delegate/frozen_spec.rb:56:in `load'