Skip to content

Instantly share code, notes, and snippets.

=ERROR REPORT==== 2011-04-20 11:39:02 ===
ERROR: "E(~p:~p:~p) : Socket closed~n" - [<0.9314.2>,
ejabberd_websocket,
218,
{state,
gen_tcp,
#Port<0.155454>,
undefined,
undefined,
undefined,
@superfeedr
superfeedr / gist:920407
Created April 14, 2011 20:21
ejabberd.log
=ERROR REPORT==== 2011-04-14 16:20:52 ===
ERROR: "E(~p:~p:~p) : Socket closed~n" - [<0.22042.1>,
ejabberd_websocket,
218,
{state,
gen_tcp,
#Port<0.73601>,
undefined,
undefined,
undefined,
// A simple module to replace `Backbone.sync` with *localStorage*-based
// persistence. Models are given GUIDS, and saved into a JSON object. Simple
// as that.
// Generate four random hex digits.
function S4() {
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
};
// Generate a pseudo-GUID by concatenating random hexadecimal.
<iq type="get" to="firehoser.superfeedr.com" id="subman1">
<pubsub xmlns="http://jabber.org/protocol/pubsub" xmlns:superfeedr="http://superfeedr.com/xmpp-pubsub-ext">
<subscriptions jid="[email protected]" superfeedr:page="1"/>
</pubsub>
</iq>
<iq from="firehoser.superfeedr.com" type="result" to="[email protected]/pluto-2" id="subman1" >
<pubsub xmlns="http://jabber.org/protocol/pubsub">
require 'rubygems'
require 'superfeedr-rb' # [sudo] gem install
require 'pp'
# Blather.logger.level = Logger::DEBUG # increase log level to see XMPP traffic
# Please make sure you use your own superfeedr credentials (http://superfeedr.com/subscriber) as this account is wiped out regularly.
Superfeedr::Client.connect('[email protected]', 'yyy') do |client|
# Susbcribes to the feed :
client.feed('http://superfeedr.com/track/music') do |status, entries|
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<status xmlns="http://superfeedr.com/xmpp-pubsub-ext" feed="http://vidthru.com/index.php?format=feed&amp;type=atom">
<http code="200">24965B in 0.462649671s, 0/10 new entries</http>
<next_fetch>2011-02-04T11:11:07Z</next_fetch>
<period>900</period>
<last_fetch>2011-02-04T10:56:07Z</last_fetch>
<last_parse>2011-02-04T10:56:07Z</last_parse>
<last_maintenance_at>2011-02-03T19:32:11Z</last_maintenance_at>
</status>
@superfeedr
superfeedr / gist:809491
Created February 3, 2011 13:56
joseph.xml
<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
<title>Joseph Scott</title>
<link>http://josephscott.org</link>
<description></description>
<lastBuildDate>Wed, 02 Feb 2011 20:05:53 +0000</lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>
<language>en</language>
<!-- generator="WordPress/3.0.4" -->
<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
<title>Matt Mullenweg</title>
<link>http://ma.tt</link>
<description>Unlucky in Cards</description>
<lastBuildDate>Tue, 01 Feb 2011 17:03:03 +0000</lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>
<language>en</language>
<!-- generator="WordPress/3.1-RC3-17376" -->
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<status feed="http://www.welinux.net/feed/" xmlns="http://superfeedr.com/xmpp-pubsub-ext">
<http code="200">2169B in 0.04254683s</http>
<next_fetch>2011-02-01T16:13:40Z</next_fetch>
<period>300</period>
<last_fetch>2011-02-01T16:08:40Z</last_fetch>
<last_parse>2011-01-29T23:28:48Z</last_parse>
<last_maintenance_at>2011-01-31T23:16:22Z</last_maintenance_at>
</status>
[
{
"subscription": {
"endpoint":"http://demo.superfeedr.com/hubbub/12345",
"feed": {
"url":"http://superfeedr.com/dummy.xml"
}
}
},
{