Skip to content

Instantly share code, notes, and snippets.

% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf
% Note: This output has been filtered.
% To receive output for a database update, use the "-B" flag.
% Information related to '81.27.32.0 - 81.27.33.255'
ep 22, 2010 1:59:36 PM org.glassfish.api.ActionReport failure
SEVERE: Exception while loading the app
org.glassfish.deployment.common.DeploymentException: Java heap space
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214)
at org.jboss.arquillian.container.glassfish.embedded_3.GlassFishEmbeddedContainer.deploy(GlassFishEmbeddedContainer.java:163)
at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)
T E S T S
-------------------------------------------------------
[ERROR] Testcase: AllserviceSearchModelAllserviceSearchTest.php fails.
[ERROR] See log: /home/ken/dev/git/allservice/target/surefire-reports/AllserviceSearchModelAllserviceSearchTest.txt
Running AllserviceStringUtilsTest
Tests run: 21, Failures: 0, Errors: 0, Time elapsed: 0.027209
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cdi-demo</groupId>
<artifactId>cdi-demo</artifactId>
<packaging>war</packaging>
<name>cdi-demo</name>
<version>1.0</version>
package demo.resteasy;
import javax.ws.rs.*;
@Path("foo")
public class Foo{
@Path("{id}")
@GET
public String get(@QueryParam("order") String order, @HeaderParam("X-Foo") String header,
@MatrixParam("colour") String colour, @CookieParam("Foo-Cookie") String cookie){
We couldn’t find that file to show.
var bookmarks = eval({"bookmarks":[{"id":"1","sigid":"TEF-159","type":"Wormhole","comment":""},{"id":"2","sigid":"","type":"Ladar","comment":""},{"id":"3","sigid":"","type":"Wormhole","comment":""},{"id":"4","sigid":"","type":"Wormhole","comment":""},{"id":"5","sigid":"ABC-123","type":"Wormhole","comment":"S0 > S1"},{"id":"96","sigid":"XYZ-123","type":"Wormhole","comment":"S0 > S2"},{"id":"97","sigid":"BCS-123","type":"Ladar","comment":""},{"id":"98","sigid":"","type":"Ladar","comment":null},{"id":"99","sigid":"abc-123","type":"Wormhole","comment":""},{"id":"100","sigid":"bac-123","type":"Unknown","comment":""},{"id":"151","sigid":"","type":"Wormhole","comment":""},{"id":"152","sigid":"","type":"Wormhole","comment":""},{"id":"153","sigid":"","type":"Unknown","comment":""},{"id":"154","sigid":"","type":"Unknown","comment":""},{"id":"155","sigid":"","type":"Unknown","comment":""}]})['bookmarks'];
alert(bookmarks.length);
alert(bookmarks[0]['id']+'='+bookmarks[0]['type'])
@kenglxn
kenglxn / gist:970389
Created May 13, 2011 11:42
screw unit ex
describe('#decrement_luck', function() {
it("decrements the luck field by the given amount", function() {
man.decrement_luck(3);
expect(man.luck()).to(equal, 2)
});
});
@kenglxn
kenglxn / gist:988776
Created May 24, 2011 14:17
ucke failure
Failing Scenarios:
cucumber -p oslo features/user_repository/manage_user_groups.feature:11 # Scenario: Create one group
cucumber -p oslo features/user_repository/manage_user_groups.feature:18 # Scenario: Create one group
cucumber -p oslo features/user_repository/manage_user_groups.feature:28 # Scenario: Create user with protected field "video_uri_aggregated_id"
cucumber -p oslo features/user_repository/manage_user_groups.feature:37 # Scenario: Update user with protected field "video_uri_aggregated_id"
cucumber -p oslo features/user_repository/manage_user_groups.feature:48 # Scenario: Create group with protected field "video_uri_aggregated_id"
cucumber -p oslo features/user_repository/manage_user_groups.feature:58 # Scenario: Create multiple groups
cucumber -p oslo features/user_repository/manage_user_groups.feature:66 # Scenario: Create nested groups
cucumber -p oslo features/user_repository/manage_user_groups.feature:75 # Scenario: Create multiple child groups
cucumber -p oslo features/user_repository/manage
@kenglxn
kenglxn / c3p0
Created September 23, 2011 13:40
c3p0
<bean id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
p:driverClass="${jdbc.driverClassName}"
p:jdbcUrl="${jdbc.connection.url}"
p:user="${jdbc.username}"
p:password="${jdbc.password}"
p:preferredTestQuery="${c3p0.preferredTestQuery}"
p:idleConnectionTestPeriod="${c3p0.idleConnectionTestPeriod}"
p:initialPoolSize="${c3p0.initialPoolSize}"
p:minPoolSize="${c3p0.minPoolSize}"