« first day (56 days earlier)      last day (682 days later) » 

2:12 AM
(:
is the tavern script really running?
 
Hmmm... it is, not sure why it's not working
Maybe it doesn't like having two users in there :-)
 
2:29 AM
works in here
 
 
14 hours later…
4:15 PM
...test...
hmmm
I think maybe I need to change to only one poll, for the bridge itself, rather than having each user have his/her own poller
I'll need to ask for advice from @balpha next time I see him
 
each user has an individual poller?
 
@rchern at the moment, yes
each XMPP user is represented by an object of class SOXMPP_LoggedInUser
each SOXMPP_LoggedInUser object has an SOChatFeed object
the SOChatFeed object polls the JSON feed, and when new messages arrive, sends them to the user
but I'm now thinking maybe the bridge itself should have a single SOChatFeed, which polls and sends all messages to everyone in all rooms, which was how I originally had it coded
I just need to figure out if, once I have authentication working, if there will be information in the JSON feed specific to each user... like, if somone @rchern s you, does your JSON feed show something that an unauthenticated user's JSON feed doesn't?
 
4:31 PM
yeah, if you're doing authentication stuff you'd need it
but also what if broadcasting/delivering a message to one person fails?
 
If so, your SOXMPP_LoggedInUser will continue to need its own feed
@rchern sending a message from XMPP to SO Chat? Or vise-versa?
maybe each room should have a feed, from which it extracts only messages, edits, joins/leaves, etc, and each user should have their own feed, from which is extracts only authentication events
idk, need to investigate more :-)
 
 
1 hour later…
5:41 PM
@The Beam me up, Scotty.
Do I need to create an account with your server?
 
Consider yourself beamed
@radp Nope. You joined the_tavern
this room is xmpp@msochat.smart-safe-secure.com
 
I guess that goes under "Resource"
Do I need to put login details at all?
 
@radp "Resource" is where you're connecting from, so users can tell if you're on your laptop, or desktop, etc
 
mkay, but I guess that doesn't go in the server entry.
 
@radp do you have an existing jabber account? If not, then you'll need to register an account, smart-safe-secure.com has open registration
 
5:44 PM
oh, okay, I do need to create an account. ;)
 
Attempt 1, network error.
Port 5222? SSL?
 
I thought you were mediumdeviation but that's @Yi
@radp Port 5222, TLS
server: jabber.smart-safe-secure.com
 
Still network error.
 
connect to server jabber.smart-safe-secure.com. When you're connected, join the room "the_tavern" or "xmpp" on server: msochat.smart-safe-secure.com
@radp Hmmm. Using which client?
 
5:47 PM
I'll start over.
I'm using Telepathy/Empathy.
Okay. So:
Create a new account on the server. Login ID. Password. Encryption required (TLS/SSL): Yes. Ignore SSL certificate errors: Yes. Server: jabber.smart-safe-secure.com. Port 5222. Use old SSL: No.
RIght?
 
@radp Should be, right, yes
 
@TheUnhandledException password overflow :P
and network error.
 
@radp Hm. :-/
 
weird, the port is open.
$ nmap jabber.smart-safe-secure.com -p 5222 #snipped
PORT STATE SERVICE
5222/tcp open unknown
 
try just connect server: smart-safe-secure.com
if that still fails, I will create the account for you
 
5:55 PM
 
@radp That should work... if not, try server: smart-safe-secure.com
 
neither brings me joy
 
try username: badp password: sochatRocks
 
Still no joy.
 
how odd...
try disabling SSL/TSL...
 
6:02 PM
Nope.
 
I have no idea what's wrong :-(
 
It's probably a silly error that Empathy, for lack of anything better to say, defaults to "Network Error"
 
@radp Agreed. I'm going to make some lunch, I'll do some tests when I get back. Have some bugs with the script to fix anyway :-)
 
 
2 hours later…
7:45 PM
...testing...
Damn, I broke it :-(
...testing again...
Damn
What did I do? :-p
 
8:34 PM
...test?
...test....
cry
 
there there
you're still with us
 
8:53 PM
@radp LOL. Thanks :-)
I just wish I knew Ruby better, LOL
this is a great way to learn though
 
@TheUnhandledException { |no| You don't} :P
 
@radp you're in Italy at a University, right?
 
yes.
 
I have a friend in a Washington State university who can never connect to my Jabber server, never could determine why
 
um, I'm at home right now.
 
8:54 PM
In the end I decided his campus network must be blocking me somehow
 
I thought you were talking more generally.
 
Ok. Scratch that theory :-)
 
It's 2254 :)
if I was in university at this time that'd mean I'd be at college and then definitely not at my desk.
 
I wasn't sure if you stayed on campus :-)
 
Campus? E_NOENT
What's this "campus" thing you're talking about?
 
8:56 PM
Like, in a dorm building at the school
 
wat
you mean people sleep by their schools?
that's crazy talk man.
people obviously either rent a house nearby or commute to university.
 
I'm only half joking there btw
 
yeah when I went to college, I lived on campus in a dorm. Furniture, net access, food all provided by the school
@radp I figured :-)
 
Our uni offers like a couple hundred beds.
out of 10k attendants
 
8:58 PM
wow, yeah, different from mine
I don't know the numbers but probably 65%-75% lived on campus
...testing again...
 
@TheUnhandledException my uni, let me show you it
(no I don't expect you to come back to me with a similar chart)
(let it be known however that the highlighting is free handed.)
 
9:37 PM
Sorry stepped AFK @radp
@radp Nice freehanded highlights
 
hehehe
 
no freehand circles even?
-1.
 
Nope, not a one
I accept the -1 @rchern :-)
It does, however, have interactive highlighing
But, I didn't do that :-)
 
hehehe
 
9:43 PM
(testing)
Ah ha, found the problem
I knew it was odd that I suddenly needed an extra for-each looping construct, lol
...test...
nice
bridge works again
Hopefully I fixed the double-message bug
and maybe you can see messages in the_tavern@msochat.smart-safe-secure.com now @rchern
@rchern do you see any messages via XMPP?
 
aye, both rooms
 
awesome
I'm polling only once per bridge now, not once per user
Now to fix #12: Decode HTML Entities
 
9:59 PM
opens repository and wonders what Ruby looks like
 
It's a fun language :-)
 
looks ugh (;
 
LOL
It's very different from what I'm used to
Ah ha, again SO to the rescue:
4
Q: How to encode/decode html entities in ruby

vrinekI am trying to decode some HTML entities ('&lt;' => '<'). I have found an old gem (http://github.com/tma/html_helpers/) but it seems to have been abandoned twice. Any recommendations? (will need to use it in a model)

@rchern I'm restarting the script, be prepared to be kicked off :-)
ok...
I'm testing this "html entity decode" stuff :-)
oh yeah
that's the stuff
now let's see what happens when I onebox!
 
o: it gave me no indication when i got kicked off
 
4
Q: How to encode/decode html entities in ruby

vrinekI am trying to decode some HTML entities ('&lt;' => '<'). I have found an old gem (http://github.com/tma/html_helpers/) but it seems to have been abandoned twice. Any recommendations? (will need to use it in a model)

@rchern me neither. You need to leave and rejoin room
ok, well onebox still looks like poop
but, that can be a new Trac ticket, I consider #12 closed
Next I'm going to try to make the room's user list show the users who are in the SO chat room
 
10:12 PM
it doesn't seem like trillian can save conference rooms so that i don't have to enter in the info each time
 
that's easier said than done...
@rchern Hmmm... I don't know trillian very well. I use Pidgin
 
yeah i've used that before
 
( testing )
hm, that doesn't look italic over XMPP either. But I'm not sending it HTMl encoded.. A new bug :-)
Actually this is still the same bug. I'll bet that the text I send to the xmpp4r library gets HTML encoded... so I need to find a way to send raw XML to the XMPP client, then I can remove the HTML entities decoder I just added.
 

« first day (56 days earlier)      last day (682 days later) »