This file contains 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
diff --git a/iphone/Classes/FacebookModule.h b/iphone/Classes/FacebookModule.h | |
index d52bd55..b073a57 100644 | |
--- a/iphone/Classes/FacebookModule.h | |
+++ b/iphone/Classes/FacebookModule.h | |
@@ -11,7 +11,7 @@ | |
#import "FBConnect.h" | |
#import "KrollCallback.h" | |
-@interface FacebookModule : TiModule<FBSessionDelegate,FBDialogDelegate,FBRequestDelegate> { | |
+@interface FacebookModule : TiModule<FBSessionDelegate,FBDialogDelegate,FBRequestDelegate,FBSessionDelegate> { |
This file contains 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
diff --git a/iphone/Classes/MediaModule.m b/iphone/Classes/MediaModule.m | |
index cf7a9ca..94acd33 100644 | |
--- a/iphone/Classes/MediaModule.m | |
+++ b/iphone/Classes/MediaModule.m | |
@@ -1031,6 +1031,10 @@ if (![TiUtils isIOS4OrGreater]) { \ | |
image = [editingInfo objectForKey:UIImagePickerControllerOriginalImage]; | |
} | |
media = [[[TiBlob alloc] initWithImage:image] autorelease]; | |
+ [dictionary setObject:[NSNumber numberWithFloat:image.size.width] forKey:@"width"]; | |
+ [dictionary setObject:[NSNumber numberWithFloat:image.size.height] forKey:@"height"]; |
This file contains 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
(gdb) backtrace | |
#0 0x90032066 in __semwait_signal () | |
#1 0x90031d22 in _pthread_cond_wait () | |
#2 0x90083243 in pthread_cond_wait$NOCANCEL$UNIX2003 () | |
#3 0x9006548c in pthread_rwlock_rdlock$UNIX2003 () | |
#4 0x00040614 in -[TiViewProxy childWillResize:] (self=0x79422e0, _cmd=0x29ea2a, child=0x79427a0) at /Users/masuidrive/Downloads/ti/test4/build/iphone/Classes/TiViewProxy.m:1177 | |
#5 0x0003ee0b in -[TiViewProxy layoutChild:optimize:] (self=0x79422e0, _cmd=0x28d217, child=0x79427a0, optimize=0 '\000') at /Users/masuidrive/Downloads/ti/test4/build/iphone/Classes/TiViewProxy.m:789 | |
#6 0x0004c7b5 in -[TiUIView relayout:] (self=0x7d538c0, _cmd=0x28f674, bounds={origin = {x = 0, y = 0}, size = {width = 0, height = 0}}) at /Users/masuidrive/Downloads/ti/test4/build/iphone/Classes/TiUIView.m:383 | |
#7 0x0004ac05 in -[TiUIView updateLayout:withBounds:] (self=0x7d538c0, _cmd=0x28d609, layout_=0x0, bounds={origin = {x = 0, y = 0}, size = {width = 0, height = 0}}) at /Users/masuidrive/Downloads/ti/test4/build/iphone/Classes |
This file contains 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
setenv XCODE_VERSION_MAJOR 0300 | |
setenv XCODE_VERSION_MINOR 0320 setenv YACC /Developer/usr/bin/yacc | |
/bin/sh -c "\"/Volumes/3rd HD/Downloads/ti/CamOl141/build/iphone/build/CamOl141.build/Release-iphoneos/CamOl141.build/Script-241EAF36118E30260081A5BE.sh\"" | |
[INFO] One moment, building ...Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.1/iphone/builder.py", line 1083, in <module> main(sys.argv) File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.1/iphone/builder.py", line 263, in main appid = os.environ['TI_APPID'] | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/UserDict.py", line 22, in __getitem__ | |
raise KeyError(key) | |
KeyError: 'TI_APPID' |
This file contains 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
/* | |
<script src="/javascripts/jquery-1.x.min.js" type="text/javascript"></script> | |
<script src="/javascripts/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script> | |
<script src="/javascripts/logger.js" type="text/javascript"></script> | |
<a href="#" onclick="console.show();return false">Open console</a> | |
*/ | |
var console = (function() { |
This file contains 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
check process redis | |
with pidfile /var/run/redis.pid | |
start program = "/usr/local/bin/redis-server /mnt/app/current/config/redis.conf" | |
stop program = "/bin/echo SHUTDOWN | nc localhost 6379" | |
if failed host 127.0.0.1 port 6379 then restart | |
if 5 restarts within 5 cycles then timeout |
This file contains 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
Titanium.UI.setBackgroundColor('#000'); | |
var win1 = Titanium.UI.createWindow({ | |
backgroundColor:'#888' | |
}); | |
win1.open(); | |
var actInd = Titanium.UI.createActivityIndicator({ | |
message: "Downloading...", | |
// undocumented feature |
This file contains 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
#!/usr/bin/env python | |
import urllib, urllib2, base64, mimetools, stat, mimetypes | |
import os | |
file = "data.bin" | |
url = r"http://localhost:3000/apps.json" | |
boundary = u"--------python" | |
file_dict = {"file": open(file, "rb")} |
This file contains 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
ProxyRequests Off | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ |
This file contains 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
PATH=$PATH:/Library/PostgreSQL/9.0/bin/ bundle install |