Skip to content

Instantly share code, notes, and snippets.

@LightGuard
LightGuard / backend-documentation.asciidoc
Last active December 15, 2015 20:58
WIP asciidoctor backend documentation and exploration, based upon dzslide rendering

Asciidoctor Backend Documentation

What is a backend?

How do I create a new backend?

Which sections are used?

@LightGuard
LightGuard / hpricot_index.html
Created February 27, 2013 18:11
hpricot vs nokogiri output
<!DOCTYPE html SYSTEM>
<html>
<head>
<meta charset="utf-8" />
<title>News and information from LightGuardjp :</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<style>
body {
padding-top: 60px;
}
@LightGuard
LightGuard / gist:4675105
Created January 30, 2013 17:49
RWP F2F DeltaSpike Presentation
Apache DeltaSpike Overview
==========================
Jason Porter
v1.0, Feb 2013
:title: Apache DeltaSpike Overview
:description: Brief 20 minute overview of Apache DeltaSpike for RWP F2F 2013
:copyright: CC BY-SA 2.0
:imagesdir: images
:backend: dzslides
:linkcss: true
asciidoctor(1)
==============
:doctype: manpage
NAME
----
asciidoctor - converts an AsciiDoc text file to HTML, DocBook and other formats
@LightGuard
LightGuard / reinstall-silverlight.sh
Created January 29, 2012 00:32
reinstall Silverlight on the Mac
#!/bin/sh
killall Safari
killall Google\ Chrome
rm -rf /Library/Internet\ Plug-Ins/Silverlight.plugin
hdiutil attach /Users/tessieporter/Downloads/Silverlight-1.dmg
installer -pkg /Volumes/Silverlight/Silverlight.pkg/ -target "/"
hdiutil detach /Volumes/Silverlight
@LightGuard
LightGuard / gist:1321262
Created October 28, 2011 00:09
seam security create group and add user to group
@Inject
private IdentitySession identitySession;
@Inject
private Identity identity;
@Inject
private UserTransaction tx;
@Before
@LightGuard
LightGuard / gist:1315602
Created October 26, 2011 06:18
SEAMFACES-210 idea
diff --git a/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java b/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
index 8d9cc59..610be78 100644
--- a/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
+++ b/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
@@ -59,6 +60,14 @@ public class ViewConfigExtension implements Extension {
log.warn("ViewConfig annotation should only be applied to interfaces, and [" + tp.getJavaClass()
+ "] is not an interface.");
} else {
+ // SEAMFACES-210
+ boolean securityNotFound = false;
public void handleAuthorizationException(@Handles CaughtException<AuthorizationException> evt) {
String newTrace = new ExceptionStackOutput(evt.getException(), new StackFrameFilter() {
public StackFrameFilterResult process(StackFrame frame) {
return StackFrameFilterResult.TERMINATE;
}).printTrace();
messages.error("You do not have the necessary permissions to perform that operation", "");
evt.handled();
}
@LightGuard
LightGuard / google_feed_usage.html
Created May 31, 2011 18:33
Google Feed API usage
<!DOCTYPE html PUBLIC "-//W4C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Search API Sample</title>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
/*
* How to load a feed via the Feeds API.
*/
@LightGuard
LightGuard / gist:978094
Created May 18, 2011 06:44 — forked from peteroyle/gist:978086
proposed module struture
parent
- combined
- dist
- src
- main
- assembly (contains assembly.xml, licence.txt, notice.txt, readme.txt)
- docs
- src
- main
- assembly (contains assembly.xml)