Skip to content

Instantly share code, notes, and snippets.

View solars's full-sized avatar

Christoph Blank solars

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://xmlme.com/WebServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://xmlme.com/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://xmlme.com/WebServices">
<s:element name="FindSportingGoods">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Search" type="s:string" />
</s:sequence>
</s:complexType>
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://xmlme.com/WebServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://xmlme.com/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://xmlme.com/WebServices">
<s:element name="FindSportingGoods">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Search" type="s:string" />
</s:sequence>
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="WeatherService" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="WeatherService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="WeatherService">
<s:import namespace="http://www.w3.org/2001/XMLSchema" />
<s:element name="GetWeatherDataSet">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="cityName" type="s:string" />
module WSDL
NS_WSDL = 'http://schemas.xmlsoap.org/wsdl/'
class Operation
include HappyMapper
register_namespace 'wsdl', NS_WSDL
namespace 'wsdl'
tag 'operation'
attribute :name, String, :tag => 'name'
has_many :inputs, Input, :tag => 'input'
has_many :outputs, Output, :tag => 'output'
<%= form_tag(add_category_service_path(@service), :method => 'post', :remote => true) do %>
<%= select_tag 'service-category', options_for_select(['test'] %>
<%= submit_tag "Submit", :id => 'submit' %>
<% end %>
# controller
def add_category
respond_to do |format|
format.js {
render :text => 'fu'
sqlite> select * from users;
9|guest-127.0.0.1@example.com|$2a$10$Uu9uOnBsNfGILk8Q5QFNe.3BRfT0l8meQXHaNae6OVa/CBGmOZcdG||||0|||||2011-08-29 14:32:58.577498|2011-08-29 14:32:58.577498|127.0.0.1
sqlite> SELECT "users".* FROM "users" WHERE "users"."ip" = '127.0.0.1' LIMIT 1;
sqlite>
WARNING: [BSS2006]: No subscription header specified, ACK first non-transacted subscriptions ids with prefix /subscription-to/ for message ID:381-178.63.244.192(de:d2:3a:bf:e6:98)-36205-1313569296578
Aug 17, 2011 10:32:08 AM
SEVERE: [BSS3002]: ACK failed: [BSS4008]: Can not determine subscriber to ACK message ID:381-178.63.244.192(de:d2:3a:bf:e6:98)-36205-1313569296578. Please specify subscription header on STOMP connection 5431395949533843200[null]
com.sun.messaging.bridge.service.stomp.StompProtocolException: [BSS4008]: Can not determine subscriber to ACK message ID:381-178.63.244.192(de:d2:3a:bf:e6:98)-36205-1313569296578. Please specify subscription header
at com.sun.messaging.bridge.service.stomp.StompConnection.ackNonTransacted(StompConnection.java:394)
at com.sun.messaging.bridge.service.stomp.StompProtocolHandler.onACK(StompProtocolHandler.java:699)
at com.sun.messaging.bridge.service.stomp.StompProtocolFilter.execute(StompProtocolFilter.java:127)
at com.sun.grizzly.DefaultProtocolChain.executeP
2011-07-11 - 2011-07-12
2011-07-13 - 2011-07-15
2011-07-19 - 2011-07-19
2011-07-20 - 2011-07-20
->
2011-07-11 - 2011-07-15
2011-07-19 - 2011-07-20
class Daterange
include Mongoid::Document
field :from, type: Date
field :to, type: Date
end
class Person
include Mongoid::Document
field :name, type: String
embeds_many :dateranges
require 'rubygems'
require 'bundler'
Bundler.setup
require 'premailer'
io = File.open("test.html")
premailer = Premailer.new(io, :warn_level => Premailer::Warnings::SAFE)
puts premailer.to_inline_css