所有引用内容版权归原作者所有。
使用 知识共享“署名-非商业性使用-相同方式共享 3.0 **大陆”许可协议 授权。
- what-happens-when-zh_CN——你可能想象不到,浏览器中有如此多的不为人知
- Heart First Java Web ——可能是第一个说人话的 Java Web 入门教程
- learnrx-zh-cn——Rx 官方出品互动式教程,中文精心翻译,新手老手都能有所收获
笔试面试知识整理
Home Page: https://hit-alibaba.github.io/interview/index.html
所有引用内容版权归原作者所有。
使用 知识共享“署名-非商业性使用-相同方式共享 3.0 **大陆”许可协议 授权。
如题
Android Document:
void onPause ()
Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed. The counterpart to onResume().
When activity B is launched in front of activity A, this callback will be invoked on A. B will not be created until A's onPause() returns, so be sure to not do anything lengthy here.
Android开发-Android基础-Activity/Service生命周期
onPause方法中说到:AlertDialog等弹出窗口时它(Activity)处于暂停状态。只是new出来的对话框是不会调用onPause方法的。
http://hit-alibaba.github.io/interview/iOS/Cocoa-Touch/UIView-Basic.html
提到“addSubview 会导致 ……, 同时 add 的 target view 以及它所有的子 view 都会被调用”
但是根据我的测试结果,默认情况下,子 view 的 layoutSubviews
方法没有被调用。
HTTP的生命周期是shen me gui
我今天就被问到了。。当时我就懵逼了。。
快加进去吧以免学弟们也挂在这里
source/basic/algo/Sorting.md
目前是
for (var j = 0; j < array.Length - 1; j++)
但应该是
for (var j = 0; j < array.Length - 1-i; j++)
###并发编程案例4中代码: 点击查看代码
NSLog(@"1"); // 任务1
dispatch_async(dispatch_get_global_queue(0, 0), ^{
NSLog(@"2"); // 任务2
dispatch_sync(dispatch_get_main_queue(), ^{
NSLog(@"3"); // 任务3
});
NSLog(@"4"); // 任务4
});
NSLog(@"5"); // 任务5
案例的分析结果是: 1最先执行;2和5顺序不一定;4一定在3后面;
我的疑问是如果说4一定在3后面,那么是否能够说明 dispatch_async 阻塞的是当前所在队列;内部的dispatch_sync在阻塞的并发队列的情况下才有可能4一定在3后面,因为任务2,任务4,和同步派发(dispatch_sync)可能分配到不同线程中执行;如果阻塞的是线程,那么任务3和任务4执行的顺序就不一定了. @skyline75489
###这个问题也可以这样描述:
为什么在global中 任务2, dispath_asyn, 任务4,不是放在不同不同的线程中并行执行的?.
Tanks in advance.
在 设计模式 一节,"设计模式归纳"下方的图片无法显示,如图所示:
在响应者链一节中,根据Apple官方文档的描述,在UIApplication之后,事件会传给UIApplicationDelegate。
https://hit-alibaba.github.io/interview/iOS/Cocoa-Touch/Multithreading.html#自己创建的队列与系统队列有什么不同?
这里第一句说“最终会把任务分配到系统提供的主队列和四个全局的串行队列上”,四个全局队列是并行的
搜了下api:
@function dispatch_get_global_queue
方便离线阅读,谢谢了
https://hit-alibaba.github.io/interview/basic/network/IP.html
IP地址这一页,4.指向所有子网的广播
下面的 广播示例
部分无法正常显示
而看下面这个链接里面是正常的
https://github.com/HIT-Alibaba/interview/blob/master/source/basic/network/IP.md
猜测可能是没及时更新所致
HTTP over TLS
这一节中原文
从上面的过程可以看到,TLS 的完整过程需要三个算法(协议),密钥交互算法,对称加密算法,和消息认证算法(TLS 的传输会使用 MAC(message authentication code) 进行完整性检查)。
TLS应该是一种非对称加密算法。
参考资料: TLS/SSL
在 https://github.com/HIT-Alibaba/interview/blob/master/source/iOS/ObjC-Basic/Class.md#synthesize-和-dynamic 中提到 “当重载父类中的属性时,也必须手动写 synthesize”,但是,通过查看 Xcode 7.0 编译下面的代码,却发现 “当重载父类中的属性时,父类和子类均会生成 setName
和 name
两个方法”
@interface Father : NSObject
@property NSString *name;
@end
@implementation Father
@end
@interface Son : NSObject
@property NSString *name;
@end
@implementation Son
@end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.