Prerender Your AngularJS Apps To Boost SEO

A Twitter subscriber of mine recently asked me if I knew how to use Prerender with my AngularJS applications to boost SEO when being crawled by search engines.  My immediate answer was no, but I offered to help him figure it out and write an article on it.

Prerendering AngularJS web apps is critical for SEO because when web crawlers such as Google crawl a web page, they do not process all the AngularJS source code and curly bracket elements.  With prerendering enabled, a web crawler will see the actual value found in curly brackets rather than the variables themselves.

(more…)

Extract An Android APK And View Its Source Code

So you’ve just made an Android application.  One that took you ages to complete and something that you feel proud of.  What is going to stop someone from stealing your logic and source code?  How easy is it to obtain?  The short story is that your source code is not safe by default and it is very easy to obtain.

This tutorial is going to be broken up in two parts.

  1. Extract the source code from a native Android application
  2. Extract the source code from a hybrid Apache Cordova / Ionic Framework / Phonegap application

Both are designed differently, but the source code is just as easy to access.  For each of these application types, you will see how to better protect your code using obfuscation practices.

(more…)

Understanding Request Signing For Oauth 1.0a Providers

I am very familiar with Oauth 2.0, but recently I had to work with Twitter and it was not as smooth of an experience as other providers such as Google and Facebook.  This is because Twitter uses Oauth 1.0a and requires request signing.

Oauth 1.0a requires requests to be signed using HMAC and a secret key.  Using this protects communication between the client and the server, but how do we accomplish this task?

(more…)

Create, Delete, And Search Contacts In Ionic Framework

When you make an app or service, you may find your self wanting to strengthen the user experience by connecting with friends in some fashion.  Applications like Facebook and Twitter allow you to search your contact book for friends that are already using their service.  If your friend isn’t using the service, you have the option to invite them.

Using native Android and iOS code could make this process very painful for the developer as it is lengthy and difficult.  Lucky for us, we are using Apache Cordova with Ionic Framework and there is a plugin for us that takes all the pain away.

The following steps will show you how to create, delete, and find all device contacts in your Ionic Framework project.

(more…)

Using Slide Boxes and Tabs in Ionic Framework Apps

One of my Twitter followers recently asked me to do a tutorial on the topic of Ionic Framework slide boxes and tabs.  I’m always up for a challenge, so I decided to attempt to meet his requests.

In this article we are going to discuss creating an application that makes use of tabs, slide boxes, and cards.  The theme of the application will be cars, where two tabs will represent the interior and exterior photos of cars and the third tab will contain information.

(more…)

Using The UI-Router To Navigate In Ionic Framework

Being that Ionic Framework relies heavily on the UI-Router for navigation, I thought I would do a write-up on how to properly use it.

We use the UI-Router to navigate between view states in our application.  By view states, I mean screens composed as template files.  If you’re looking for information on navigating in Ionic 2, visit my other post on the subject as it doesn’t use the UI-Router like Ionic Framework 1 does.

(more…)

Android 5.0 Lollipop

Manually Update Your Nexus Device To Android 5.0 Lollipop

So Google’s big Android 5.0 release is finally here after a week of delays.  Android 5.0 Lollipop is now officially rolling out to the Nexus line devices.  However, the roll-out is in batches so it could be as long as three weeks before you get your over-the-air (OTA) update.

If you’re impatient like I am, you’re going to want to manually install the update rather than wait for it to show up in a device update.

The following will get a factory Android 5.0 Lollipop image installed on your Nexus device in minutes.

(more…)

Tracking Pageviews with Google Analytics and Angular JS

Recently I noticed in my Google analytics dashboard that Analytics wasn’t tracking the full url of the page of my Angular JS site. I was tracking individual pageviews using this code in my app.js file:

(more…)

Use MavensMate with Sublime Text for Apex Development

After attending the Dreamforce conference for Salesforce development, I thought I’d share how to develop in Apex using Sublime Text rather than Eclipse.

If you’re familiar with my development styles, you know that I am very against using IDE applications because of their sluggishness.  Everyone will have their own opinions, but I much prefer Sublime Text over Eclipse for all development.  Lucky for us, there is an awesome package for us called MavensMate, that lets us do Apex coding directly in Sublime Text.

(more…)