Facebook Twitter Github Freelancer
    Android Go Back To Previous Activity

    finish();

    That’s it, nothing tricky, enjoy.

    Set Eclipse @author

    1. Open eclipse.ini
    2. Set -Duser.name=whatever you want

    cocos2d Increase Hit Area

    Iron MQ Push Messages

    You may not find info about how to do this quickly, these are cliffnotes:

    1. get the URL of your subscriber “iron_worker webhook name” NOTE: this is case sensitive and the same name you use when you go “ironworker queue name”.
    2. In whatever worker you are adding to the mq add
      @queue.add_subscriber({:url => “subscriber_url”}) NOTE: subscriber_url is from step 1.
    Sending Mail with Gmail From Iron.io

    If you are using ActionMailer and are getting username / password rejected check the following:

    1. You don’t have 2 step authentication on the account (if you do you have no hope of continuing).
    2. If you receive and email from google saying there was suspicious activity just click here and then run the worker again from iron.io. This should be accepted now.
    Apple Provisioning Team IDs Hint

    How do you link up you Certificates from the Keychain you ask?

    1. Under Keychain > My Certificates find your certificate e.g. iPhone Developer : Your Name (weird code e.g. VX1234567H)
    2. Double click your certificate and find the field called Organizational Unit this is your team id
    3. Under Xcode > Organizer - Devices > Provisioning Profiles you will see you have apps e.g. [team id].com.yourcompany.appname

    That’s how you can link them up.

    NOTE: sometimes the weird code from step 1 is actually your team id, but this isn’t always so. Generally this is only the case if Xcode automatically generated your CSR (certificate signing request) for you.

    Suppress All Warning Xcode File

    Under project Targets > Build Phases > Compile Sources add the -w Compiler Flags to the file(s) you want to stop showing you warnings.

    Image Metadata Mac

    To view metadata on Mac in objective c use the following code:

    NOTE: you may not see any geo data and may have seen it in say iPhoto, iPhone etc. Apple strip out any of this info when you export the image. You have to manually tell the apps at export time to keep the geo data.

    Eclipse Crashing on Android Export

    When right clicking on project in Eclipse and selecting Android Tool > Export … Eclipse crashed.

    Try turning off Build Automatically.

    More info here here.

    A quick overview of rounding and borders for UIVIews.

    NSDictionary Simplified

    @{key1 : val1, key2 : val2}

    Super Breakpoints

    Under Breakpoint Navigator add (+ button bottom left) an Exception Breakpoint. I use the following:

    Exception: All

    Break: On Throw

    Action: Sound - Sosumi

    Action: Debugger Command - po $eax

    You can also do the following 

    • po [$eax class]
    • po [$eax name]

    NOTE: $eax only works on the simulator. For a device you need to use $ro.

    NSDateFormatter and 24 hour time

    If you use the format “dd MMM yyyy h:mm a” don’t expect it to you the time in non 24 hour format if you have the iOS device to 24 hour format. It will be forced to show in 24 hour format.

    No output in LogCat With Log.d

    If you use Log.d(“”, “”) make sure both fields have something entered, otherwise it won’t appear in LogCat.