Skip to content

Instantly share code, notes, and snippets.

View pachun's full-sized avatar
🎯
Focusing

Nick Pachulski pachun

🎯
Focusing
View GitHub Profile
@pachun
pachun / gem_trouble
Created July 5, 2012 14:29
trouble creating a gem
My directory structure is this:
| - rest-in-motion.gemspec
| - /lib
| - rest-in-motion.rb
| - /rest-in-motion
|
| - 5 .rb files that make up the gem
The contents of rest-in-motion.gemspec are:
@pachun
pachun / restkit_ccp_build
Created July 6, 2012 15:32
build output of an empty project using cocoapods 1.0.5 w/ 1 dependency: 'RestKit'
Build ./build/iPhoneSimulator-5.1-Development
Build vendor/Pods
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = build
SDKROOT = iphonesimulator5.1
=== BUILD NATIVE TARGET Pods OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies
//
// ViewController.m
// ColorTest
//
// Created by Paul Marano on 7/13/12.
// Copyright (c) 2012 Cogent Technologies, Inc. All rights reserved.
//
#import "ViewController.h"
#import "ASIHTTPRequest.h"
@pachun
pachun / motion error
Created November 13, 2012 22:02
motion error
pachun@pepe-78 ~/motion/cancer (master●)$ rake retina=4 [ruby-1.9.3-p286]
Build ./build/iPhoneSimulator-6.0-Development
Build vendor/Pods
Compile ./app/controller/quiz_vc.rb
Link ./build/iPhoneSimulator-6.0-Development/cancer.app/cancer
Create ./build/iPhoneSimulator-6.0-Development/cancer.dSYM
Simulate ./build/iPhoneSimulator-6.0-Development/cancer.app
(main)> *** simulator session ended with error: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "The simulated application quit." UserInfo=0x100417f30 {NSLocalizedDescription=The simulated application quit., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
rake aborted!
Command failed with status (1): [DYLD_FRAMEWORK_PATH="/Applications/Xcode.a...]
@pachun
pachun / Rakefile
Created December 24, 2012 17:38 — forked from adelevie/Rakefile
app.libs << '/usr/lib/libz.1.1.3.dylib'
app.libs << '/usr/lib/libsqlite3.dylib'
app.frameworks += [
'AudioToolbox',
'Accounts',
'AdSupport',
'CFNetwork',
'CoreGraphics',
'CoreLocation',
'MobileCoreServices',
class TestVC < UIViewController
attr_accessor :hello
def viewDidLoad
super
@hello = 5
@goodbye = 3
puts "view did load:\n@hello = #{@hello}\n@goodbye = #{@goodbye}"
end
Incident Identifier: CB0DBA77-FA71-4D3C-BDFF-0D6D625FF88D
CrashReporter Key: b810119dddf8f33bb1195bb3b4b1424e81273d30
Hardware Model: iPhone5,1
Process: mlp [22017]
Path: /var/mobile/Applications/86FB2D6F-8D30-4771-A955-75D7DA1FC2EF/mlp.app/mlp
Identifier: mlp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
class Client
attr_accessor :socket, :thread, :connection_time
def initialize(socket)
@socket = socket
@connection_time = Time.now
end
def run
@thread = Thread.start do
require 'socket'
socket = TCPSocket.open('localhost', 6969)
socket.puts('CHAT')
msg = socket.gets
puts "sent:CHAT received:#{msg}"
<!DOCTYPE html>
<html>
<head>
<title>Chat Server - Nick Pachulski</title>
<link href="../static/chat.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id='header'>
</div>
</body>