Sunday, March 8, 2015

[OSX] Upgrade Mavericks to Yosemite the hard way


Quite a long time that I didn't upgrade my PC hardware (before 2012 I think), And last time I just upgrade OSX to Maverick but suddenly Xcode required to use Yosemite...grhhh So I've 2 task to accomplish here,

  1. upgrade my Maverick to Yosemite for Xcode sake.
  2. upgrade my hardware which is EVGA GTS250 PCIExpressx16 Gen 2 1G GDDR3 to ASUS GeForce® GTX 750 Ti OC 2G (which is same price at that time but yeah faster obviously)

Due to many step and Boot Flags to miss and mess up and yes I did lost a whole day and night to finish it! Then it a good reason to write it here for my own use later and should be save save someone time! Let's go!

My PC System

  • Model Identifier: MacPro3,1
  • Processor Name: Intel Core i5
  • Processor Speed: 3.21 GHz
  • Number of Processors: 1
  • Total Number of Cores: 2
  • L2 Cache (per Core): 256 KB
  • L3 Cache: 4 MB
  • Memory: 12 GB
  • Boot ROM Version:
  • SMC Version (system): 1.30f3
  • Graphics: ASUS GeForce® GTX 750 Ti OC 2G *My new baby yeah!


Problem #1

Stuck at [IOBluetoothHCIController][SearchForTransportEventTimeOutHandler] -- Missing Bluetooth Controller Transport!

Solution #1

  • It's not a bluetooth problem at all, actually it's a process after that which is graphic related so don't bother fix bluetooth. do try (-v is for trace purpose, no effect)
    -v -x
    -v -x GraphicsEnabler=Yes nv_disable=1

Problem #2

nv_disable=1 did boot and getting in OSX but got glitch+slow render 

Solution #2

Problem #3

Try login Mac App Store but get... 
  • "Your device or computer could not be verified. Contact support for assistance." 

Solution #3

Problem #4

boot flags keep getting nvda_drv=1 like this

Solution #4

  • #to see it's there
  • $ nvram -p
  • #to delete it (sudo did the trick for me)
  • $ sudo nvram -d boot-args


Saturday, January 24, 2015

[AIR] How to build ANE 64-bit

How to build ANE 64-bit


Or try doing thing backward here ;)

  1. Open your Mac.
  2. Open Facebook check it fast and close it!
  3. Make sure Adobe AIR SDK is update to most recent by brew it. (or install if you don't have one)
  4. $ brew upgrade adobe-air-sdk
  5. Make sure AIR SDK path is set.
    $ export AIR_HOME=/usr/local/Cellar/adobe-air-sdk/
  6. Clone my working ANE 64-bit ready
  7. Go to /ane-device-file-util/as3/bin
    $ cd /ane-device-file-util/as3/bin
    $ bash
  8. Open your Twitter, tweet something and close it!
  9. Smile!
  10. That's it! 
You just build ANE from working static library "libDeviceFileUtil.a", now let's try make one your own! Follow this step below...

Thursday, January 8, 2015

[Cucumber] Hello Calabash Swift iOS

Behavior-driven development (BDD) Why?

  • why not?
  • it's fun
  • why not!?


  2. $ brew install ruby
  3. $ gem install calabash-cucumber --no-ri --no-rdoc
  4. $ sudo xcode-select -switch /Applications/
  5. $ sudo gem install bundler


  1. $ git clone
  2. In Xcode : open SingleTodo.xcodeproj and set Build Active Architecture Only = No

  3. fix error as Xcode suggest, build and run once to make sure it work properly
  4. $ cd todoSwift
  5. $ calabash-ios setup
  6. if you get
    We don't yet support this. Please setup calabash manually.
    do try delete it by...

    $ rm ._SingleTodo.xcodeproj

  7. In Xcode : switch to SingleTodo-cal scheme
  8. $ calabash-ios gen
  9. $ cucumber


  1. cry
  2. make sure all update and close then reopen terminal  
  3. try
  4. Time out waiting for UIAutomation run-loop? try this

    $ DEVICE_TARGET="iPhone 6 (8.1 Simulator)" cucumber

  5. Unable to unzip try here for temporary workaround

    error:  cannot delete old ./calabash.framework/Headers
    error:  cannot delete old ./calabash.framework/Resources
    error:  cannot delete old ./calabash.framework/Versions/0.12.0
    error:  cannot delete old ./calabash.framework/Versions/Current
    caution: excluded filename not matched:  __MACOSX/*
    caution: excluded filename not matched:  calabash.framework/.DS_Store
    Unable to unzip file: /usr/local/lib/ruby/gems/2.2.0/gems/calabash-cucumber-0.12.1/bin/../staticlib/
    You must install manually.
  6. yelling for permission? gimme sudo!
  7. $ sudo chown -R replace_this_with_your_name /usr/local/lib/ruby/gems/2.2.0


  1. $ calabash-ios sim reset


  1. Feature: Todo list application can add tasks
      As a user
      I want to add tasks
      So I can remember to do things
    Scenario: Add Task
      Given I am on the Welcome Screen
      When I touch "Add"
      Then I enter "listening to Taylor Swift" into input field number 1
      And I touch "Add task"
      Then I wait for "listening to Taylor Swift" to appear


Note to self

Happy Testing! :D