:::: MENU ::::

Getting Started with Respoke: Part 2 – Connecting to Respoke

Welcome to Part 2 of of the Getting Started with Respoke Series! In this section we will be covering creating an instance of the Respoke Client and connecting to Respoke.

In Part 1 of this series, we walked through setting up your Respoke account and creating your first App. If you haven’t done this yet, please take a moment to complete Part 1 now, as you will need these two items to follow along in the rest of the series.

Creating the Respoke Client:

Respoke App Settings

The first thing you will want to do when creating your Application is to create an instance of the Respoke Client. But before you can do this, you will need to get your App ID. The App ID can be found by going to Developer Portal, selecting the “Apps” tab on the left, clicking on the settings icon of the app you are working on, and scrolling down to the App ID section. Continue Reading


Getting Started with Respoke: Part 1 – Signing Up and Creating Your First App

This is Part 1 in a series on getting started using the Respoke platform. What is Respoke you ask? Respoke is an extremely easy-to-use platform that allows developers to add live voice, video, messaging, and data features to your websites and applications. Some examples of things you might do with this platform include (but are definitely not limited to):

  • Text Chat / Instant Messaging
  • Audio Calling
  • Video Collaboration
  • Peer-to-Peer Data (think direct file sharing from within your browser)

The examples I am going to cover in this series will use the Respoke Javascript Library which is open-source and available on GitHub at https://github.com/respoke/respoke. SDK’s for iOS and Android are also in the works and should be available early 2015.

Ready to get started? Let’s go!

Continue Reading


An Examination in Loss

Today I happened upon a post that I started writing over 3 years ago. I always find it interesting to read something that I wrote some time ago and compare and contrast the way that my views have changed since that time, but perhaps even more interesting still is to note the ways in which they have not…

Continue Reading


Error Establishing Database Connection on WordPress Login – Check Your Auth Settings

I recently downloaded a copy of my wordpress site to my local dev machine using the Duplicator plugin (works great by the way), and everything seemed to be working correctly, until I went to the wp-admin page. When trying to login via wp-admin I was presented with the message “Error establishing database connection.” Like most relatively intelligent individuals, I cracked open my wp-config file and checked, then re-checked, then re-re-checked my DB_USER, DB_PASSWORD, DB_HOST, and DB_NAME properties. As far as I could see they were all correct, yet the issue remained.

Continue Reading


Flashbuilder 4.7 Stops Reporting Compiler Errors

I finally made the upgrade to Adobe Creative Cloud, and thus far I have been extremely pleased with the new product line (the most notable difference being the compilation time and general speed of both Flashbuilder and Flash Professional). But, as with any new Adobe product, there are also a fair amount of really annoying and hard to diagnose bugs. The latest issue to plague me was that Flashbuilder suddenly stopped reporting compilation errors. As always, this resulted in a few frustrating hours consulting Dr. Google without much progress. And, as (almost) always, I finally found a solution.

The Solution (at least this worked for me):
All I had to do to get Flashbuilder to start playing nicely and reporting compiler errors again was to delete the project from my workspace (right-click on the project in the project explorer and choose delete, but select the option to not delete the contents), then re-import the project back into Flashbuilder (right-click in project explorer, choose import, then browse to the folder containing your project). That was all it took for me! Hopefully this will save someone from hours of head banging (at this point my skull is harder than steel!).


Flashbuilder error occurred during Finding occurrences – java.lang.NullPointerException

The other day I started getting plagued by constant pop-ups in Flashbuilder notifying me that “An internal error occurred during: “Finding occurrences””, the details then outline that a “java.lang.NullPointerException” is to blame. The partial stack-trace was as follows:

After a ton of googling on the error, the best solution I could find was to simply try and drag this window somewhere off the screen and ignore it. Unfortunately, this just wasn’t going to work for me; partly because Flashbuilder wouldn’t allow me to drag the window off screen, but mostly because I wanted to find a real fix! After a bunch of trial and error I was finally able to pin this down to a workspace error.

The Solution: For me the solution ended up being pretty simple. I made a backup copy of all the projects in my workspace, then deleted all the files (including the hidden ones) in my workspace. Next I pointed Flashbuilder at the now empty workspace directory (forcing it to recreate all the workspace files). Finally I imported the project folders that I had backed up. That seemed to do the trick for me. Now I’m just hoping that the same error doesn’t resurface in 20 minutes…


What to do when Flashbuilder forgets how to debug Flash Pro files!

After finally getting FlashBuilder to successfully edit and debug Flash Professional projects I was feeling quite triumphant, not to mention ecstatic that I could get all the nice bells and whistles of the Flashbuilder debugger while publishing to Flash Pro! All was good for about three days, and then, in standard fashion, Flashbuilder just forgot how to debug my files and refused to open them in anything but Flash Pro! This was completely out of the blue. I published once and Flashbuilder played nicely, launched the debugger, and let me inspect my properties. I launch again, and it opens the file in Flash Pro with no debugging!!!

After a few minutes of banging my head into the nearest table top, I took a deep breath, counted to 10, rebooted my computer, and said a little prayer. Unfortunately, Flashbuilder was still hosed after the reboot. I then asked the Googs for some help. Not much luck their either. Finally, I decided to pull a hail-mary and open up Flashbuilder preferences. Here I finally had some success!

What happened: Flashbuilder lost track of where to the Flash Debug Player lives.

How to Fix it: Open FlashBuilder Preferences -> Flash Builder -> Debug and look for the input for “Standalone Adobe Flash Player (debug version)”. Click on browse, then browse your standalone Flash Player Debugger. Click ok, and run debug on your project! That should fix the issue (at least it did for me).

If you don’t have the standalone Flash Player Debugger installed, you can download it from Adobes site and unpackage it anywhere on your machine, then just point at the file and you’re good to go (hopefully).


Building Robotlegs SWC Using Maven – Failed to launch Flash Player

First, a little backstory on how I got to this error in the first place (bear with me). I recently start a project using Robotlegs 2.0.0. Since this version was just released, a lot of the extensions are still being ported over. In my case, I had need of the RelaxedEventMap extension, which I had used heavily with RL1. Thankfully, CReynders was kind enough to port the existing RL1 source over to an RL2 extension; however, porting the extension also required a few minor tweaks to the RL framework source. What this meant to me is that if I wanted to use the RelaxedEventMap extension, I would need to download the latest Robotlegs source from GitHub which contained the previously mentioned tweaks (i.e. I could no longer use the latest compiled version of the RL2 SWC). I didn’t assume this would be a big deal, that is, until I tried to compile my application using Flash Pro. The compile-time went from about 2 seconds using the compiled RL2 SWC, to upwards of 30 seconds when including the RL2 framework source. All this led me down the path of compiling the RL2 SWC myself for the first time (see, I told you’d I’d get to the point eventually!).

Continue Reading


PhoneGap Android Errors – ANDROID_BIN=”${ANDROID_BIN:=$( which android )}” – GeekGoneNomad

While trying to get PhoneGap setup, I ran into an issue when creating a test android project. I was trying to run the following command to create my android project:

When I ran this command I immediately received an error:

After checking my .bash_profile paths, and a bunch of digging, I finally found the cause of the issue. If you open up the create file (phonegap-2.4.0/lib/android/bin/create), there is a line that lists ANDROID_BIN=”${ANDROID_BIN:=$( which android )}”. The “which android” is the cause of the issue (or at least it seemed to be in my case). If you replace this line with the full path to your android tools (as listed below) it should resolve the issue. My final line looked like this:

There is also another solution that has seemed to work for many people and is (in my opinion) a better and less obtrusive one than what I outlined above. That being said, this next fix did not work for me. If it works for you, I’d suggest you use it, and use the first fix as a fallback in case it does not work for you.

The second fix is to add the Android SDK to your Path environment variables. You can find detailed instructions on how to setup these environment variables for both Windows and Mac OSX in the PhoneGap documentation under sections 3A and 3B.


AS3 Regular Expression Global Flag

I’ve been playing around with using Regular Expressions in AS3 using the RegExp class, and recently ran into an issue where only a single result was being returned when running my regex against a string that should have contained multiple results.

To give a bit more detail, I was trying to parse all of the tags out of an HTML document. I went about doing this by using the match() method of the String class, which returns an Array containing all the matches found in the given String. The basic code was as follows:

As noted in my comment, this would always return an Array containing only one result (even though I could see multiple matches in the string).

The Solution:
The reason my search was only returning a single result was that I did not include the global flag in my RegExp. The reason I did include it is that I had never heard of it. For those of you that have also not heard of it: “When the g (global) flag is not included, a regular expression matches no more than one match.” Luckily, its’ implementation is quite simple. All you need to do is include “g” at the end of your expression.

So to update my original code to include all matches:

There are also some additional flags that you can include in your Regular Expressions, you can read about them all here: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7ea7.html


Pages:12345678