This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define lll h> | |
#define ll1l <stdlib | |
#define ll11 <time | |
#define l11l time | |
#define l1l1 <stdio | |
#define l1ll sleep | |
#define False 1111.111 | |
#define inc1ude2 ll1l.lll | |
#define includeZ ll11.lll | |
#define include2 l1l1.lll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hadoop: 0.20.203.0 | |
hbase: 0.90.4 | |
system: CentOS release 5.6 (Final) Linux 2.6.18-238.19.1.el5 | |
HDFS is running fine (tested) | |
------------ hbase-site.xml | |
<configuration> | |
<property> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pseudo distributed Hbase install (using Cloudera distribution) | |
# (all daemons running in one machine) | |
# | |
# Parameters: | |
# $java_installer = Oracle's java rpm.bin file, recommended by Cloudera | |
# Requires: | |
# java installer downloaded and present | |
# | |
# Parameter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<presence from="[email protected]/casa"> | |
<status>Ouvindo música...</status> | |
</presence> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<message to="[email protected]/escitorio" | |
from="[email protected]/casa" | |
type="chat" > | |
<body>Cadê você?</body> | |
</message> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iq type="set" id="an_id" | |
from="[email protected]/casa" | |
to="talleye.com"> | |
<query xmlns="jabber:iq:roster"/> | |
</iq> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// config.js | |
var Config = { | |
API_KEY: 'YOUR_COLLECTA_API_KEY', | |
BOSH_SERVICE: 'http://collecta.com/xmpp-httpbind', | |
HOST: "guest.collecta.com" | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// initiating a BOSH connection to create an anonymous connection to the Collecta XMPP server | |
connection = new Strophe.Connection(Config.BOSH_SERVICE); | |
connection.connect(Config.HOST, null, onConnect); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// real-time-comparison.js | |
function onConnect(status) | |
{ | |
if (status == Strophe.Status.CONNECTING) { | |
// ... outros status | |
} else if (status == Strophe.Status.CONNECTED) { | |
// adding one handler for each type of XMPP stanza | |
connection.addHandler(onPresence, null, 'presence', null, null, null); | |
connection.addHandler(onIq, null, 'iq', null, null, null); | |
connection.addHandler(onMessage, null, 'message', null, null, null); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onPresence(prs) { | |
// in this case, presence got from the XMPP server means to activate UI and allow user to enter the 2 terms to compare | |
console.log("Got presence!"); | |
anonymous_jid = $(prs).attr('to'); | |
// ... outras coisas | |
return true; | |
} |
OlderNewer