Skip to content

Instantly share code, notes, and snippets.

Deck
4 Knight of the Ebon Legion (M20) 105
4 Midnight Reaper (GRN) 77
4 Blacklance Paragon (ELD) 79
4 Joust (ELD) 129
5 Mountain (M19) 276
4 Fervent Champion (ELD) 124
2 Dreadhorde Butcher (WAR) 194
4 Fling (ELD) 126
4 Embercleave (ELD) 120
ERROR [2014-04-03 16:04:20,034] New I/O worker #17 - io.pithos.operations - caught exception during operation
java.lang.ClassCastException: java.lang.String cannot be cast to clojure.lang.IFn
at io.pithos.operations$get_object.invoke(operations.clj:185)
at io.pithos.operations$dispatch.invoke(operations.clj:609)
at io.pithos.api$run$handler__5477.invoke(api.clj:22)
at aleph.http.netty$start_http_server$fn$reify__1368$stage0_1354__1369.invoke(netty.clj:79)
at aleph.http.netty$start_http_server$fn$reify__1368.run(netty.clj:77)
at lamina.core.pipeline$resume_pipeline.invoke(pipeline.clj:61)
at lamina.core.pipeline$start_pipeline.invoke(pipeline.clj:78)
at aleph.http.netty$start_http_server$fn$reify__1368.invoke(netty.clj:77)
diff --git a/Changelog.backport_gc b/Changelog.backport_gc
new file mode 100644
index 0000000..b617fc8
--- /dev/null
+++ b/Changelog.backport_gc
@@ -0,0 +1,128 @@
+Tue Jan 17 12:32:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (aligned_malloc, aligned_free): covered missing defined
+ operators and fixes for cygwin.
VERSION="1.9.3-p125"
curl https://gist.github.com/ewpeters/8286282/raw/881dc1a77367636e7b69e4caa9793ab334546fd7/1.9.3-p125-patched.sh > /tmp/$VERSION-perf
rbenv install /tmp/$VERSION-perf
build_package_combined_patch() {
local package_name="$1"
{
curl https://github.com/ruby/ruby/pull/47.diff | git apply
curl https://gist.github.com/ewpeters/8286930/raw/f578a0b696944fe65f88939679981c7d52730ad8/perf.patch | patch -p1
autoconf
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
make -j 8
make install
diff --git a/ChangeLog b/ChangeLog
index c4ea779..0a6bf73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,188 @@
+Tue Jan 17 12:32:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (aligned_malloc, aligned_free): covered missing defined
+ operators and fixes for cygwin.
+
// For a user with device IDs 1, 2, and 3 with 5 new messags
{
"GCM": {
"registration_ids": [1,2,3],
"data": {
"messages": 5
}
},
}
members = MemberVisitor.find(:all, :conditions => "destination_id is not Null AND pending_destination_id is null and destinations.ANI like 'SNAP%'", :include => :destination); nil;
def pick_best_or_oldest(memv, status)
memv_dests = memv.member_visitor_destinations.find(:all, :conditions => "validate_status = '#{status}' and destinations.ANI not like 'SNAP%'", :include => :destination, :order => "created_at asc")
if memv_dests.size > 1
snap_ani = memv.snap_phone_number_ani
if snap_ani
best_memv_dest = memv.member_visitor_destinations.find(:first, :conditions => "validate_status = '#{status}' and destinations.ANI = '#{snap_ani}'", :include => :destination)
end
#!/usr/bin/env script/minrunner
MemberVisitor.find(:all, :conditions => "snap_user_id is not null and destination_id is null").each do |member|
snap_acct = Snap::Member.find(member.snap_user_id) rescue nil
if snap_acct && snap_acct.phone_number.present?
dest = Destination.find_by_ANI(snap_acct.phone_number)
if dest
$stdout.puts "#{member.id},#{dest.id}"
member.destinations << dest unless member.destinations.include?(dest)
member.create_snap_destination
member.save
input = [{
:type => 1,
:amount => 11213
},
{
:type => 1,
:amount => 192
},
{
:type => 2,