curl for ipv6 on ios9

A old ios app is submitted to review with minor changes. But it’s rejected because doesn’t support ipv6 on iOS9. It shows our app cannot access internet in ipv6 setttings. At the beginning I think it’s AWS S3 issue, maybe it doesn’t support ipv6. Later I find it’s curl lib issue after debug. Actually obviously it should be curl lib issue, because in theory nothing needs to be changed for internet access in ipv6.

How To Use PhoneGap To Auto Subscribe

Phonegap was once popular solution to build ios app with web skills. But now there are more better choices, such as React Native or NativeScript, but I think Phonegap’s advantage is a lot of plugins. In the past half year, I spent a lot time to use cordova-plugin-purchase to support auto subscription, though this plugin has some problem and author doesn’t provide server receipt validation code or even explanation, but it seems it is still the best purchase plugin. After a lot struggling, finally I figure it how to do it.

rxjs introduction

RxJS is a JS implementation of Reactive

DotNet: I'm back

A side project requires Asp.Net. I don’t want to go back to DotNet, though it’s a good platform, but I don’t touch Windows for 4 years, I don’t use it for 8 years. Now I cannot image work with Windows, not Mac. As an engineer, we should keep curiosity for everything, right? The more important is Windows changes a lot in recent year, more open. That’s why DotNet can work on Mac. Now let’s setup everything on Mac.

prepare-fb-interview

Most engineers may want to join Facebook. It’s better to prepare before your interview so you can have bigger chance to get offer. Also I want to let you know Google and Facebook interviews are not as difficult as you think. Don’t be scared by someone’s idea, such like “how to get google offer”. Of course you have bigger possibility to get offer if you can know everything including the much complex data structure and algorithms, like B tree, B+ tree, A* algorithm … But you must know Graph or Tree DFS/BFS.

typescript-for-nodejs

ts-node

host angularjs with s3 and cloudfront

For SPA application like AngularJS project, it’s easy to use s3 to host it. But if you want to use SSL, you have to use CloudFront for help, because S3 doesn’t support SSL directly. But there is some special issue to solve when you host AngularJS project, such as url issue for html5mode and enable SSL for CloudFront.

angularjs2.0

AngularJS 2.0 is coming, even is still in beta and something is still changing, but most stuff works well. It’s a good time to start to try it. In our recent demo we find its Component is very cool.

Interview Questions

Recent days knows a lot of interview questions, some of them are interesting.

Learn React.js

Finally have chance to learn React.js, because we need choose one from Angular.js 2 and React.js. To learn React.js, I find some good articles to start.