• BLOG
  • ARCHIVE
  • Responsive Header Over Image

    Feb 17, 2018

    A responsive cover image is a full width image that will adapt to any device screen. No matter what device you are using, it will always looks like full width and keeps its ratio.

    So how to create this background image with a width 100% and height auto using pure css and html?

    ...more
  • Retain Cycle With Array Or Dictionary

    Feb 12, 2018

    The question is will it create a retain cycle if we have an array (dictionary) of objects where the object is owned elsewhere? A short answer is YES it will.

    ...more
  • How to Write Blog With Pure Plain Text MarkDown

    Jan 26, 2018

    Last year, I wrote a blog about hosting blog using Hexo and org documents. Now I have not using Emacs for my notes anymore. The main reason is that I could not visit my notes on my Phone or Tablet which I feel really inconvenient. Now I want to use convert all my .org notes into markdown format and host my markdown notes directly into my blog for convenience.

    ...more
  • Init Core Data For Framework Projects

    Nov 12, 2017

    How to init the core data NSManagedObjectContext?

    ...more
  • Init View Controller For Framework Projects

    Nov 12, 2017

    How to init view controller from .xib file inside a framework project?

    ...more
  • Copy Product Framework File

    Nov 9, 2017

    When working with framework project after build, it will create the .framework file under the DerivedData directory. A little bit hard for us to find. Also we might want to automatically import the framework to our test project or another project that import the framework. So after setting this up, we can build this project and it will copy the .framework to a location where you import it in another project automatically. What I need to do next is to next build the other project.

    ...more
  • Import Third-Party Objective-C Framework into Swift Framework Project

    Nov 9, 2017

    How to import objective-c framework into a swift framework project?

    ...more
  • Install Piwik On Linux

    Aug 26, 2017

    Need to create an analytics server for the mobile app I made. I choose Piwik to self-host all the data in my own server. This is the full notes I made during the setup.

    ...more
  • Repeated Animation

    May 19, 2017

    Use the following code snippet to create a repeated animation

    ...more
  • Convert Byte Array to Data and to Int

    May 5, 2017

    This is about converting Data into Integer in Swift.

    ...more
PREVNEXT