Category Archives: Development

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

Creating your own ios slide to unlock feature on Titanium Appcelerator

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

We currently have a project that requires a lock feature without using the actual lock button on the iPhone, since I have to somehow copy the “slide to unlock” of the iOS, I did a research thinking maybe someone have already done that on Titanium then voila! There is one! Thanks to a user named pec1985, here’s the link to the code repo.

Unfortunately he created the code during an earlier version of the Ti SDK,  Continue reading

Foolproof Labs’ blazes the way with first iBeacon powered event

At the UXMNL event on Saturday (http://www.uxmnl.com/AprilWorkshop), Foolproof Labs showed off the latest in our technology portfolio with an application that went from “idea” to “uploaded to the Google Play store” in 6 hours flat.

iBeacon is an indoor positioning system developed by Apple that works with both iOS and Android and enables us to send targeted content based on the user’s location and even on the user’s demographic information e.g. you could send different content to males and females, old and young people, students and professionals.

As solution providers, this is a really powerful system and opens up a whole new playground of possibilities for us and for our clients.

You could imagine a trade-show in a large conference center that could send a welcome message to the customer when they walk in the door, another message with a promotional coupon when they get to the first booth and another message when they reach another pre-defined place and so on.

The possibilities are endless, other uses include:

Our application (https://play.google.com/store/apps/details?id=com.foolprooflabs.uxmnlevents) was a 3 page app for use on the day that displayed the event schedule by default.  When a user moved near the Registration Booth, they were shown a “Welcome” message and were then shown a “Meet the Team” page with profiles of each team member.  When they moved away from the Registration Booth, the Event Schedule page came back.  Later in the evening at the networking event, when users entered the venue at Chihuahua (I highly recommend their tacos and Frozen Magaritas by the way), they were shown the Chihuahua food menu.

Pretty simple but a great proof of concept and not bad for 6 hours of work from idea to design to finished application.

If you want to have iBeacons in your business, get in touch with us to know more, you can email me directly at phil@foolprooflabs.com

Further Reading on how iBeacons are going to change the world: http://www.businessinsider.com/beacons-and-ibeacons-create-a-new-market-2013-12

How learning Dota can be applied to learning programming

 

strategical map

When we play Dota or Dota 2 we always wait for the creeps on either Dire or Radiant side of the map, well let’s relate this on my college life. When I was still in College as an IT Student, when a new technology on development came up and out for use some of my friends tend to say “Professors will teach us about that when we get to the next semester maybe”, with that mentality a lot of students are about to make the biggest mistake of their college years if they are about to pursue their career as a programmer or a developer, if you will be doing that there’s no difference between you and “juan tamad” who just waited for the fruit to fall from the tree rather than climbing the tree and getting the fruit.

juan tamad

Students now a days already have access to fast internet connections depending
on what ISP you subscribed to, so why wait for your professors to teach you a new language
which you can learn at home? When you graduate, probably most of the things that they taught
you in your college days might be obsolete and that will be a pain in the ass because you have to rush your self learning new stuff to find a job as a fresh graduate when that is something you could have done in your college years.

I know some of the players of either Dota 2 or Dota already used the hero named “Axe”, the common
strategy for the users of Axe is that before the start of the game or the release of the creeps, they go on the opponents side near the blind spot and wait for the first release of the opponent’s creeps and kill all of them before they reach center of the map so that axe becomes fatty before his opponents does. Yeah, I know this blog is not about teaching a new Dota strategy on how not to wait for the creeps but this is intended to grab some attention from the college students who prefer to spend their precious time on playing Dota rather than studying stuff that would get them fatty for the clash against the real world.

Be an Axe who doesn’t always wait for the creeps on their comfort zone, there are a lot of communities
on Facebook, Reddit, Stackoverflow etc. that could help you out when you get stuck with some problems while developing or studying new technologies for the development and always remember to “RTFM” (Read The F*cking Manual).

How to revert Alloy to previous version

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

One of our development machines was recently upgraded to the latest version of Alloy and Appcelerator’s Titanium SDK which gave us a couple of minor display bugs that we didn’t want to spend time fixing at this particular moment in time.

It’s quite easy to revert as long as you know the previous version that you’d like to revert to.

Just type:

sudo npm install -g alloy@1.2.2

and just replace “1.2.2” with the version you’d like to revert to.  Don’t forget to update the Alloy version in your tiapp.xml as well if you made changes there.  And if you did make changes to your tiapp.xml don’t forget to “clean” your project before you re-build 🙂

(Thanks to the documentation: https://github.com/appcelerator/alloy/blob/master/CHANGELOG.md)

Reduce memory usage on OSX

After installing mysql using brew, we noticed the memory usage was insanely high for what we needed (just a local development serve).

It was showing in Activity Monitor at almost 500MB memory usage for running just 3 or 4 small databases on one of our developers machines.

Apparently when you install via Homebrew, the configuration defaults to something that would be more appropriate for a production server than a developer’s local machine.

The solution was to just override some of the my.cnf defaults as per Robby’s explanation here: http://www.robbyonrails.com/articles/2013/11/24/reducing-mysqls-memory-usage-on-os-x-mavericks