Skip to content

Instantly share code, notes, and snippets.

View chadmoone's full-sized avatar

Chad Moone chadmoone

View GitHub Profile
@chadmoone
chadmoone / gist:2468102
Created April 23, 2012 01:31
Service failing to delete nested object
Started PUT "/frames/FDD5CD25-5228-4D66-A689-2B1355A34F9F" for 127.0.0.1 at 2012-04-22 21:22:37 -0400
Processing by FramesController#update as JSON
Parameters: {"frame"=>{"id"=>"FDD5CD25-5228-4D66-A689-2B1355A34F9F", "label"=>"2228", "x"=>345, "created_at"=>"2012-04-23 00:01:26 +0000", "y"=>15, "width"=>270, "type"=>"VideoFrame", "_destroy"=>0, "updated_at"=>"2012-04-23 01:17:50 +0000", "height"=>255, "section_id"=>"66300105-3151-4DD7-96A3-85854A841391", "text"=>"<p><span class=\"VBScriptSceneObjectType\" id=\"8A8728ED-F6F4-45C5-8CCE-EB89C3869B40\">I/E. LOCATION - DAY</span></p>\n<p><span class=\"VBScriptCharacterObjectType\" id=\"2747BDD4-8491-464C-BAAA-9CF3F41C8C4F\">TONY</span></p>\n<p><span class=\"VBScriptDialogObjectType\" id=\"0DD0FD55-498A-469C-8FA2-384847E6F3D0\">hi there</span></p>\n<p><span class=\"VBScriptActionObjectType\" id=\"7ABCFE51-70EC-49B7-8E64-9EF2B9AE6906\">this is an actions</span></p>\n<p><span class=\"VBScriptActionObjectType\" id=\"A5498F6A-A746-48B5-B4C2-272AB26FAA71\">actions</sp
@chadmoone
chadmoone / gist:1671902
Created January 24, 2012 19:01
VBLassoView Crash
2012-01-24 13:57:40.491 BuilderPrototypeA[68801:707] WILLVideoFrame successfully updated
2012-01-24 13:57:41.110 BuilderPrototypeA[68801:707] frames view controller was notified.
2012-01-24 13:57:42.466 BuilderPrototypeA[68801:707] frames view controller was notified.
2012-01-24 13:57:44.384 BuilderPrototypeA[68801:707] frames view controller was notified.
2012-01-24 13:57:44.519 BuilderPrototypeA[68801:707] Parsing message from user: 2 with appID: C60A5C0593BE465F80560119D6FA0523688010003AF914136EB33
2012-01-24 13:57:44.549 BuilderPrototypeA[68801:707] WILLLock successfully deleted
2012-01-24 13:57:44.558 BuilderPrototypeA[68801:707] Parsing message from user: 2 with appID: C60A5C0593BE465F80560119D6FA0523688010003AF914136EB33
2012-01-24 13:57:44.559 BuilderPrototypeA[68801:707] Parsing message from user: 2 with appID: C60A5C0593BE465F80560119D6FA0523688010003AF914136EB33
2012-01-24 13:58:12.407 BuilderPrototypeA[68801:707] Parsing message from user: 5 with appID: 0F9DDFB45BE44151BD0B62D81C337CB7613320000FFC
2012-01-19 20:42:06.210 BuilderPrototypeA[33084:707] Parsing message from user: 7 with appID: 6BE2D873F36D4484A01A1D94113F4763974710002084B164ACA75
2012-01-19 20:42:06.244 BuilderPrototypeA[33084:707] Parsing message from user: 7 with appID: 6BE2D873F36D4484A01A1D94113F4763974710002084B164ACA75
2012-01-19 22:00:39.845 BuilderPrototypeA[33084:707] Connection Error, attempting reconnection in 1 second
2012-01-19 22:00:42.169 BuilderPrototypeA[33084:707] XMPP User Connected
2012-01-19 22:00:42.269 BuilderPrototypeA[33084:707] Joined XMPP room: builder@conference.builder.local
2012-01-19 22:00:42.274 BuilderPrototypeA[33084:707] Joined XMPP room: ffa081222d98cfdaeffc20fba6dbeaf2166380dc0ff50c0f02@conference.builder.local
2012-01-19 22:00:42.278 BuilderPrototypeA[33084:707] Parsing message from user: 7 with appID: 998AB655F9E44576809FF73EAECDB25B968910002078B96111746
2012-01-19 22:00:42.279 BuilderPrototypeA[33084:707] Parsing message from user: 7 with appID: 998AB655F9E44576809FF73EAECDB25B968910002078B96111746
2
@chadmoone
chadmoone / gist:1609043
Created January 13, 2012 22:14
NSObject drawing grid onto NSView
// In View Class
- (void)drawRect:(CGRect)dirtyRect
{
// Draw the background
NSGraphicsContext* theContext = [NSGraphicsContext currentContext];
[theContext saveGraphicsState];
[[NSGraphicsContext currentContext] setPatternPhase:NSMakePoint(0,[self.superview bounds].size.height)];
[_backgroundColor set];
NSRectFill([self bounds]);
@chadmoone
chadmoone / gist:1371970
Created November 17, 2011 00:16
Undo-Redo Idea
- (IBAction)createFrame:(id)sender
{
NSString *frameType = [frameTypeComboBox stringValue];
id newFrame = (NSManagedObject *)[NSClassFromString(frameType) createEntity];
[newFrame setValue:frameType forKey:@"frameType"];
[newFrame setValue:[[sectionObjectController content] valueForKey:@"identifier"] forKey:@"sectionID"];
[self addObjectToFramesArrayController:newFrame];
}
@chadmoone
chadmoone / gist:1271379
Created October 7, 2011 21:24
lock issues
def update
@text_frame = TextFrame.find(params[:id])
# lock already exists, so this will return the existing lock
lock = Lock.new(current_user, @text_frame, "text_frame", params[:text_frame][:last_modified])
if (!lock.save)
# handle error here, send bad status code and message
end
@chadmoone
chadmoone / gist:1023734
Created June 13, 2011 21:20
Bug in SC.Record or SC.Store
// ==========================================================================
// Project: RecordBug
// Copyright: @2011 My Company, Inc.
// ==========================================================================
/*globals RecordBug */
RecordBug = SC.Application.create({
store: SC.Store.create().from(SC.Record.fixtures)
});
@chadmoone
chadmoone / testing_gist.rb
Created November 16, 2010 22:31
just testing this out.
require 'spec_helper'
describe "Users" do
describe "signup" do
describe "failure" do
it "should not make a new user" do
lambda do
visit signup_path