应用Node.js搭建一个简单的服务器
第一个简单应用
参考Node.js for Beginners. 去除以下代码:
1 2 3 |
|
参考Node.js for Beginners. 去除以下代码:
1 2 3 |
|
为什么需要在命令行进行文件和文件夹的操作:
Read on →在iOS中有三类事件:
这里要讨论的是触控事件的机制。
iOS中主要有两种触控事件:
For basic configuration of octopress blog, go to official site for references.
After updating OS to EI Caption (10.11), there is some bugs when we run rake preview
. You need to update your ruby version, and reinstall dependencies of octopress.
Refer to Errno::ENOENT: No Such File or Directory - Jekyll ~ Octopress and El Capitan post for more details.
If you can still not update your ruby version using the way in the above post, try the following commands (Refer to Using Rbenv to Manage Multiple Versions of Ruby for more details.) before install new ruby version:
1 2 |
|
1
|
|
Go to here to choose the theme you like. Personally, I like the boldandblue theme. It is simple and elegant.
Read on →Use shortcut to improve productivity while using Chrome.
A full page is on Chrome helper:
I will list some common used ones here by myself.
Read on →Compiler Warnings for Objective-C Developers is a good post for describing warning messages for Objective-C in xcode. A Chinese version can be found 谈谈Objective-C的警告.
Some important things are marked here.
Two ways to modify complier’s warning setting: UI Method and Custom Compiler Flags Method.
Read on →Google Maps Android API utility library (the github repo and the documentation) supplies multiple cool features, including
Contents:
The following suggestions are all based on Windows. It should be similar on Mac.
Read on →A .dSYM file is a debug symbols file. It is generated when in xcode:
Generate Debug Symbols
setting is enabledDebug Infomation Format
is set to DWARF with dSYM File
in the build settings of your project.在Java或者Javascript的开发中,我们会碰到垃圾回收(Garbage Collection,GC),它和iOS中的自动引用计数(Auto Reference Count,ARC)有什么区别呢?
Read on →Contents:
In Cocoa, the Model-View-Controller pattern, a controller’s responsibility is to keep the view and the model synchronized. There are two parts to this: when the model object changes, the views have to be updated to reflect this change, and when the user interacts with controls, the model has to be updated accordingly.
Key-Value Observing helps us update the views to reflect changes to model objects. The controller can observe changes to those property values that the views depend on.
For more details, refer Key-Value Coding and Observing from objc.io;
Read on →Refer Mac和iOS开发资源汇总
Another good github page for iOS resources: iOS 学习资料整理.
其中,最近(2015年)仍然在更新的中文博客:
Read on →TODO
All the attributes of a property defines how the compiler generate the getter
and setter
accessors.
setter
accessor.readonly
, the compiler will only declare the getter accessor, so that you can not call setter accessor.This post is deprecated. Refer to Propety, Instance Variable and @synthesize.
Read on →