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’t work..
You want the easy view
Read More
Excerpt from teddziuba.com‘s post titled “Taco Bell Programming”
“Taco Bell Programming is about developers knowing enough about Ops (and Unix in general) so that they don’t overthink things, and arrive at simple, scalable solutions.“
See the who post here.
Here is my Taco Bell Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/php <?php // Set up DB connections $db = mysql_connect("127.0.0.1", "xxx", "xxx"); if ($db == 0) { echo "Error: 998"; exit; } $selectdb = mysql_select_db("reports", $db); if ($selectdb == 0) { echo "Error: 999"; exit; } $good_lines = 0; |
Read More
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 in app.js
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.
Best to first set the GPS options.
1 2 | Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST; Titanium.Geolocation.distanceFilter = 4; |
I am going to give you the crown jewel right now…this is the part that makes it all happen.
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`
Titanium.Geolocation.getCurrentPosition(function(e) { if (e.error) { return; } });
Read More
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’t I listen to Pandora and check my email, now I can. Without further ado, some screen shots….
Folders are great, no longer 5 screens of apps
yes Angry birds DOES work….
Read More
That’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 have literally resorted to
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | var WindowHeight = Titanium.Platform.displayCaps.platformHeight; var WindowWidth = Titanium.Platform.displayCaps.platformWidth; function setOrientation(e) { if (e == 1) { //portrait code } else { //landscape code } } Ti.Gesture.addEventListener('orientationchange',function(e){ setOrientation(e.orientation); }); //WHY THIS CODE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! if (WindowWidth < WindowHeight) { setOrientation(1); } else { setOrientation(3); } |
Read More
Hello all, long time, no chat, I thought I would turn around from my furlow and give a quick tutorial on creating an RSS feed reader using Appcelerator, enjoy!
I am going to, of course, use the twoappguys.com rss feed.
Remember I am not a writer!
Create a new mobile application in Titanium Developer.
I use Textmate and create a new project it works freakin sweet!
Read More
So we have been building some apps, and we needed to use a flickr search rss feed, I decided to make the code open….. I am not going to explain it, but it should make sense.
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 | < ?php $tags = $_GET['tags']; $tagmode=$_GET['tagmode']; $sort=$_GET['sort']; $num = $_GET['num']; $base = 'http://www.flickr.com/services/rest/'; //$api =& new Flickr_API(array('api_key' => '<your flickr api key>',)); $oldtags = $tags; $tags = str_replace(" ",",",$tags); //$response = $api->callMethod('flickr.photos.search', array('tags' => "$tags", 'tag_mode' => "$tagmode", 'sort' => "$sort",'per_page' => "$num",'extras' => 'description,url_o,date_taken,guid,media')); # check the response $params = array( 'method' => 'flickr.photos.search', 'api_key' => '062b0d0d94f0da6f9813c8d2b37c5256', 'tags' => "$tags", 'tag_mode' => "$tagmode", 'per_page' => "$num", 'sort' => "$sort", 'extras' => 'description,url_m,date_taken,guid,media', ); foreach ($params as $key => $value) { $query_string .= "$key=" . urlencode($value) . "&"; } </your> |
Read More
Looks like Apple pulled a chagaroo with there site today, so it used to work:
Step 1. Tony and John Design the App
Step 2. John builds the app (most of the time)
Step 3. Tony makes it look good (Always)
Step 4. Tony adds the app, but does not upload the binary
Step 5. John tests the hell out of the binary
Step 6. John fights the upload ’til apple takes it.
Step 7. Apple rejects it (actually this only happened 2 times in 7 apps)
What happened today… no more “.*”…….. As Weezer would say… “Say it ain’t so”, but it is, you now are required to have a full application bundle id for every binary you upload. Oh yeah did I mention your PR guy can no longer write a sexy description then have you upload the binary??? Well they can, but 10 bucks says your PR guy can’t figure out the bundle ID, so your job as the tech, as if it wasn’t hard enough, just got a bit harder. Oh well, Tony and I will fight through it, we have been working hard, and are putting 20 apps in the app store.
Read More
So, I have to admit, I am a cellphone addict. I told my friend, Matt, I ordered an unlocked iPhone from the U.K., and he recommended I go to Wal-Mart for it. So I said, ‘Spencer, Iowa Wal-mart, they don’t sell it there.’ Matt followed that up with ‘no, to get a technology patch’. I laughed and he laughed, but yet, he still knew my obsession and the reason I am willing to pay 1,100 for a new iPhone; I did it when the iPhone 3G came out, even though in Spencer we don’t have the 3G service.
I couldn’t wait for my iPhone 4 to show up, so I jail broke my iPhone 3G and all I have to say is: WOW, Apple did it again, and they did it correctly as I check my email and listen
Read More