Skip to content

Instantly share code, notes, and snippets.

View dashorst's full-sized avatar

Martijn Dashorst dashorst

View GitHub Profile
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@dashorst
dashorst / gist:1029009
Created June 16, 2011 10:21
Tapestry 5 performance results for 5000 elements
dashorst$ ab -n 100 http://localhost:8080/tapestryapp/products/5000
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Jetty(6.1.16)
Server Hostname: localhost
@dashorst
dashorst / gist:1029011
Created June 16, 2011 10:22
Wicket 1.5-SNAPSHOT performance results for 5000 elements
dashorst$ ab -n 100 http://localhost:8080/wicketapp/products/5000
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Jetty(6.1.16)
Server Hostname: localhost
@dashorst
dashorst / gist:1029016
Created June 16, 2011 10:26
Wicket 1.5-SNAPSHOT performance results for 5000 elements with repeatingviews
dashorst$ ab -n 100 http://localhost:8080/wicketapp/products2/5000
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Jetty(6.1.16)
Server Hostname: localhost
@dashorst
dashorst / gist:1029019
Created June 16, 2011 10:29
Wicket 1.5-SNAPSHOT performance results for 5000 elements with repeatingview and Tapestry style categories
dashorst$ ab -n 100 http://localhost:8080/wicketapp/products3/5000
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Jetty(6.1.16)
Server Hostname: localhost
@dashorst
dashorst / gist:1689416
Created January 27, 2012 15:53
Error while pushing to github
> git push
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (18/18), 2.66 KiB, done.
Total 18 (delta 11), reused 0 (delta 0)
remote: /data/github/current/lib/github/config/resque.rb:27: undefined method `constantize' for "GitHub::Jobs::UpdateParticipationGraph":String (NoMethodError)
remote: from /data/github/current/lib/github/config/resque.rb:26:in `each'
remote: from /data/github/current/lib/github/config/resque.rb:26
remote: from /data/github/current/lib/rock_queue.rb:9:in `require'
@dashorst
dashorst / MongoFilter.java
Created April 14, 2013 20:29
Mongo wicket example connection provider. The MongoFilter was created as a servlet Filter because we also wanted to enable mongo through our rest api. A wicket filter would not be accessible through the rest api.
package com.example.mongo;
import java.io.IOException;
import javax.inject.Inject;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
@dashorst
dashorst / gist:6268094
Last active December 21, 2015 06:59
Test for code analysis by Eclipse
package testproject;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
public class Test {
public void deadCodeAfterAssertNotNull() {
assertNotNull(null);
fail("");
}
@dashorst
dashorst / wicket-rfc-0001.txt
Last active February 15, 2021 06:23
Apache Wicket is an open source Java component oriented web application framework. This document specifies modernization to the way Wicket handles PageParameters in the processing of requests and the lifecycle of Page components, based on the specifications done for JAX-RS (JSR-311 and JSR-339).
Please see https://github.com/dashorst/wicket-rfcs/blob/master/wicket-rfc-0001.txt for the RFC.
Please comment either inline in the github repository, or reply to the message
thread on the [email protected] mailing list.
@dashorst
dashorst / gist:6351377
Created August 27, 2013 09:10
Thread dump of hung eclipse using jboss tools and trying to configure validation settings in Preferences
jstack 76650
2013-08-27 10:28:10
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode):
"Thread-86" daemon prio=5 tid=0x000000011a066000 nid=0x17c2b runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Attach Listener" daemon prio=5 tid=0x0000000119a7c000 nid=0x18307 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE