LOVE in Morse Code on Society6

Graphic Design

I just found a website that helps artist to sell their art work, mostly illustrations, graphic design and photos.

I couldn’t help to try out. This is my first Society6 graphic design:

LOVE in Morse Code on

LOVE in Morse Code on


Setup direct access to tools in Terminal, Mac OS

Mac trick

I had just installed Android SDK I want to be able to execute adb directly from terminal without the hassle of typing all the path. That’s how to do it. Once you understand the method, you can add any other tools in the same way.


  1. First open Terminal app
  2. Enter the home directory
    cd ~/
  3. Create a “.bash_profile” file in the home directory
    touch .bash_profile
  4. Open “.bash_profile” file to edit it
    open -e .bash_profile
  5. Now with this file opened in a text edit, add the following line: In this example, let’s say my user name is “xxx“, I store the whole AndroidSDK bunch in “yyy” folder
    export PATH=$PATH:/Users/xxx/yyy/AndroidSDK/sdk/platform-tools/
  6. Save this file and close it
  7. Reload the .bash_profile file
    source ~/.bash_profile
  8. Now test if adb is successfully set into the path
    adb version

Illustrator CC: More or less than 10 items in “Open Recent Files” list


Open the “Adobe Illustrator Prefs” file with a plain text editor.

You need to right click the file and choose a plain text editor application for this file.
If you just double click, the system will use Illustrator to open it and you will only see a simple and pretty useless dialog.

(If you don’t know how to access to this file, please read my previous post: Access to Illustrator Preferences Files on Mac OS)

In the “Adobe Illustrator Prefs” file, search for:


The only thing you need to do is change the number to the right of this command AND save.
Logically if you change it to “0”, the application should stop storing any recent files.

Now restart Illustrator, you can see the number of recent files change.

Access to Illustrator CC Preferences Files in Mac OS


Every online instruction would tell you to access this folder:
/Users/Library/Preferences/Adobe Illustrator 17 Settings/en_US/Adobe Illustrator Prefs

Access Library folder

However, by default the “Library” folder is hidden.
At least two ways you can access this hidden folder without changing any system preferences:

  1. Simply type “Library” in Spotlight
  2. In Terminal type:
    Open Library

Find & Open the Preference File

In the now opened “Library” folder, you can find the “Adobe Illustrator Prefs” file under: “Preferences/Adobe Illustrator 17 Settings/xx_xx/” folder. If you have another version of Illustrator, well, just find the folder with your version number.
The “xx_xx” here is the language and country code. For example: “en_US“, “en_GB“, etc. That depends on the language you’ve chosen when you installed Illustrator.

Make sure you open the “Adobe Illustrator Prefs” file with a text editing tool (Right-click & choose a plain text editor). The default application for this file is Illustrator and you will only get a simple and also pretty useless dialog.


Get start with Xcode 6 Beta, iOS simulator UI


This is only for absolute beginners just like me. Not for pros.

iOS simulator

(For iOS 10 Yosemite Beta)

Keyboard does not appear by default

To enable it:

  1. iOS Simulator -> Hardware -> Keyboard
  2. Uncheck “Connect Hardware Keyboard”

Xcode 6 Beta 4

(Some are for Xcode in general)

Let’s face it, although Xcode provide all the prefill of classes, it does not have the best user interface. In fact, I can write an essay about how bad it is. However, it’s the only choice

Show/Hide the Assistant editor

Showing the Assistant editor (where you can edit swift codes) is straightforward enough if you know where to click, the 2nd button from the left. However, to hide it, you need to press the 1st button from the left.

Screen Shot 2014-08-02 at 20.48.47

Connect Element on the storyboard to swift files

It’s very easy to add element to storyboard and make it looks right. However, in order for them to work, you need to be able to specify them in swift files. You need to do that by:

  1. Right-click on one element, you will see a black popup window.
  2. Drag the classes you want to link to the icons on top of a ViewController like this:
  3. Now the dataSource class of this control is liked to “View Controller” swift file

It’s quite a cumbersome way to tie looks and behaviours together.
Personally, I believe there is a more elegant way to handle this.
Come on, Apple, you can do better!

Declare an empty Array

Old way:

var tasks = task[]()

New way

var tasks = [task]()

Get Started with Xcode 6 Beta & Swift

Swift, Xcode

The Swift Programming Language

Free to download from iBooks

Tutorials are great, but if you want to understand every line of codes and the difference between Swift and other programming languages, reading the Swift reference book would be a good option.

All tutorials listed here are for Xcode 6 Beta 4 + Swift & 4 Beginners

Free Udemy course – Game

Learn to create a Flappy Bird like iOS game with Xcode 6 Beta + Swift.
This course is very much focused on step-by-step instructions.
If you want to understand all these lines of codes, read the Swift reference book.
Everything aside, it’s a lot of fun making it.   🙂
I’m an absolute beginner; if I can do it anyone can make it.
Go to the course


Picker View, written by Connor Hicks, from COHIX Web Development Inc. Thank you very much for this wonderful tutorial!
From this tutorial you will learn:

  • Create a single view App in Xcode 6 B1 with Swift
  • Get introduced to the user interface of Xcode 6 (not much, but enough to get started)
  • Build a Simple PickerView including:
    • Setup the delegate and data source for the picker view
    • Add an Outlet in the View Controller
    • Add necessary methods for the picker view to work
    • Run this simple App in iOS simulator

Video tutorial: The end result is pretty much the same, only method is slightly different.


Task List App (Tabbed Application)

OS X Yosemite Beta Testing (on going): 3 things can be improved

OS X Yosemite Beta

I have just installed OS X Yosemite Beta today and had already submitted three issues. I am really excited about it.

Issue/Improvement # 1: Feedback Assistant UI

  1. What I miss the most is a way to attach images. Many issues are far easier to explain with screen shots.
  2. What I also miss is more dimensions to categorise an issue than just “select the application”. Surely, the current Feedback Assistant UI has provided quite a primitive way to categorise your findings, however, some issues are multi-dimensional: application, minor vs. major, bug vs. improvement, technical vs. usability, to name a few. The issue tracking system I’m using in my work allows so much more means to classify an issue which enables it to be dealt with by the right team in time with very little manual work. And I’m talking about hundreds of issues in our case. With millions of Beta testers, Apple is going to be bombarded with issues. Definitely more means to categorise a finding is needed. I ended up with including keywords in the title. (but that needs manual work)

Issue # 2: Safari sometimes snaps to mobile version

When you browse with the new Safari, some website will snap automatically to the mobile version. However, when use Chrome, the same websites stick to the web version. I am not sure it’s more a problem of the websites or Safari. Not every websites that have mobile version do that. But still, some users are going to blame the browser.

Issue # 3: Highlight and the contents that are highlighted are in the same colour

Even though I’m trying my best to describe the issue, it’s going to sounds a mouthful. This is a perfect example of an image says it all. Just take a look at the following image:

Screen Shot 2014-07-26 at 22.54.56

See, the image pretty much explains everything.