Skip to content

Instantly share code, notes, and snippets.

@oravecz
oravecz / gist:725691
Created December 2, 2010 17:14
Patch for RingoJS - Auto-discovery of Packages
Index: src/org/ringojs/repository/ZipRepository.java
===================================================================
--- src/org/ringojs/repository/ZipRepository.java (revision e0dce2be640fc6fb43a1239d252948d10687ba9c)
+++ src/org/ringojs/repository/ZipRepository.java (revision )
@@ -187,7 +187,7 @@
}
}
- public Repository[] getRepositories() throws IOException {
+ public Repository[] getDirectChildren() throws IOException {
Index: pom.xml
===================================================================
--- pom.xml (revision e0dce2be640fc6fb43a1239d252948d10687ba9c)
+++ pom.xml (revision )
@@ -16,7 +16,7 @@
<groupId>org.ringojs</groupId>
<artifactId>ringojs</artifactId>
- <version>0.6.0</version>
+ <version>0.6.2-SNAPSHOT</version>
12:47:49,906 INFO main ElasticSearchServer: 39 - Starting the ElasticSearch server node:
12:47:49,967 INFO main node: 78 - [Armory] {elasticsearch/0.13.0}[15014]: initializing ...
12:47:49,976 INFO main plugins: 78 - [Armory] loaded [cloud-aws]
12:47:51,883 DEBUG main memory: 70 - [Armory] using bytebuffer cache with buffer_size [100kb], cache_size [200mb], direct [true], warm_cache [false]
12:47:51,946 DEBUG main cached: 70 - [Armory] Initializing cached thread pool with keep_alive[1m], scheduled_size[20]
12:47:51,986 DEBUG main multicast: 70 - [Armory] using group [224.2.2.4], with port [54328], ttl [3], and address [null]
12:47:52,002 DEBUG main unicast: 70 - [Armory] using initial hosts []
12:47:52,004 DEBUG main zen: 70 - [Armory] using initial_ping_timeout [3s]
12:47:52,005 DEBUG main fd: 70 - [Armory] [master] uses ping_interval [1s], ping_
[INFO] Started Jetty Server
Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.UnsatisfiedLinkError: Could not locate stub library (/jni/Darwin/libjffi-1.0.jnilib) in jar file
at com.kenai.jffi.Init.getStubLibraryStream(Init.java:169)
at com.kenai.jffi.Init.loadFromJar(Init.java:122)
at com.kenai.jffi.Init.load(Init.java:64)
at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:35)
at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:31)
at com.kenai.jffi.Foreign.getInstance(Foreign.java:81)
at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:30)
+ Running testDates ...
[java] + Running testIsLeapYear_DaysInFebruary_DaysInYear_DaysInMonth ... FAILED
[java] Expected 28, got 31
[java] at /Users/jcook/Projects/ThirdParty/ringojs/test/ringo/utils/dates_test.js:35
[java] at /Users/jcook/Projects/ThirdParty/ringojs/test/ringo/utils/dates_test.js:30
[java] at /Users/jcook/Projects/ThirdParty/ringojs/test/all.js:17
[java]
[java] + Running testAdd ... FAILED
[java] Expected 1289380210010, got 1289401810010
[java] at /Users/jcook/Projects/ThirdParty/ringojs/test/ringo/utils/dates_test.js:42
@oravecz
oravecz / GGJ Challenge
Created January 29, 2011 20:25
Javascript Game Challenge - Global Game Jam
<html>
<script type="text/javascript">
var nop = {};
var plA = {player: 'A'};
var solvedBoardA = [
[nop, nop, nop, nop, nop, nop, nop, nop, nop, nop, nop, nop, nop ],
[nop, nop, nop, nop, nop, plA, nop, nop, nop, nop, nop, nop, nop ],
i18n: function(key) {
var args = Array.prototype.slice.call(arguments) || [];
args.shift();
var req = require('../actions').app.request;
var servlet = req.env.servlet;
var servletRequest = req.env.servletRequest;
var locale = req.locale || servletRequest.getLocale();
var result = servlet.getMessage(key, args, locale);
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositories>
<repository>
<releases />
"main" prio=10 tid=0x00007f7e78008000 nid=0x798a runnable [0x00007f7e7dfd4000]
java.lang.Thread.State: RUNNABLE
at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243)
at java.io.File.exists(File.java:750)
at java.io.File.mkdirs(File.java:1209)
at java.io.File.mkdirs(File.java:1209)
at java.io.File.mkdirs(File.java:1209)
at java.io.File.mkdirs(File.java:1209)
at java.io.File.mkdirs(File.java:1209)
@oravecz
oravecz / gist:977123
Created May 17, 2011 18:59
Elastic Search on EC2 - Log dump
18:53:43,622 DEBUG main ticsearch.gateway.s3: 70 - [Lorelei II] Latest metadata found at index [6]
18:53:43,626 INFO main g.elasticsearch.node: 78 - [Lorelei II] {elasticsearch/0.16.0}[2878]: initialized
18:53:43,626 INFO main .ElasticSearchServer: 63 - Starting the Elastic Search server node with these settings:
18:53:43,626 INFO main .ElasticSearchServer: 68 - cloud.aws.access_key : AKIAJD5OZUDKRQ3DVURA
18:53:43,627 INFO main .ElasticSearchServer: 68 - cloud.aws.secret_key : <HIDDEN>
18:53:43,627 INFO main .ElasticSearchServer: 68 - cluster.name : elasticsearch-prod
18:53:43,627 INFO main .ElasticSearchServer: 68 - discovery.type : ec2
18:53:43,627 INFO main .ElasticSearchServer: 68 - gateway.s3.bucket : ppkc-es-gateway-prod
18:53:43,627 INFO main .ElasticSearchServer: 68 - gateway.type : s3
18:53:43,628 INFO main .ElasticSearchServer: 68 - http.enabled : true