<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Two App Guys</title>
	
	<link>http://twoappguys.com</link>
	<description>Apps for the iPhone, iPad, iPod Touch, Android plus info on creating your own apps</description>
	<lastBuildDate>Tue, 28 Jun 2011 02:09:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TwoAppGuys" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="twoappguys" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">TwoAppGuys</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Mobile Lullaby</title>
		<link>http://twoappguys.com/applications/mobile-lullaby/</link>
		<comments>http://twoappguys.com/applications/mobile-lullaby/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 19:56:05 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[baby]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[lullaby]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[visuals]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=639</guid>
		<description><![CDATA[A lullaby is a soothing song, usually sung to young children before they go to sleep, with the intention of speeding that process. As a result they are often simple and repetitive. Lullabies can be found in every human culture &#8230; <a href="http://twoappguys.com/applications/mobile-lullaby/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/applications/mobile-lullaby/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>A lullaby is a soothing song, usually sung to young children before they go to sleep, with the intention of speeding that process. As a result they are often simple and repetitive. Lullabies can be found in every human culture and seem to have been used at least from the ancient period. Mobile Lullaby allows you to select a soothing visual, a relaxing song and set a time. The visual and song will play for the amount of time you select and then the screen will go dark, helping your child to sleep.</p>
<p>Mobile Lullaby was featured on <a href="http://appadvice.com">appadvice.com</a>. Here is a quote from them: </p>
<blockquote><p>&#8220;This is app is a great virtual mobile. The relaxing images and soothing music are pleasant enough to put any baby to sleep. In fact, it is so calming that I found myself using it while at work for meditative purposes.&#8221;</p></blockquote>
<p>You can check out the entire review here: <a href="http://appadvice.com/appnn/2011/06/nap-time-is-moments-away-with-mobile-lullaby">http://appadvice.com/appnn/2011/06/nap-time-is-moments-away-with-mobile-lullaby</a></p>
<p><span id="more-639"></span></p>
<h2>Screen Shots</h2>
<h3>iPad</h3>
<p><img class="alignnone size-full wp-image-641" title="mobilelullaby_ipad_screenshot_1" src="http://twoappguys.com/wp-content/uploads/2011/06/mobilelullaby_ipad_screenshot_1.jpg" alt="" width="480" height="350" /><br />
<img class="alignnone size-full wp-image-641" title="mobilelullaby_ipad_screenshot_2" src="http://twoappguys.com/wp-content/uploads/2011/06/mobilelullaby_ipad_screenshot_2.jpg" alt="" width="480" height="350" /><br />
<img class="alignnone size-full wp-image-641" title="mobilelullaby_ipad_screenshot_3" src="http://twoappguys.com/wp-content/uploads/2011/06/mobilelullaby_ipad_screenshot_3.jpg" alt="" width="480" height="350" />
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/applications/mobile-lullaby/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/applications/mobile-lullaby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Who Are We</title>
		<link>http://twoappguys.com/our-team/who-are-we/</link>
		<comments>http://twoappguys.com/our-team/who-are-we/#comments</comments>
		<pubDate>Thu, 12 May 2011 12:10:49 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Our Team]]></category>
		<category><![CDATA[about]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[smoke]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[team]]></category>

		<guid isPermaLink="false">http://iamthemes.com/themeforest/wordpress/smoke/?p=37</guid>
		<description><![CDATA[Who are the &#8220;Two App Guys&#8221;? They are John Hass (@johnjhass) and Tony Virelli (@virelli). Both guys live in Northwest Iowa (Spencer, IA). John works in telecommunications and does software development and Tony owns a web design firm (Emagine, LLC &#8230; <a href="http://twoappguys.com/our-team/who-are-we/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/who-are-we/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Who are the &#8220;Two App Guys&#8221;? They are John Hass (@johnjhass) and Tony Virelli (@virelli).</p>
<p>Both guys live in Northwest Iowa (Spencer, IA). John works in telecommunications and does software development and Tony owns a web design firm (<a title="Emagine, LLC" href="http://www.emaginemore.com" target="_blank">Emagine, LLC</a> @emaginemore) where he develops web sites and web based applications. These are just their full time jobs. Both John and Tony started developing apps as just a hobby. Now, 2 years later, it has turn into more than just a hobby. The Two App Guys have taken on app projects of other companies and develop apps beyond just their own &#8220;hobby&#8221;. However, John and Tony still release their own fun apps!
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/who-are-we/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/our-team/who-are-we/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Spark</title>
		<link>http://twoappguys.com/our-team/the-spark/</link>
		<comments>http://twoappguys.com/our-team/the-spark/#comments</comments>
		<pubDate>Thu, 12 May 2011 12:04:47 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Our Team]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[fabrica]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[psd]]></category>
		<category><![CDATA[team]]></category>

		<guid isPermaLink="false">http://iamthemes.com/themeforest/wordpress/smoke/?p=32</guid>
		<description><![CDATA[Tony and John had always worked together on fun projects. In the beginning they mostly started with web applications. They also starred in their own video show Asterikast (www.asterikast.com). Then one day they came across a story about 2 guys &#8230; <a href="http://twoappguys.com/our-team/the-spark/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/the-spark/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Tony and John had always worked together on fun projects. In the beginning they mostly started with web applications. They also starred in their own video show Asterikast (<a href="http://www.asterikast.com" target="_blank">www.asterikast.com</a>).</p>
<p>Then one day they came across a story about 2 guys who sat down and in 1 weekend released an app for the iPhone. They both thought, &#8220;Hey! We can do that!&#8221; and that was the beginning of Two App Guys.</p>
<p><a class="button-white" href="http://twoappguys.com/blog/the-story-that-inspired-us/"><img src="http://twoappguys.com/wp-content/themes/smoke/image/b1.png" alt="" /> Read the story that started it all!</a>
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/the-spark/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/our-team/the-spark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Project</title>
		<link>http://twoappguys.com/our-team/new-project/</link>
		<comments>http://twoappguys.com/our-team/new-project/#comments</comments>
		<pubDate>Thu, 12 May 2011 11:57:52 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Our Team]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://iamthemes.com/themeforest/wordpress/smoke/?p=25</guid>
		<description><![CDATA[Mobile Lullaby A lullaby is a soothing song, usually sung to young children before they go to sleep, with the intention of speeding that process. As a result they are often simple and repetitive. Lullabies can be found in every &#8230; <a href="http://twoappguys.com/our-team/new-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/new-project/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<h1><a href="http://twoappguys.com/applications/mobile-lullaby/">Mobile Lullaby</a></h1>
<p>A lullaby is a soothing song, usually sung to young children before they go to sleep, with the intention of speeding that process. As a result they are often simple and repetitive. Lullabies can be found in every human culture and seem to have been used at least from the ancient period. Mobile Lullaby allows you to select a soothing visual, a relaxing song and set a time. The visual and song will play for the amount of time you select and then the screen will go dark, helping your child to sleep.
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/new-project/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/our-team/new-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Your Idea</title>
		<link>http://twoappguys.com/our-team/the-connect/</link>
		<comments>http://twoappguys.com/our-team/the-connect/#comments</comments>
		<pubDate>Thu, 12 May 2011 11:45:54 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[Our Team]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[fabric]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://iamthemes.com/themeforest/wordpress/smoke/?p=14</guid>
		<description><![CDATA[Do you have a great idea for an app, but don&#8217;t have the coding know how to get it done? Well Two App Guys is here to help! Get in touch with us on our Contact page. We can work &#8230; <a href="http://twoappguys.com/our-team/the-connect/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/the-connect/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Do you have a great idea for an app, but don&#8217;t have the coding know how to get it done? Well Two App Guys is here to help! Get in touch with us on our <a href="http://twoappguys.com/contact/">Contact page</a>. We can work with you to help make your idea a reality! Best of all we will do the coding at no cost to you! That&#8217;s right, we will code the app for no up-front cost. We will simply split any revenue made from the app sales!</p>
<p><a class="button-white" href="http://twoappguys.com/contact/"><img src="http://twoappguys.com/wp-content/themes/smoke/image/b1.png" alt="" /> Click Here To Contact Us Now!</a>
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/our-team/the-connect/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/our-team/the-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>showContacts crashing using Titanium</title>
		<link>http://twoappguys.com/blog/showcontacts-crashing-using-titanium/</link>
		<comments>http://twoappguys.com/blog/showcontacts-crashing-using-titanium/#comments</comments>
		<pubDate>Tue, 03 May 2011 19:36:23 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=316</guid>
		<description><![CDATA[Hello all, I just wanted to make a quick rant, about trying to get support from appcelerator, I paid my money, they insist that it works, sort of a WORKS_FOR_ME type thing, and I have proven time and time again &#8230; <a href="http://twoappguys.com/blog/showcontacts-crashing-using-titanium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/showcontacts-crashing-using-titanium/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Hello all, I just wanted to make a quick rant, about trying to get support from appcelerator, I paid my money, they insist that it works, sort of a WORKS_FOR_ME type thing, and I have proven time and time again that it doesn&#8217;t work..</p>
<p>You want the easy view </p>
<p><iframe width="560" height="349" src="http://www.youtube.com/embed/xL2CX-UbX00" frameborder="0" allowfullscreen></iframe><br />
<span id="more-316"></span><br />
Here is the code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> win1 <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
win1.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> values <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
		selectedProperty<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">property</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;email&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
values.<span style="color: #660066;">fields</span><span style="color: #339933;">=</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;email&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
Ti.<span style="color: #660066;">Contacts</span>.<span style="color: #660066;">showContacts</span><span style="color: #009900;">&#40;</span>values<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>The app is so simple it&#8217;s scary, create a window, show the picker output the contact.  This works fine no problems in the simulator without Microsoft exchange, add Microsoft exchange on the phone the app crashes.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Incident Identifier: 2DC5DF0F-DDEC-433D-9B51-5971576E3B65
CrashReporter Key:   a3716bc76ce5eb7ef66eeb2736e509529c0736f0
Hardware Model:      iPhone3,1
Process:         testcontacts [1420]
Path:            /var/mobile/Applications/D3F444A1-4D76-4A36-8394-8CAA5DBDF172/testcontacts.app/testcontacts
Identifier:      testcontacts
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]
&nbsp;
Date/Time:       2011-04-20 08:09:29.882 -0500
OS Version:      iPhone OS 4.3.2 (8H7)
Report Version:  104
&nbsp;
Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0
&nbsp;
Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x360ffa1c __pthread_kill + 8
1   libsystem_c.dylib             	0x33e093b4 pthread_kill + 52
2   libsystem_c.dylib             	0x33e01bf8 abort + 72
3   libstdc++.6.dylib             	0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4   libobjc.A.dylib               	0x33b2806c _objc_terminate + 104
5   libstdc++.6.dylib             	0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6   libstdc++.6.dylib             	0x363fae8a std::terminate() + 10
7   libstdc++.6.dylib             	0x363faf5a __cxa_throw + 78
8   libobjc.A.dylib               	0x33b26c84 objc_exception_throw + 64
9   CoreFoundation                	0x303c548a +[NSException raise:format:arguments:] + 62
10  CoreFoundation                	0x303c54c4 +[NSException raise:format:] + 28
11  Foundation                    	0x342a904c -[NSPlaceholderString initWithString:] + 72
12  Foundation                    	0x3429f10c +[NSString stringWithString:] + 24
13  testcontacts                  	0x0004c090 0x1000 + 307344
14  AddressBookUI                 	0x3546bff4 -[ABPeoplePickerNavigationController personViewController:shouldPerformDefaultActionForPerson:property:identifier:withMemberCell:] + 152
15  AddressBookUI                 	0x35472ece -[ABPersonViewControllerHelper personTableViewDataSource:selectedPropertyAtIndex:inPropertyGroup:withMemberCell:forEditing:] + 222
16  AddressBookUI                 	0x3547f094 -[ABPersonTableViewDataSource valueAtIndex:selectedForPropertyGroup:withMemberCell:forEditing:] + 40
17  AddressBookUI                 	0x3545102a -[ABPersonTableViewDataSource tableView:didSelectRowAtIndexPath:] + 354
18  UIKit                         	0x358ed514 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 656
19  UIKit                         	0x359510e4 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 124
20  Foundation                    	0x343046ce __NSFireDelayedPerform + 362
21  CoreFoundation                	0x3039ca40 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
22  CoreFoundation                	0x3039eec4 __CFRunLoopDoTimer + 844
23  CoreFoundation                	0x3039f83e __CFRunLoopRun + 1082
24  CoreFoundation                	0x3032febc CFRunLoopRunSpecific + 224
25  CoreFoundation                	0x3032fdc4 CFRunLoopRunInMode + 52
26  GraphicsServices              	0x35571418 GSEventRunModal + 108
27  GraphicsServices              	0x355714c4 GSEventRun + 56
28  UIKit                         	0x358c7d62 -[UIApplication _run] + 398
29  UIKit                         	0x358c5800 UIApplicationMain + 664
30  testcontacts                  	0x00003578 0x1000 + 9592
31  testcontacts                  	0x00003224 0x1000 + 8740
&nbsp;
Thread 1:
0   libsystem_kernel.dylib        	0x361003ec __workq_kernreturn + 8
1   libsystem_c.dylib             	0x33e0a6d8 _pthread_wqthread + 592
2   libsystem_c.dylib             	0x33e0abbc start_wqthread + 0
&nbsp;
Thread 2 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0   libsystem_kernel.dylib        	0x36100fbc kevent + 24
1   libdispatch.dylib             	0x33d0b032 _dispatch_mgr_invoke + 706
2   libdispatch.dylib             	0x33d0c03a _dispatch_queue_invoke + 86
3   libdispatch.dylib             	0x33d0b5ea _dispatch_worker_thread2 + 186
4   libsystem_c.dylib             	0x33e0a58a _pthread_wqthread + 258
5   libsystem_c.dylib             	0x33e0abbc start_wqthread + 0
&nbsp;
Thread 3:
0   libsystem_kernel.dylib        	0x361003ec __workq_kernreturn + 8
1   libsystem_c.dylib             	0x33e0a6d8 _pthread_wqthread + 592
2   libsystem_c.dylib             	0x33e0abbc start_wqthread + 0
&nbsp;
Thread 4 name:  WebThread
Thread 4:
0   libsystem_kernel.dylib        	0x360fdc00 mach_msg_trap + 20
1   libsystem_kernel.dylib        	0x360fd758 mach_msg + 44
2   CoreFoundation                	0x3039d2b8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                	0x3039f562 __CFRunLoopRun + 350
4   CoreFoundation                	0x3032febc CFRunLoopRunSpecific + 224
5   CoreFoundation                	0x3032fdc4 CFRunLoopRunInMode + 52
6   WebCore                       	0x34c2627e RunWebThread(void*) + 382
7   libsystem_c.dylib             	0x33e0930a _pthread_start + 242
8   libsystem_c.dylib             	0x33e0abb4 thread_start + 0
&nbsp;
Thread 5:
0   libsystem_kernel.dylib        	0x360fdc74 semaphore_timedwait_signal_trap + 8
1   libsystem_kernel.dylib        	0x360fdf46 semaphore_timedwait_signal + 6
2   libsystem_c.dylib             	0x33e30812 _pthread_cond_wait + 678
3   libsystem_c.dylib             	0x33e309fe pthread_cond_timedwait_relative_np + 10
4   Foundation                    	0x342b8a4e -[NSCondition waitUntilDate:] + 266
5   testcontacts                  	0x0001db66 0x1000 + 117606
6   Foundation                    	0x3429c382 -[NSThread main] + 38
7   Foundation                    	0x3430e5c6 __NSThread__main__ + 966
8   libsystem_c.dylib             	0x33e0930a _pthread_start + 242
9   libsystem_c.dylib             	0x33e0abb4 thread_start + 0
&nbsp;
Thread 6:
0   libsystem_kernel.dylib        	0x360ffd18 __semwait_signal + 24
1   libsystem_c.dylib             	0x33e30860 _pthread_cond_wait + 756
2   libsystem_c.dylib             	0x33dd7eb2 pthread_cond_wait + 26
3   testcontacts                  	0x000a8916 0x1000 + 686358
4   testcontacts                  	0x000a893e 0x1000 + 686398
5   libsystem_c.dylib             	0x33e0930a _pthread_start + 242
6   libsystem_c.dylib             	0x33e0abb4 thread_start + 0
&nbsp;
Thread 7 name:  com.apple.coremedia.player.async
Thread 7:
0   libsystem_kernel.dylib        	0x360ffd18 __semwait_signal + 24
1   libsystem_c.dylib             	0x33e30860 _pthread_cond_wait + 756
2   libsystem_c.dylib             	0x33dd7eb2 pthread_cond_wait + 26
3   CoreMedia                     	0x3661d8f4 WaitOnCondition + 4
4   CoreMedia                     	0x3661d83a FigSemaphoreWaitRelative + 66
5   MediaToolbox                  	0x324a9a64 fpa_AsyncMovieControlThread + 48
6   CoreMedia                     	0x3663b4dc figThreadMain + 156
7   libsystem_c.dylib             	0x33e0930a _pthread_start + 242
8   libsystem_c.dylib             	0x33e0abb4 thread_start + 0
&nbsp;
Thread 8:
0   libsystem_kernel.dylib        	0x361003ec __workq_kernreturn + 8
1   libsystem_c.dylib             	0x33e0a6d8 _pthread_wqthread + 592
2   libsystem_c.dylib             	0x33e0abbc start_wqthread + 0
&nbsp;
Thread 0 crashed with ARM Thread State:
    r0: 0x00000000    r1: 0x00000000      r2: 0x00000001      r3: 0x00000000
    r4: 0x3f0ad48c    r5: 0x00000006      r6: 0x0029bc8c      r7: 0x2fdfe608
    r8: 0x3f36e604    r9: 0x00000065     r10: 0x3ed16bf8     r11: 0x368892f0
    ip: 0x00000148    sp: 0x2fdfe5fc      lr: 0x34b023bb      pc: 0x36df8a1c
  cpsr: 0x00000010
&nbsp;
Binary Images:
    0x1000 -   0x15cfff +testcontacts armv7  &lt;b4dbaf55ed3d32569a00be8484410926&gt; /var/mobile/Applications/D3F444A1-4D76-4A36-8394-8CAA5DBDF172/testcontacts.app/testcontacts
0x2fe00000 - 0x2fe25fff  dyld armv7  &lt;bb9bfc7d242331d29a79adf7ef7aaa18&gt; /usr/lib/dyld
0x30cfe000 - 0x31011fff  GeoServices armv7  &lt;88616f3deada3bb495fc15e3ba58dc83&gt; /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x31012000 - 0x31013fff  libremovefile.dylib armv7  &lt;e8858a499d663e6a9e3c188521273cc1&gt; /usr/lib/system/libremovefile.dylib
0x31020000 - 0x31105fff  CoreFoundation armv7  &lt;a8444f997111304c9571b3ff974b769c&gt; /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x31107000 - 0x31127fff  PrintKit armv7  &lt;e5a01ca9083a36afacc08611a398e2ad&gt; /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x31128000 - 0x311e4fff  MapKit armv7  &lt;2755d38ec8683a07a86aa53826999e1b&gt; /System/Library/Frameworks/MapKit.framework/MapKit
0x312e6000 - 0x312ebfff  libsystem_dnssd.dylib armv7  &lt;c7cfe523e2d73521abc01587313ef730&gt; /usr/lib/system/libsystem_dnssd.dylib
0x31319000 - 0x3131cfff  ActorKit armv7  &lt;f7aa6cdd654231988aafcf448978f450&gt; /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x3134e000 - 0x313d8fff  Message armv7  &lt;25232d2097433678b1faf7deabdc368e&gt; /System/Library/PrivateFrameworks/Message.framework/Message
0x32ebd000 - 0x32eecfff  SystemConfiguration armv7  &lt;1d73b8a159363f96bb9c039655c5eae6&gt; /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x32eef000 - 0x32ef1fff  Marco armv7  &lt;53203fa831ab34f894f3a3811bf3917c&gt; /System/Library/PrivateFrameworks/Marco.framework/Marco
0x32ef5000 - 0x32f02fff  libbsm.0.dylib armv7  &lt;0a1e2bb78d5138419ecad8ba0fe42fdd&gt; /usr/lib/libbsm.0.dylib
0x32f03000 - 0x32f11fff  OpenGLES armv7  &lt;5a76beaeaa013f0cbf16e5cb154598ab&gt; /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x32f12000 - 0x32f1cfff  ExternalAccessory armv7  &lt;eebb4bdbbefb37419b884ffa011e1dc5&gt; /System/Library/Frameworks/ExternalAccessory.framework/ExternalAccessory
0x32f1d000 - 0x32f25fff  MobileBluetooth armv7  &lt;63f11756c4aa3262b2317ff3b8e2a977&gt; /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x32f9a000 - 0x3309efff  JavaScriptCore armv7  &lt;61a94142e2d23dafa2964190dd46e9e3&gt; /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x330b5000 - 0x33114fff  libBLAS.dylib armv7  &lt;0b36b2272aa33a8c9aa22d99c89d7189&gt; /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x33143000 - 0x33143fff  vecLib armv7  &lt;0c60cd0a60f43d2791d36cb357d30e3c&gt; /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x33144000 - 0x33180fff  libGLImage.dylib armv7  &lt;9d97699e44ee3651ba4ac37e5adec35b&gt; /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x33181000 - 0x33193fff  PersistentConnection armv7  &lt;b1de729a101f32dcba0ad98161fb80b5&gt; /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x33194000 - 0x3319afff  StoreKit armv7  &lt;0deee3e11c7632aab98ab3c026d41e41&gt; /System/Library/Frameworks/StoreKit.framework/StoreKit
0x3319b000 - 0x3319efff  ArtworkCache armv7  &lt;4863e321afee3ac5a3749e50cd926597&gt; /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x3319f000 - 0x332ebfff  MediaToolbox armv7  &lt;482b13059e8a329fa5d832baede25103&gt; /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x332ec000 - 0x3340dfff  CoreGraphics armv7  &lt;65f6c8701b563542820a26b0dfc4f6a4&gt; /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x33441000 - 0x33476fff  AddressBook armv7  &lt;3f2071a77bc134cd82065eef90d4082f&gt; /System/Library/Frameworks/AddressBook.framework/AddressBook
0x334c3000 - 0x33589fff  MusicLibrary armv7  &lt;e6b67de14a173197a07b61fdad63fdfb&gt; /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x3358f000 - 0x335a7fff  iAd armv7  &lt;4a9a961daab13c4f94bd9a55b59f65e1&gt; /System/Library/Frameworks/iAd.framework/iAd
0x335a8000 - 0x335affff  AggregateDictionary armv7  &lt;ab9777b39e8e3026ad64dc90323cad7e&gt; /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x335bb000 - 0x335cbfff  WebBookmarks armv7  &lt;6956561235333e74b8ff316cb2edc93e&gt; /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x335cc000 - 0x3367dfff  WebKit armv7  &lt;eb9a0d69c64b3127b2bffd71641add3b&gt; /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x33690000 - 0x336a0fff  DataAccessExpress armv7  &lt;66d9047da79a31daa887e6d84c42ecb2&gt; /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x336aa000 - 0x336abfff  libsystem_blocks.dylib armv7  &lt;ccc041df3de73eafb7a59e74cdb1702b&gt; /usr/lib/system/libsystem_blocks.dylib
0x33724000 - 0x33767fff  ManagedConfiguration armv7  &lt;8a04bd2ef60e39ac8ea09f8f23232e94&gt; /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x33768000 - 0x3376cfff  libGFXShared.dylib armv7  &lt;a0772a32cd8b3b9194bb0c29807c1c5b&gt; /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x3386d000 - 0x338a0fff  AppSupport armv7  &lt;0217468bd9f839229a47910b7816b3d5&gt; /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x338ed000 - 0x33a41fff  AudioToolbox armv7  &lt;6619c8c13f8d328e923e797fa8d0df23&gt; /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x33b7d000 - 0x33bbafff  CoreText armv7  &lt;fb6a72faec2330c4b2cd33c2e9c59588&gt; /System/Library/Frameworks/CoreText.framework/CoreText
0x33bbb000 - 0x33bc0fff  liblaunch.dylib armv7  &lt;f5ccc8234aea3ebd9a88bd37f0fa23ae&gt; /usr/lib/system/liblaunch.dylib
0x33ca9000 - 0x33d58fff  QuartzCore armv7  &lt;ef9632c9781f3101916b65e9faae1579&gt; /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x33d59000 - 0x33d5cfff  IOSurface armv7  &lt;ad50e71624583d06b891344d832f9b08&gt; /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x33d5d000 - 0x33daefff  libsqlite3.dylib armv7  &lt;8a41cc6a6d9332308bc415d27577fd24&gt; /usr/lib/libsqlite3.dylib
0x340f5000 - 0x3413bfff  Conference armv7  &lt;e063ca664ff53614b92cd1d840677ffa&gt; /System/Library/PrivateFrameworks/Conference.framework/Conference
0x34269000 - 0x34556fff  libLAPACK.dylib armv7  &lt;b855d60dac01310495453bddfd004f0d&gt; /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x34557000 - 0x3455afff  libmacho.dylib armv7  &lt;43311c113a9d3182b7d007129819f029&gt; /usr/lib/system/libmacho.dylib
0x3455b000 - 0x3459dfff  CoreAudio armv7  &lt;c972fd5f8e89333ca680b9a33587f896&gt; /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x34757000 - 0x3477afff  Preferences armv7  &lt;d6327cc56a37381586315f0e98750202&gt; /System/Library/PrivateFrameworks/Preferences.framework/Preferences
0x34787000 - 0x347bafff  StoreServices armv7  &lt;d526715648f435c3aac4c42953e76d20&gt; /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x347bb000 - 0x347dbfff  AppleAccount armv7  &lt;4e0ac5cf93b338ab8c5f34ba3c5e2ee4&gt; /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x347dc000 - 0x34813fff  Security armv7  &lt;6599f42a910b3b31a0e1d98c883d61cb&gt; /System/Library/Frameworks/Security.framework/Security
0x3481b000 - 0x348dffff  libobjc.A.dylib armv7  &lt;6b51e76fde9f381bb7b3bc5badbfee3a&gt; /usr/lib/libobjc.A.dylib
0x34956000 - 0x3495cfff  BluetoothManager armv7  &lt;7861bc6128d93f72877df2f234434a47&gt; /System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager
0x34962000 - 0x3498bfff  MobileCoreServices armv7  &lt;57fef84bdc17301d8bf53ba0fb967fe6&gt; /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x34992000 - 0x34994fff  MobileInstallation armv7  &lt;94b6d6c5d9883175af26764567528127&gt; /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x349a3000 - 0x349a3fff  libsystem_sandbox.dylib armv7  &lt;f47c01d627853b328e088b3fdd08e87d&gt; /usr/lib/system/libsystem_sandbox.dylib
0x349fe000 - 0x34a0bfff  libdispatch.dylib armv7  &lt;9a0511ad5ebc3db898f1f49ed1a73d34&gt; /usr/lib/system/libdispatch.dylib
0x34a34000 - 0x34a38fff  libcache.dylib armv7  &lt;d2f7fd2a352b3cd59c564be34b53cf80&gt; /usr/lib/system/libcache.dylib
0x34a39000 - 0x34acefff  ImageIO armv7  &lt;d520e3241d1130e8ac1375ee0f2c1095&gt; /System/Library/Frameworks/ImageIO.framework/ImageIO
0x34acf000 - 0x34b50fff  libsystem_c.dylib armv7  &lt;a7077267b6743ed3bbdd86d4380c75d9&gt; /usr/lib/system/libsystem_c.dylib
0x34b58000 - 0x34b5bfff  MediaRemote armv7  &lt;0804293b2774359189f3a67e2c81558d&gt; /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote
0x34bc8000 - 0x34bd4fff  HomeSharing armv7  &lt;2df6957cdfea31aea12eebf27ca1691c&gt; /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
0x34c03000 - 0x34c58fff  libvDSP.dylib armv7  &lt;0221caba81a235c5a896a835e2aac047&gt; /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x34ce4000 - 0x34d18fff  VideoToolbox armv7  &lt;570c63dc3a273a5a8c9072fd5567f5c1&gt; /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x34d45000 - 0x34d84fff  libSystem.B.dylib armv7  &lt;33dcf9a403ae3fd5971d6030ada2fcab&gt; /usr/lib/libSystem.B.dylib
0x34d88000 - 0x34d97fff  MobileDeviceLink armv7  &lt;563a09bcdb2f32369b1e22f53f58273a&gt; /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x34da0000 - 0x34ea8fff  CoreData armv7  &lt;9843a401dd1d322383e3e40021cc8b95&gt; /System/Library/Frameworks/CoreData.framework/CoreData
0x34f05000 - 0x34f53fff  GMM armv7  &lt;049361f664eb3f30b0d25cd56ffc1f0f&gt; /System/Library/PrivateFrameworks/GMM.framework/GMM
0x34f78000 - 0x35097fff  Foundation armv7  &lt;09ff368178c5321c9715b9c8d491d53f&gt; /System/Library/Frameworks/Foundation.framework/Foundation
0x350a8000 - 0x350d3fff  IMFoundation armv7  &lt;f1f21bedbf2e3ea38f692abef0005d76&gt; /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMFoundation.framework/IMFoundation
0x35100000 - 0x35149fff  IMCore armv7  &lt;9c1e280e1fa33fa784cad479b9cbd941&gt; /System/Library/PrivateFrameworks/IMCore.framework/IMCore
0x3514b000 - 0x35199fff  CoreMotion armv7  &lt;8660c1394c5c39089407c07fd7fd8b52&gt; /System/Library/Frameworks/CoreMotion.framework/CoreMotion
0x3519a000 - 0x3519afff  libdnsinfo.dylib armv7  &lt;21415179ffa03f949fa8cc851c6c31c7&gt; /usr/lib/system/libdnsinfo.dylib
0x3519b000 - 0x35241fff  Celestial armv7  &lt;db412e659f163c20a2e508b9f84b1d2d&gt; /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x35242000 - 0x35248fff  liblockdown.dylib armv7  &lt;14c89b7346433c1f8675f454531f6ca3&gt; /usr/lib/liblockdown.dylib
0x3524f000 - 0x35251fff  libgcc_s.1.dylib armv7  &lt;a2631ac302f4310dae8367939e16b7c2&gt; /usr/lib/libgcc_s.1.dylib
0x35254000 - 0x3525bfff  libMobileGestalt.dylib armv7  &lt;55f29184efcc3046bb833dd72a4487e1&gt; /usr/lib/libMobileGestalt.dylib
0x35303000 - 0x353fdfff  GameKitServices armv7  &lt;1c46c0dbf3333423a66eb7f11e86a945&gt; /System/Library/PrivateFrameworks/GameKitServices.framework/GameKitServices
0x353fe000 - 0x35403fff  MobileKeyBag armv7  &lt;8c35c090bc373cb181fc26b961b8dba5&gt; /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x35404000 - 0x3543cfff  libCGFreetype.A.dylib armv7  &lt;ccea634795153164a681f0f311f4461d&gt; /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x3543d000 - 0x35440fff  CertUI armv7  &lt;9060fe03a4943ef295531feced9a17dd&gt; /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x35443000 - 0x3545efff  FTServices armv7  &lt;e23c3572bf3a36a3a99364d18c484f1e&gt; /System/Library/PrivateFrameworks/FTServices.framework/FTServices
0x355d0000 - 0x355d6fff  ProtocolBuffer armv7  &lt;f9277ee9b85b3722975ad319a323aca0&gt; /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x355d7000 - 0x3561dfff  CoreTelephony armv7  &lt;bc7470708aa231fc8e24133b90f9ec32&gt; /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x3561e000 - 0x35651fff  QuickLook armv7  &lt;29d2d981d1d6358381f5716ee37314b4&gt; /System/Library/Frameworks/QuickLook.framework/QuickLook
0x35886000 - 0x358cdfff  MessageUI armv7  &lt;35a81f5d4eb03467a1447db80337e570&gt; /System/Library/Frameworks/MessageUI.framework/MessageUI
0x358ce000 - 0x35913fff  IMAVCore armv7  &lt;4c076e85ed1030eda6cce24f762a21f0&gt; /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore
0x35919000 - 0x35f24fff  WebCore armv7  &lt;07941e59d0a33f94802c16c76238fddf&gt; /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x35f49000 - 0x35f53fff  AccountSettings armv7  &lt;d083fb384dc7311eb6766b9b2d2dd9c8&gt; /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x35f69000 - 0x35f6bfff  libAccessibility.dylib armv7  &lt;d55f1553d14831a2a5435ae27ef75ef4&gt; /usr/lib/libAccessibility.dylib
0x35f6c000 - 0x35f9afff  DataAccess armv7  &lt;3a2e67aa1d8834b7a8fc2fbb56654b15&gt; /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x35fb2000 - 0x35fdcfff  libtidy.A.dylib armv7  &lt;c525f00262b133848a3742b2c6ed0e87&gt; /usr/lib/libtidy.A.dylib
0x36034000 - 0x36036fff  MailServices armv7  &lt;74ae0145ef713c6d91fd8f68885b0a61&gt; /System/Library/PrivateFrameworks/MailServices.framework/MailServices
0x36046000 - 0x3604ffff  MobileWiFi armv7  &lt;03d98d5cf6383695aa7d8a88da52f410&gt; /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x36077000 - 0x360a5fff  MIME armv7  &lt;60de1fe0bbb134d788c09f7c34b1caa4&gt; /System/Library/PrivateFrameworks/MIME.framework/MIME
0x360df000 - 0x360f1fff  TelephonyUI armv7  &lt;36ab2cf6c6a93bfb974fc85d74bf9349&gt; /System/Library/PrivateFrameworks/TelephonyUI.framework/TelephonyUI
0x36116000 - 0x361b3fff  AddressBookUI armv7  &lt;e354aeb3d96e30338e90cc3638ffe81b&gt; /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x361b4000 - 0x361b6fff  IOMobileFramebuffer armv7  &lt;683f321680763e519d61541170ba2133&gt; /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x36266000 - 0x36272fff  GraphicsServices armv7  &lt;b5a7e43e0cd630739f56c4649b90c874&gt; /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x36278000 - 0x3628efff  EAP8021X armv7  &lt;9659fa6b559835c39aa9134646bc75e9&gt; /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x36296000 - 0x36355fff  CFNetwork armv7  &lt;b09e0d53de9f3bc8bde494780f3cdd4f&gt; /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x3636b000 - 0x36414fff  libxml2.2.dylib armv7  &lt;5538d3f2c7d83b88b06168488fe6326b&gt; /usr/lib/libxml2.2.dylib
0x3641e000 - 0x36422fff  AssetsLibraryServices armv7  &lt;e1cbfe599c96369ca4bdb0dd99d3cd9f&gt; /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x3643c000 - 0x364abfff  ProofReader armv7  &lt;6d843c6aecdd37ae84baa40af8ad7e65&gt; /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x364ac000 - 0x364acfff  Accelerate armv7  &lt;7d5ad465049136afaa1f0d89aac600bc&gt; /System/Library/Frameworks/Accelerate.framework/Accelerate
0x364ad000 - 0x364b2fff  libnotify.dylib armv7  &lt;9d7198e91de9386a9e5ea43608a66a57&gt; /usr/lib/system/libnotify.dylib
0x36592000 - 0x3691ffff  UIKit armv7  &lt;c271b78464d93cb7bf28c6e49df293ba&gt; /System/Library/Frameworks/UIKit.framework/UIKit
0x3699b000 - 0x369b4fff  libRIP.A.dylib armv7  &lt;4825c3e392983aba947eca06555e4480&gt; /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x36a79000 - 0x36aacfff  iCalendar armv7  &lt;34ce1957082f3518b5740ac33cfc92eb&gt; /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x36ac9000 - 0x36ad2fff  ITSync armv7  &lt;bda1710c8682358d8bf6eab660f41fdc&gt; /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x36ad3000 - 0x36ad6fff  ApplePushService armv7  &lt;015c68c15621348db9f6a012499170e1&gt; /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x36af6000 - 0x36b0bfff  libresolv.9.dylib armv7  &lt;e92cfbb83f7b330db19181e797bb3f7b&gt; /usr/lib/libresolv.9.dylib
0x36be4000 - 0x36bedfff  CoreVideo armv7  &lt;ea847e6dba2d36b1826b255c73b39539&gt; /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x36bee000 - 0x36c36fff  CoreLocation armv7  &lt;a13a050b1a9f313bb25c82c463e1dd8b&gt; /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x36c37000 - 0x36c57fff  MobileSync armv7  &lt;4df400c4559435889eccd88db77a110c&gt; /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x36c59000 - 0x36c5afff  libsystem_network.dylib armv7  &lt;39bf0f48bd8539169a77f8f61cdcd4c9&gt; /usr/lib/system/libsystem_network.dylib
0x36c5b000 - 0x36c6efff  libmis.dylib armv7  &lt;529ea6e3a87230ce9f6cf3285c22429c&gt; /usr/lib/libmis.dylib
0x36c6f000 - 0x36d89fff  libicucore.A.dylib armv7  &lt;bada0c2725bb31a483d5adf9aaf1f8df&gt; /usr/lib/libicucore.A.dylib
0x36d8a000 - 0x36daefff  MediaControl armv7  &lt;1cfc7d79f554357ab59eb69f9efebf07&gt; /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x36daf000 - 0x36db2fff  MobileIcons armv7  &lt;08e426f8a707388d8adda670bfed0c2e&gt; /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
0x36db3000 - 0x36dd2fff  Bom armv7  &lt;b178e3efb4d733c694bd5a55e57a314f&gt; /System/Library/PrivateFrameworks/Bom.framework/Bom
0x36dd6000 - 0x36dd9fff  CaptiveNetwork armv7  &lt;fc834fd33a18341ea7506587ad895703&gt; /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x36de7000 - 0x36dfefff  libsystem_kernel.dylib armv7  &lt;a06ec84e53bf32098b63c0caebdb45b6&gt; /usr/lib/system/libsystem_kernel.dylib
0x36e14000 - 0x36e15fff  libdyld.dylib armv7  &lt;41a7b5e5d9983449ab33affed0f635ad&gt; /usr/lib/system/libdyld.dylib
0x36e16000 - 0x36e33fff  libsystem_info.dylib armv7  &lt;48016be86e3f3cd9aeee1c6590e1ac6f&gt; /usr/lib/system/libsystem_info.dylib
0x36e34000 - 0x36e35fff  CoreSurface armv7  &lt;7b83cd757da73e6e826693c29296d3fa&gt; /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x36e40000 - 0x36e4ffff  Notes armv7  &lt;d9c976ca976e3d029f69febd48f17601&gt; /System/Library/PrivateFrameworks/Notes.framework/Notes
0x36e59000 - 0x36e5afff  DataMigration armv7  &lt;42e9e87a4e0735c3837e27d4f2adcf55&gt; /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x36f43000 - 0x37055fff  MediaPlayer armv7  &lt;da848c0745a637af81d7edd962a09324&gt; /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x37057000 - 0x37063fff  SpringBoardServices armv7  &lt;c68262667ac8397a949ce4e92dfec7db&gt; /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x37064000 - 0x37066fff  CrashReporterSupport armv7  &lt;fcadc63caa80335b8b35602a8deeab61&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x3708e000 - 0x37093fff  libcopyfile.dylib armv7  &lt;e57c2b9054b831d9a37119baaa4947cb&gt; /usr/lib/system/libcopyfile.dylib
0x370b1000 - 0x370fbfff  libstdc++.6.dylib armv7  &lt;b2cac408951c3f3c9ba3cf563e54ce81&gt; /usr/lib/libstdc++.6.dylib
0x37109000 - 0x37132fff  ContentIndex armv7  &lt;ecd71782cd833360872b943ecc65d203&gt; /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x37133000 - 0x37220fff  libiconv.2.dylib armv7  &lt;f4146ce07e3031ea8a81fa5516fd77d0&gt; /usr/lib/libiconv.2.dylib
0x3722a000 - 0x37283fff  EventKit armv7  &lt;0d4e597ee229337183e96e921a72e30a&gt; /System/Library/Frameworks/EventKit.framework/EventKit
0x37314000 - 0x37354fff  CoreMedia armv7  &lt;0c181789446434eabf4eeed874ec211d&gt; /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x37375000 - 0x373f9fff  AVFoundation armv7  &lt;eeaf5f4f822436a5bd1655f536e69879&gt; /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x373fa000 - 0x37405fff  libz.1.dylib armv7  &lt;ac706bee36593dc683fd5a96a389d72e&gt; /usr/lib/libz.1.dylib
0x37406000 - 0x3740dfff  libbz2.1.0.dylib armv7  &lt;0a082e1d475432959ba93aa3dbf7fb31&gt; /usr/lib/libbz2.1.0.dylib
0x3740e000 - 0x3740efff  libCVMSPluginSupport.dylib armv7  &lt;42d8aa2a31843a6e8bfff745644a7ba5&gt; /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x37444000 - 0x3747cfff  IOKit armv7  &lt;80ae313ad69d3363935c88e51a11862d&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x37498000 - 0x3749efff  IAP armv7  &lt;c0f4c99a1b493e489948f231ad9238e2&gt; /System/Library/PrivateFrameworks/IAP.framework/IAP</pre></td></tr></table></div>

<p>I keep telling the people over at appcelerator that the bug is not fixed.  They keep insisting that it is, this is a major issue for anyone who has created an app that needs to use the email address with the contacts.</p>
<p>Here are the tickets:</p>
<p><a href="http://jira.appcelerator.org/browse/TIMOB-2317">http://jira.appcelerator.org/browse/TIMOB-2317</a><br />
<a href="https://support.appcelerator.com/tickets/APP-751233">https://support.appcelerator.com/tickets/APP-751233</a></p>
<p>If your having this issue, make some noise!</p>
<p>If you want me to test your app, because your app uses contacts and you don&#8217;t have an exchange server to test with, let me know I can test for you.  I also even offered an exchange account to the appcelerator guys, but they won&#8217;t take that either&#8230;.  Just super frustrated is all, thanks for reading my vent.</p>
<p>&#8211;John</p>
<p>Update 2011-05-03: Got an update from appcelerator, they are looking into it, my persistence paid off, I hope to hear something tomorrow about it I am very excited to get my app released! </p>
<p>Update 2011-05-19: It&#8217;s Fixed, Yippie, get the latest from<a href=" http://builds.appcelerator.com.s3.amazonaws.com/index.html"> and don&#8217;t forget to rebuild, w00t thanks guys!</p>
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/showcontacts-crashing-using-titanium/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/blog/showcontacts-crashing-using-titanium/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Taco Bell</title>
		<link>http://twoappguys.com/blog/taco-bell/</link>
		<comments>http://twoappguys.com/blog/taco-bell/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 03:58:46 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=289</guid>
		<description><![CDATA[Excerpt from]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/taco-bell/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Excerpt from <a href="http://teddziuba.com" target=_blank">teddziuba.com</a>&#8216;s post titled &#8220;Taco Bell Programming&#8221;</p>
<blockquote><p>&#8220;<strong>Taco Bell Programming is about developers knowing enough about Ops (and Unix in general) so that they don&#8217;t overthink things, and arrive at simple, scalable solutions.</strong>&#8220;</p></blockquote>
<p>See the who post <a href="http://teddziuba.com/2010/10/taco-bell-programming.html" target=_blank">here</a>.</p>
<p>Here is my Taco Bell Program</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">#!/usr/bin/php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">// Set up DB connections</span>
	<span style="color: #000088;">$db</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;127.0.0.1&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;xxx&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;xxx&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Error: 998&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$selectdb</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;reports&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$selectdb</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Error: 999&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$good_lines</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;more-289&quot;</span><span style="color: #339933;">&gt;&lt;/</span>span<span style="color: #339933;">&gt;</span>
	<span style="color: #000088;">$filename</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;argv&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$lines</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span> <span style="color: #339933;">&lt;&gt;</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//$input_buffer = &quot;&quot;;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$filename</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; completed   &quot;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">#$file_handle = fopen($filename, 'r');
</span>		<span style="color: #666666; font-style: italic;">#while (!feof($file_handle)) {
</span>		<span style="color: #666666; font-style: italic;">#	$input_buffer .= fread($file_handle, 1024);
</span>		<span style="color: #666666; font-style: italic;">#}
</span>		
 		<span style="color: #666666; font-style: italic;">#fclose($file_handle);
</span>		<span style="color: #000088;">$lines</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$filename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//echo &quot;New: &quot; . sizeof($lines) .&quot;n&quot;;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//$query = &quot;DELETE FROM cdr WHERE filename like '%$filename'&quot;;</span>
		<span style="color: #666666; font-style: italic;">//$query = str_replace(&quot;./&quot;,&quot;&quot;,$query);</span>
		<span style="color: #666666; font-style: italic;">//mysql_query ($query, $db);</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">//$lines = explode(&quot;n&quot;, $input_buffer);</span>
		<span style="color: #666666; font-style: italic;">//echo &quot;Lines: &quot; . sizeof($lines);</span>
		<span style="color: #000088;">$lastper</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$timestart</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;U&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$fullsql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$count</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$x</span><span style="color: #339933;">++;</span>
			<span style="color: #000088;">$per</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">/</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lines</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$per</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$per</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$lastper</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$per</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">#print sizeof($lastper) .&quot;n&quot;;
</span>				<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>sizeof<span style="color: #009900;">&#40;</span><span style="color: #990000;">str_split</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lastper</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;�10&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
				<span style="color: #b1b100;">print</span> <span style="color: #000088;">$per</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;%&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #000088;">$lastper</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$per</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$per</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$timeend</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;U&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$totalsecs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$timeend</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$timestart</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$minutes</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$totalsecs</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">60</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; Total time: <span style="color: #006699; font-weight: bold;">$minutes</span> /min Records: <span style="color: #006699; font-weight: bold;">$xn</span>&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #666666; font-style: italic;">// Extract Date</span>
			<span style="color: #000088;">$year</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;20&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$month</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$day</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{4}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$month</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$day</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_date</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_date</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;F&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">//echo $line . &quot;n&quot;;</span>
				<span style="color: #666666; font-style: italic;">//echo &quot;Good date = F ($year-$month-$day)&quot;;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #666666; font-style: italic;">// Extract Time</span>
			<span style="color: #000088;">$hours</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">54</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$minutes</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">56</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$seconds</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">58</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hours</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$minutes</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$seconds</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_time</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_time</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;F&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// Extract ANI</span>
			<span style="color: #000088;">$ani</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">14</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{10}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ani</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_ani</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;F&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_ani</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// Extract DNIS</span>
			<span style="color: #000088;">$dnis</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">32</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{7}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dnis</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_dnis</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;F&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_dnis</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$dnis</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;712&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$dnis</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// Extract Duration</span>
			<span style="color: #000088;">$duration_minutes</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">60</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$duration_seconds</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">64</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{4}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$duration_minutes</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #990000;">eregi</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[0-9]{2}$&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$duration_seconds</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_duration</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$duration</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$duration_minutes</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$duration_seconds</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_duration</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;F&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// Extract CiC (Carrier Identification Code)</span>
			<span style="color: #000088;">$cic</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">45</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #666666; font-style: italic;">// Don't bother to authenticate the CiC.</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">// If we have everything, deal with it.</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$good_time</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #000088;">$good_date</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #000088;">$good_ani</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #009900;">&#41;</span> and <span style="color: #009900;">&#40;</span><span style="color: #000088;">$good_dnis</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;T&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$good_lines</span><span style="color: #339933;">++;</span>
				<span style="color: #000088;">$call_start</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$year</span>-<span style="color: #006699; font-weight: bold;">$month</span>-<span style="color: #006699; font-weight: bold;">$day</span> <span style="color: #006699; font-weight: bold;">$hours</span>:<span style="color: #006699; font-weight: bold;">$minutes</span>:<span style="color: #006699; font-weight: bold;">$seconds</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT company FROM blocks WHERE '<span style="color: #006699; font-weight: bold;">$dnis</span>' BETWEEN block_start AND block_end &quot;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$company</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;company&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span>
				<span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$company</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Unknown&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$count</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1000</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #666666; font-style: italic;">#echo $fullsql .&quot;n&quot;;
</span>					<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;INSERT INTO cdr (call_start, dnis, ani, duration, cic, company, filename) VALUES <span style="color: #006699; font-weight: bold;">$fullsql</span>&quot;</span><span style="color: #339933;">;</span>
					<span style="color: #990000;">mysql_query</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000088;">$count</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
					<span style="color: #000088;">$fullsql</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
				<span style="color: #666666; font-style: italic;">//$query = &quot;INSERT delayed INTO cdr (call_start, dnis, ani, duration, cic, company, filename) VALUES ('$call_start', '$dnis', '$ani', '$duration', '$cic', '$company', '$filename')&quot;;</span>
				<span style="color: #666666; font-style: italic;">//mysql_query ($query, $db) or die (mysql_error());</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$count</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$fullsql</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;('<span style="color: #006699; font-weight: bold;">$call_start</span>', '<span style="color: #006699; font-weight: bold;">$dnis</span>', '<span style="color: #006699; font-weight: bold;">$ani</span>', '<span style="color: #006699; font-weight: bold;">$duration</span>', '<span style="color: #006699; font-weight: bold;">$cic</span>', '<span style="color: #006699; font-weight: bold;">$company</span>', '<span style="color: #006699; font-weight: bold;">$filename</span>')&quot;</span><span style="color: #339933;">;</span>		
				<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #000088;">$fullsql</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;,('<span style="color: #006699; font-weight: bold;">$call_start</span>', '<span style="color: #006699; font-weight: bold;">$dnis</span>', '<span style="color: #006699; font-weight: bold;">$ani</span>', '<span style="color: #006699; font-weight: bold;">$duration</span>', '<span style="color: #006699; font-weight: bold;">$cic</span>', '<span style="color: #006699; font-weight: bold;">$company</span>', '<span style="color: #006699; font-weight: bold;">$filename</span>')&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
				<span style="color: #000088;">$count</span><span style="color: #339933;">++;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// Output</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$count</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;INSERT INTO cdr (call_start, dnis, ani, duration, cic, company, filename) VALUES <span style="color: #006699; font-weight: bold;">$fullsql</span>&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">mysql_query</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$db</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$count</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$fullsql</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Parsing EMI files&#8230; Sexy&#8230;.  Works good in all combinations&#8230;</p>
<p>Peace&#8230;</p>
<p>&#8211;John
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/taco-bell/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/blog/taco-bell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPS, it’s the Cat’s Meow!</title>
		<link>http://twoappguys.com/blog/gps-its-the-cats-meow/</link>
		<comments>http://twoappguys.com/blog/gps-its-the-cats-meow/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 00:57:24 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=264</guid>
		<description><![CDATA[Hey everyone, time for another installment. I have been messing minimally with GPS on my Android phone and Appcelerator. This works awesome, and I am going to give you a full example of an app! w00t I am doing all &#8230; <a href="http://twoappguys.com/blog/gps-its-the-cats-meow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/gps-its-the-cats-meow/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>Hey everyone, time for another installment.  I have been messing minimally with GPS on my Android phone and Appcelerator.  This works awesome, and I am going to give you a full example of an app! w00t</p>
<p>I am doing all in app.js</p>
<p>Android has a few less options from iPhone like checking for Geolocation true or false, but its cool-it still works great!  Start by making a new Appcelerator app.  See my previous tutorials for that.<br />
Best to first set the GPS options.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">accuracy</span> <span style="color: #339933;">=</span> Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">ACCURACY_BEST</span><span style="color: #339933;">;</span>
	Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">distanceFilter</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>I am going to give you the crown jewel right now&#8230;this is the part that makes it all happen.<br />
I find this method fails a lot. I am making a running application so I figure the person starts the app before they are outside and GPS might be a bit flaky, so I just return out of this.1`</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">getCurrentPosition</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">error</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><span id="more-264"></span><br />
Now we need to create an event for getting new locations. This is done with:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'location'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This has some e values that we want</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">accuracy</span><span style="color: #339933;">;</span>
e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">latitude</span><span style="color: #339933;">;</span>
e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">longitude</span><span style="color: #339933;">;</span>
e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">speed</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>These are self explanatory, but they are great!</p>
<p>Ok now make a table and stuff.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> tv <span style="color: #339933;">=</span> Titanium.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createTableView</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		top<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
		width<span style="color: #339933;">:</span>WindowWidth<span style="color: #339933;">,</span>
		height<span style="color: #339933;">:</span>WindowHeight <span style="color: #339933;">-</span><span style="color: #CC0000;">50</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Here is the real location event function now&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> acc<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> lat<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> lon<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> speed<span style="color: #339933;">;</span>
	Titanium.<span style="color: #660066;">Geolocation</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'location'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">error</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
	    <span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>run <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		acc <span style="color: #339933;">=</span> e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">accuracy</span><span style="color: #339933;">;</span>
		lat <span style="color: #339933;">=</span> e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">latitude</span><span style="color: #339933;">;</span>
		lon <span style="color: #339933;">=</span> e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">longitude</span><span style="color: #339933;">;</span>
		speed <span style="color: #339933;">=</span> e.<span style="color: #660066;">coords</span>.<span style="color: #660066;">speed</span><span style="color: #339933;">;</span>
		Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Got a Reading: &quot;</span> <span style="color: #339933;">+</span> lat <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; &quot;</span> <span style="color: #339933;">+</span> lon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>acc <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> <span style="color: #CC0000;">30</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Got a Reading: &quot;</span> <span style="color: #339933;">+</span> lat <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; &quot;</span> <span style="color: #339933;">+</span> lon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> row <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createTableViewRow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>height<span style="color: #339933;">:</span><span style="color: #3366CC;">'auto'</span><span style="color: #339933;">,</span>width<span style="color: #339933;">:</span>WindowWidth<span style="color: #339933;">,</span>top<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>hasChild<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> this_post_title <span style="color: #339933;">=</span> acc <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;n&quot;</span> <span style="color: #339933;">+</span> lat <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;n&quot;</span> <span style="color: #339933;">+</span> lon <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;n&quot;</span> <span style="color: #339933;">+</span> speed<span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> post_title <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createLabel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
				text<span style="color: #339933;">:</span> this_post_title<span style="color: #339933;">,</span>
				textAlign<span style="color: #339933;">:</span><span style="color: #3366CC;">'left'</span><span style="color: #339933;">,</span>
				left<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
				height<span style="color: #339933;">:</span><span style="color: #3366CC;">'auto'</span><span style="color: #339933;">,</span>
				width<span style="color: #339933;">:</span><span style="color: #3366CC;">'auto'</span><span style="color: #339933;">,</span>
				top<span style="color: #339933;">:</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span>
				color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'black'</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			row.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>post_title<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			alllat.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>lat<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			alllon.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>lon<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			coords.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>lat <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;,&quot;</span> <span style="color: #339933;">+</span> lon <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;|&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			row.<span style="color: #660066;">latitude</span> <span style="color: #339933;">=</span> lat<span style="color: #339933;">;</span>
			row.<span style="color: #660066;">longitude</span> <span style="color: #339933;">=</span> lon<span style="color: #339933;">;</span>
			data.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>row<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			tv.<span style="color: #660066;">setData</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Really that is it, your table now updates as you move with new coords and it works great!  See the source below for the full GPS app.js</p>
<p><a href='http://twoappguys.com/wp-content/uploads/2010/09/gps.zip'>gps.zip</a>
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/gps-its-the-cats-meow/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/blog/gps-its-the-cats-meow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iOS 4.2 and the future</title>
		<link>http://twoappguys.com/blog/ios-4-2-and-the-future/</link>
		<comments>http://twoappguys.com/blog/ios-4-2-and-the-future/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 14:21:00 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[appcelerator]]></category>
		<category><![CDATA[ios 4.2]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=249</guid>
		<description><![CDATA[So I got a little surprise when I logged into my developer account today at apple, iOS 4.2 for the iPad. So as fast as I could click I upgraded my iPad, and by upgrade I made my iPad what &#8230; <a href="http://twoappguys.com/blog/ios-4-2-and-the-future/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/ios-4-2-and-the-future/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p>So I got a little surprise when I logged into my developer account today at apple, iOS 4.2 for the iPad.  So as fast as I could click I upgraded my iPad, and by upgrade I made my iPad what it should have been when I bought it.  iOS 4.2 is all that and a bad of chips for sure.  My biggest complaint with 3.2.X was no multitasking, why can&#8217;t I listen to Pandora and check my email, now I can.  Without further ado, some screen shots&#8230;.</p>
<p><a href="http://twoappguys.com/?attachment_id=250" rel="attachment wp-att-250"><img src="http://twoappguys.com/wp-content/uploads/2010/09/IMG_0002-560x746.png" alt="Folders!" title="IMG_0002" width="560" height="746" class="alignnone size-medium wp-image-250" /></a></p>
<p>Folders are great, no longer 5 screens of apps</p>
<p><a href="http://twoappguys.com/?attachment_id=253" rel="attachment wp-att-253"><img src="http://twoappguys.com/wp-content/uploads/2010/09/IMG_00031-560x420.png" alt="Angry Birds" title="IMG_0003" width="560" height="420" class="alignnone size-medium wp-image-253" /></a></p>
<p>yes Angry birds DOES work&#8230;.</p>
<p><span id="more-249"></span></p>
<p><a href="http://twoappguys.com/?attachment_id=254" rel="attachment wp-att-254"><img src="http://twoappguys.com/wp-content/uploads/2010/09/IMG_0004-560x746.png" alt="Multi Tasking" title="IMG_0004" width="560" height="746" class="alignnone size-medium wp-image-254" /></a></p>
<p>Multitasking goodness</p>
<p><a href="http://twoappguys.com/?attachment_id=257" rel="attachment wp-att-257"><img src="http://twoappguys.com/wp-content/uploads/2010/09/IMG_00061-560x420.png" alt="Appcelerator" title="IMG_0006" width="560" height="420" class="alignnone size-medium wp-image-257" /></a></p>
<p>Apps Built with Appcelerator work perfectly</p>
<p><a href="http://twoappguys.com/?attachment_id=258" rel="attachment wp-att-258"><img src="http://twoappguys.com/wp-content/uploads/2010/09/IMG_0007-560x746.png" alt="Inside a folder" title="IMG_0007" width="560" height="746" class="alignnone size-medium wp-image-258" /></a></p>
<p>The view from inside a folder.</p>
<p>There are a few more changes like threaded mail and game center.  I definitely give it two thumbs up!
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/ios-4-2-and-the-future/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/blog/ios-4-2-and-the-future/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Someone prove me wrong…</title>
		<link>http://twoappguys.com/blog/someone-prove-me-wrong/</link>
		<comments>http://twoappguys.com/blog/someone-prove-me-wrong/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 01:29:08 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://twoappguys.com/?p=237</guid>
		<description><![CDATA[That&#8217;s right anyone who knows anything about Titanium make me wrong PLEASE So simple design, I want something that when I load the app, or just want to check in general, the current orientation of the device. nothing works. I &#8230; <a href="http://twoappguys.com/blog/someone-prove-me-wrong/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/someone-prove-me-wrong/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
<p><!--35bd53daf07f49fcb082d22c8c90cc3d--><br />
That&#8217;s right anyone who knows anything about Titanium make me wrong PLEASE</p>
<p>So simple design, I want something that when I load the app, or just want to check in general, the current orientation of the device.  nothing works.  I have literally resorted to</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> WindowHeight <span style="color: #339933;">=</span> Titanium.<span style="color: #660066;">Platform</span>.<span style="color: #660066;">displayCaps</span>.<span style="color: #660066;">platformHeight</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> WindowWidth <span style="color: #339933;">=</span> Titanium.<span style="color: #660066;">Platform</span>.<span style="color: #660066;">displayCaps</span>.<span style="color: #660066;">platformWidth</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> setOrientation<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>e <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #006600; font-style: italic;">//portrait code</span>
      <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
           <span style="color: #006600; font-style: italic;">//landscape code</span>
      <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
Ti.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'orientationchange'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	setOrientation<span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//WHY THIS CODE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>WindowWidth <span style="color: #339933;">&lt;</span> WindowHeight<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	setOrientation<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
	setOrientation<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-237"></span><br />
Anyone see the flaws in this, why is there not a Titanium.UI.???? for this?</p>
<p>Appcelerator/Titanium is great, but it is hard to make a landscape/portrait app without bugs</p>
<p>Help me out!</p>
<p>Keep Rolling,<br />
John</p>
<p>Update: Here are a couple of youtube videos outlining the problem</p>
<p><a href="http://bit.ly/b17Dfk">http://bit.ly/b17Dfk</a><br />
<a href="http://bit.ly/cNhk10">http://bit.ly/cNhk10</a></p>
<p>Also to everyone this is Pedro&#8217;s code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> win <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundColor<span style="color: #339933;">:</span><span style="color: #3366CC;">'white'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> label <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createLabel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>text<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;lala&quot;</span><span style="color: #339933;">,</span>textAlign<span style="color: #339933;">:</span><span style="color: #3366CC;">'center'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span>Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">orientation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">||</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Portrait&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>	
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">3</span> <span style="color: #339933;">||</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Landscape&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'orientationchange'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    Titanium.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'orientation change '</span> <span style="color: #339933;">+</span> e.<span style="color: #660066;">orientation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Portrait&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">3</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Landscape&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
win.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>label<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
win.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Update Again: Looks like this code works perfectly on the iPad.  I am still looking into what it could be on Android and iPhone</p>
<p>Update:<br />
As Per Kevin&#8217;s Advice I tried</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> win <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createWindow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>backgroundColor<span style="color: #339933;">:</span><span style="color: #3366CC;">'white'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> label <span style="color: #339933;">=</span> Ti.<span style="color: #660066;">UI</span>.<span style="color: #660066;">createLabel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>text<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;lala&quot;</span><span style="color: #339933;">,</span>textAlign<span style="color: #339933;">:</span><span style="color: #3366CC;">'center'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
Ti.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Loaded at: &quot;</span> <span style="color: #339933;">+</span> Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">orientation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">||</span> Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Portrait&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>	
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">3</span> <span style="color: #339933;">||</span> Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Landscape&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
Titanium.<span style="color: #660066;">Gesture</span>.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'orientationchange'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    Titanium.<span style="color: #660066;">API</span>.<span style="color: #660066;">info</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'orientation change '</span> <span style="color: #339933;">+</span> e.<span style="color: #660066;">orientation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Portrait&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">3</span> <span style="color: #339933;">||</span> e.<span style="color: #660066;">orientation</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">4</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		label.<span style="color: #660066;">text</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Landscape&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
win.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>label<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
win.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Still no go, I rotated, the iPhone emulator this time closed it, and it still came back in as portrait.
<div id="fb_share">
<p>										<script src="http://connect.facebook.net/en_US/all.js#appId=224313110927811&amp;xfbml=1"></script><br />
										<fb:like href="http://twoappguys.com/blog/someone-prove-me-wrong/" send="false" layout="button_count" width="450" show_faces="false" font=""></fb:like></p></div>
]]></content:encoded>
			<wfw:commentRss>http://twoappguys.com/blog/someone-prove-me-wrong/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

