Skip to content

Instantly share code, notes, and snippets.

View benlangfeld's full-sized avatar

Ben Langfeld benlangfeld

View GitHub Profile
2010-10-26 22:58:29.567 Cappuccino [trace]: StropheCappuccino Stanza Send:
Objective-J.js:4282010-10-26 22:58:29.568 Cappuccino [trace]: <iq id='5333:roster' type='get' xmlns='jabber:client'><query xmlns='jabber:iq:roster'/></iq>
Objective-J.js:4282010-10-26 22:58:29.882 Cappuccino [trace]: StropheCappuccino stanza received that trigger selector : TNStropheRoster._didReceiveRoster:
Objective-J.js:4282010-10-26 22:58:29.882 Cappuccino [trace]: <iq xmlns='jabber:client' to='[email protected]/5332' type='result' id='5333:roster'><query xmlns='jabber:iq:roster' ver='36'><item jid='[email protected]' subscription='to'/><item ask='subscribe' jid='call-status-listener.my.studiotalker.com' subscription='none'/><item jid='[email protected]' subscription='both'/></query></iq>
Objective-J.js:4282010-10-26 22:58:29.902 Cappuccino [trace]: StropheCappuccino Stanza Send:
Objective-J.js:4282010-10-26 22:58:29.903 Cappuccino [trace]: <presence type='probe' to='[email protected]' xmlns='jabber:client
@benlangfeld
benlangfeld / gist:647994
Created October 26, 2010 22:37
Race condition between inward presence and setting up TNStropheContact objects from roster.
2010-10-26 23:35:25.239 Cappuccino [debug]: XMPP: Connecting
Objective-J.js:4282010-10-26 23:35:26.939 Cappuccino [debug]: XMPP: Authenticating
Objective-J.js:4282010-10-26 23:35:28.429 Cappuccino [info]: XMPP: Connected
Objective-J.js:4282010-10-26 23:35:28.431 Cappuccino [trace]: StropheCappuccino Stanza Send:
Objective-J.js:4282010-10-26 23:35:28.431 Cappuccino [trace]: <iq id='6791:roster' type='get' xmlns='jabber:client'><query xmlns='jabber:iq:roster'/></iq>
Objective-J.js:4282010-10-26 23:35:28.747 Cappuccino [trace]: StropheCappuccino stanza received that trigger selector : Account._didReceiveStatus:
Objective-J.js:4282010-10-26 23:35:28.748 Cappuccino [trace]: <presence xmlns='jabber:client' to='[email protected]' from='[email protected]/385dcb5d00d915ae'><status>Available</status><delay xmlns='urn:xmpp:delay' stamp='2010-10-26T16:40:52Z' from='jabber.org'/></presence>
Objective-J.js:4282010-10-26 23:35:28.748 Cappuccino [debug]: Presence!
Objective-J.js:4282010-10-26 23:35:28.844 Cappu
var ENV = require("system").env,
FILE = require("file"),
JAKE = require("jake"),
task = JAKE.task,
FileList = JAKE.FileList,
app = require("cappuccino/jake").app,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
OS = require("os");
app ("StudioTalker", function(task)
function functionname(var1,var2)
{
if (var1 === var2)
{
var var3 = true;
}
else
{
var var3 = false;
}
- (BOOL)_didReceiveVCard:(TNStropheStanza)aStanza
{
var aVCard = [aStanza firstChildWithName:@"vCard"];
if (aVCard)
{
_vCard = aVCard;
if ((_nickname == _nodeName) && ([aVCard firstChildWithName:@"NAME"]))
_nickname = [[aVCard firstChildWithName:@"NAME"] text];
/*
* ContactView.j
* CappuccinoTalk
*
* Copyright (C) 2010 Ben Langfeld <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
Compiling [Browser] AppController.j.....
Compiling [Browser] main.j..
Compiling [Browser] Controllers/AccountsController.j...............
Compiling [Browser] Controllers/ChatWindowController.j......
Compiling [Browser] Controllers/ContactViewController.j....
Compiling [Browser] Controllers/ManageAccountsController.j........
Compiling [Browser] Controllers/NewAccountController.j....
Compiling [Browser] Frameworks/Debug/MessageBoard/MessageBoard.j..
Compiling [Browser] Frameworks/Debug/MessageBoard/TNMessageBoard.j...
Compiling [Browser] Frameworks/Debug/MessageBoard/TNMessageView.j.....
@implementation CPWebView (PublicScroller)
- (CPScrollView)scrollView
{
return _scrollView;
}
@end
class Convertor
def initialize(input_filename, force_overwrite)
@input_filename = input_filename
@force_overwrite = force_overwrite
@input_data = []
end
def convert!
read_in_data
split_comments!
create_table :numbers do |t|
t.string :phone_number
end
create_table :call_lists do |t|
t.string :type
t.string :name
t.integer :user_id
t.integer :county_id
t.integer :state_id
end