Monthly Archives: July 2014

Search replace db WordPress

Developing a site on localhost or on a local domain and need to push the database live? Worried about how to switch all of the hard-coded URLs in the database? Worry no more!

http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

How to use callback functions in Appcelerator’s Titanium

Interested in a hands-on tutorial in Titanium? Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services

As part of our internal “Crash Course To Titanium”, I was teaching our guys how to use a Common JS module to pull data from a remote server and generate data for a tableview.  The problem came when we’d finished generating the data, we had to pass it back to the View.  The hacky solution would be to store the TableView object in a Global variable that can be accessed anywhere.  Of course, that’s not the best solution, a much better one is to use a callback function passed as a parameter to the CommonJS function which is then called when the tableviewdata has been prepared.

Here’s a simplified version of how we got it working: https://gist.github.com/philsmithsonuk/6afe59833daeef8f3f24

Thanks to Ricardo for pointing us in the right direction: https://plus.google.com/u/0/100369688595445841250

Anyone interested in Titanium development should check out our tutorials http://blog.foolprooflabs.com/category/titanium-tutorials/ and also join https://plus.google.com/u/0/communities/103721188616163608038

 

Simple Animations with Appcelerator’s Titanium

Interested in a hands-on tutorial in Titanium? Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services

Every app you make can be brightened up by some animation.

Here’s a very quick + dirty test gist we did for a request to have each word of a sentence fade in word by word and play a sound when the word has faded in:

https://gist.github.com/philsmithsonuk/3ee8de53c410d4ffbebb

Further reading:

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.Animation

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.2DMatrix