Skip to content

Instantly share code, notes, and snippets.

@karlbright
karlbright / thestackstruct.rb
Created August 11, 2009 09:19
The Stack...
require 'rubygems'
require 'open-uri'
require 'nokogiri'
module Distributor
module Page
def initialize(url=nil)
@page = Nokogiri::HTML(open(url))
end
end
class TheStack::Publisher::Page # basic initalize, connect functions
class TheStack::Publisher::Catalog < TheStack::Publisher::Page # catalog listing, find product etc
class TheStack::Publisher::ProductPage < TheStack::Publisher::Page # get item details, export to item etc
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[1;37m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
case $TERM in
xterm*)
$(function(){
// Set ajax logger event handlers
$("#ajaxlog").ajaxStart(function(){
$(this).text("Loading...");
}).ajaxSuccess(function(){
$(this).text("Success!");
}).ajaxError(function(){
$(this).text("Error!");
});
// Set default AJAX options
$(function(){
// Create our evolve homes object to store ajax values inside of
$.evolve = { currentPage: 'home', loadingPage: null };
// Function to handle set current page actions
$.setCurrentPage = function() {
$.evolve.currentPage = $.evolve.loadingPage;
$("body").attr('id',$.evolve.currentPage);
$.evolve.loadingPage = null;
};
# Colours
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
http_path = "/"
http_stylesheets_path = "/stylesheets"
http_images_path = "/images"
http_javascripts_path = "/javascripts"
sass_dir = "sass"
css_dir = "public/stylesheets"
images_dir = "public/images"
javascripts_dir = "public/javascripts"
» rp5 run process.rb
java.lang.SecurityException: class "arjdbc.jdbc.RubyJdbcConnection$s_method_1_0$RUBYINVOKER$select_p"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.endClass(InvocationMethodFactory.java:1281)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:755)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethod(InvocationMethodFactory.java:685)
# ____ _ _ ____ _
# | _ \ ___ | |__ ___ | |_ | _ \ ___ ___| | __
# | |_) / _ \| '_ \ / _ \| __| | |_) / _ \ / __| |/ /
# | _ < (_) | |_) | (_) | |_ | _ < (_) | (__| <
# |_| \_\___/|_.__/ \___/ \__| |_| \_\___/ \___|_|\_\
#
# 1. http://en.wikipedia.org/wiki/Special:Random
# The first article title on the page is the name of your band.
#
# 2. www.quotationspage.com/random.php3
uglyphoto on master using jruby-1.5.2@rc8 ✘
» rp5 run test.rb
java.lang.SecurityException: class "arjdbc.jdbc.RubyJdbcConnection$s_method_1_0$RUBYINVOKER$select_p"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:22)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.endClass(InvocationMethodFactory.java:1281)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:755)