Skip to content

Instantly share code, notes, and snippets.

View bleathem's full-sized avatar

Brian Leathem bleathem

View GitHub Profile
show_lines = function (event) {
$(event.fragment).each(function(count, elem) {
var code = $(this);
highlight_fragment(code);
})
};
highlight_fragment = function (code) {
var data_prettify = code.attr('data-prettify')
var data_prettify_lines = code.attr('data-prettify_lines')
@bleathem
bleathem / gist:2712925
Created May 16, 2012 18:42
Error running the Awestruct Atomizer extension
Generating: /home/bleathem/awestruct/site/_site/feed.atom
undefined method `fast_xs' for nil:NilClass
/var/lib/gems/1.9.1/gems/hpricot-0.8.6/lib/hpricot/traverse.rb:827:in `set_attribute'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/context_helper.rb:44:in `block in fully_qualify_urls'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/context_helper.rb:43:in `each'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/context_helper.rb:43:in `fully_qualify_urls'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/extensions/template.atom.haml:39:in `block (2 levels) in render'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/extensions/template.atom.haml:21:in `each'
/var/lib/gems/1.9.1/gems/awestruct-0.4.2.x6/lib/awestruct/extensions/template.atom.haml:21:in `block in render'
/var/lib/gems/1.9.1/gems/haml-3.1.4/lib/haml/engine.rb:191:in `eval'
/*
* JBoss, Home of Professional Open Source
* Copyright , Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@bleathem
bleathem / gist:2377510
Created April 13, 2012 15:04
slidfast component enabled mobile page
<!DOCTYPE html>
<html lang="en">
<ui:composition template="/WEB-INF/templates/mobile.xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:slidfast="http://richfaces.org/slidfast">
<ui:define name="content">
09:44:25,730 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jboss-as-kitchensink-rf].[FacesServlet]] (http--0_0_0_0_0_0_0_0-8080-2) Servlet.service() for servlet FacesServlet threw exception: javax.faces.view.facelets.FaceletException
at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.createHandler(AbstractTagLibrary.java:309) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.tag.AbstractTagLibrary.createTagHandler(AbstractTagLibrary.java:678) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.tag.CompositeTagLibrary.createTagHandler(CompositeTagLibrary.java:184) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TagUnit.createFaceletHandler(TagUnit.java:120) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TextUnit.createFaceletHandler(TextUnit.java:117) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.CompilationUnit.getNextFaceletHandler(CompilationUnit.java:115) [jsf-impl-2.1
09:58:30,407 INFO [org.jboss.as.repository] (management-handler-threads - 3) JBAS014900: Content added at location /opt/jboss/jboss-as-7.1.0.Final/standalone/data/content/34/ce80eb15f72f5c37890a5e36e8a047aa01d564/content
09:58:30,410 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "test.war"
09:58:30,494 INFO [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for primary
09:58:30,540 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment test.war
09:58:30,542 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-6) JNDI bindings for session bean named MemberRegistration in deployment unit deployment "test.war" are as follows:
java:global/test/MemberRegistration!org.jboss.as.quickstarts.kitchensink.service.MemberRegistration
java:app/test/MemberRegistration!org.jboss.as.quickstarts.kitchensink.service.MemberRegistration
java:module/Me
-------------------------------------------------------------------------------
Test set: org.jboss.as.quickstarts.kitchensink.test.MemberRegistrationTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.768 sec <<< FAILURE!
org.jboss.as.quickstarts.kitchensink.test.MemberRegistrationTest Time elapsed: 0 sec <<< ERROR!
java.lang.IllegalArgumentException: host must not be null
at org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext.<init>(HTTPContext.java:41)
at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:121)
at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:115)
at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:156)
21:09:49,982 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA-redhat-1
21:09:50,825 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA-redhat-1
21:09:50,945 INFO [org.jboss.as] JBAS015899: JBoss EAP 6.0.0.Beta1 (AS 7.1.0.Final-redhat-1) starting
21:09:54,098 INFO [org.xnio] XNIO Version 3.0.3.GA-redhat-1
21:09:54,111 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
21:09:54,147 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA-redhat-1
21:09:54,163 INFO [org.jboss.remoting] JBoss Remoting version 3.2.2.GA-redhat-1
21:09:54,214 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
21:09:54,229 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
21:09:54,266 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
21:17:01,115 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000231: Schema export unsuccessful: org.hibernate.tool.hbm2ddl.ImportScriptException: Error during statement execution (file: '/import.sql'): insert into Member (id, name, email, phone_number) values (0, 'John Smith', '[email protected]', '2125551212')
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:452) [hibernate-core-4.0.2.Final-redhat-1.jar:4.0.2.Final-redhat-1]
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:379) [hibernate-core-4.0.2.Final-redhat-1.jar:4.0.2.Final-redhat-1]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305) [hibernate-core-4.0.2.Final-redhat-1.jar:4.0.2.Final-redhat-1]
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294) [hibernate-core-4.0.2.Final-redhat-1.jar:4.0.2.Final-redhat-1]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:458) [hibernate-core-4.0.2.Final-redhat-1.
[~]> ack-grep --nocss --nojs --noxml -i tabindex ~/workspace/richfaces/components/
/home/bleathem/workspace/richfaces/components/input/api/src/main/java/org/richfaces/component/InplaceComponent.java
47: int getTabindex();
/home/bleathem/workspace/richfaces/components/input/ui/src/main/java/org/richfaces/component/AbstractInplaceInput.java
63: public abstract int getTabindex();
/home/bleathem/workspace/richfaces/components/input/ui/src/main/java/org/richfaces/component/AbstractInplaceSelect.java
61: public abstract int getTabindex();