- 博客(22)
- 收藏
- 关注
转载 长连接与心跳包 Persistent connection and HearBeats
http://stackoverflow.com/questions/1480236/does-a-tcp-socket-connection-have-a-keep-alivehttp://stackoverflow.com/questions/2735883/relation-between-http-keep-alive-duration-and-tcp-timeout-dur...
2015-06-11 09:36:00
200
转载 java NIO
Reference: Getting started with NIOTable of contentsBefore you startInput/output: A conceptual overviewChannels and buffersFrom theory to practice: Reading and writing in NIOBuffer ...
2015-06-08 15:06:00
204
转载 推送技术 随记
基本概念通常HTTP协议的模型是 Request ---> Respond , 客户端主动发起请求,而服务器不会主动向客户端发起通信。为了达到数据同步,通常会采用Polling方式:客户端定时查询服务器。缺点是浪费带宽,响应有延迟(与查询间隔有关)。解决办法【Server Push】 推送技术基于HTTP ,客户端与服务器维护一个长连接。推送实现难点...
2015-06-02 17:27:00
199
转载 node-webkit File Dialog
1. 多次选择相同的路径时,chooser.onchange 事件不触发参考链接Choosing the same directory multiple timesOnce the chooser has been used to select a directory (or the same file path + file name), the change event ...
2015-05-29 11:57:00
214
转载 Spring Framework tutorial
学习mavenpom.xml <packaging> <artifactId><dependencies>compile package install spring dependency injection 使用实例<artifactId>spring-context</artifactId>...
2015-05-07 19:08:00
130
转载 jdk,jre,jvm概念
stackoverflow referencejava 概念图转载于:https://www.cnblogs.com/JosephLiao/p/4485382.html
2015-05-07 16:49:00
154
转载 Process Synchronization 进程同步
critical-section problema solution to critical-setion problem should satisfy 3 requiremnets:1.Mutual exclusion2.Progress3.Bounded waiting2 & 3的区别?有什么场景?转载于:https://www.cnblogs.c...
2015-04-30 14:04:00
263
转载 linux内核添加系统调用(实践篇)
project-adding a system call to the linux kernel环境:Ubuntu 14.04.1 LTS1.准备内核源码:下载:WWW.kernel.org 解压:我选择解压到~/workspace/linuxKernel 目录下2.修改system table/linux-4.0.xx/arch/x86/syscalls...
2015-04-20 12:30:00
265
转载 blink tutorial
(1) Blink cannot run alone, and (2) porting to other platforms happens at a different layer Instead of adding platform-specific code to Blink, you should use Chromium’s content layer, whi...
2015-04-10 15:21:00
180
转载 stack vs heap 堆与栈的区别
申请方式 申请后系统的响应 申请大小的限制 申请效率的比较: 堆和栈中的存储内容 存取效率的比较 转载于:https://www.cnblogs.com/JosephLiao/p/4409607.html...
2015-04-09 14:35:00
182
转载 HTML && CSS 设计模式
1.Div子元素水平、垂直居中方法一:设置container Div 的属性display:box;box-pack:center;bor-orient:vertical;/*or horizontal*/box-align:center;/*垂直居中*//*需要加前缀 -moz- -webkit-等*/疑问:box-pack:justify 时不能平均...
2015-04-03 18:29:00
130
转载 'overflow:hidden' 为什么会失效?
官方文档对‘overflow’属性的描述:This property specifies whether content of a block container element is clipped when it overflows the element’s box. It affects the clipping of all of the element’s co...
2015-02-05 16:25:00
192
转载 元素的 “包含块” 如何确定?Containing Block
元素的位置(position)和大小(dimensions) 需要根据元素的包含块(containing block)来确定。那么,谁是元素的包含框?有以下对应规则:元素 对应的包含块根元素root element(例如document) 初始包含块 initial containing blockposition 为 static...
2015-01-29 15:26:00
260
转载 如何做一个自动填满剩余宽度的div?
左边的div 2需要置float 属性为left, 右边的div 3 需要置overflow属性为hidden或者auto, 即可达到期望。div 2{ float:left; }div 3{ height:与div2同高; overflow:hidden;(或者auto)}转载于:https://www.cnblog...
2015-01-29 13:54:00
271
转载 如何将一个Jar包导入eclipse plug-in 工程
1.在工程中新建一个lib文件夹,将相应的jar包拷贝到这里,例如a.jar, b.jar;2.修改(或添加)MANIFEST.mf 文件中的Bundle-Classpath元数据:Bundle-Classpath:lib/a.jar,lib/b.jar,. 注意不要遗漏了后面的“,.”。3.在plugin.xml的编辑视图中点击Update the classpath s...
2015-01-08 14:42:00
864
转载 Eclipse Error:“ An API baseline has not been set ” 解决办法
参考:Eclipse > Help > help contents > Plug-in Development Environment Guide > Reference > Quickfixes> Missing API Baseline Quick Fix当项目报错“An API baseline has not been set fo...
2015-01-08 14:19:00
520
转载 Eclipse 插件之间互相依赖, 导出Jar包安装, 报错“java.lang.NoClassDefFoundError”
在开发 插件A 与 插件 B 过程中, Plugin A 需要使用到 Plugin B 的某一个类 ClassB, 假设ClassB 位于 Plugin B 的PackageB 中,那么需要在Plugin B 的manifest.mf 文件中添加:Export-Package: PackageB并在PluginA 的manifest.mf 文件中添加:I...
2015-01-06 19:04:00
341
转载 透视图扩展 Perspective Extensions
eclipse中的一些元素如图所示:透视图?透视图 是一系列Views和Editors等元素的 可视化容器。透视图 定义了Workbench Page中 Window action bars(menu and toolbar) 的初始化内容 和包含的视图(views)与它们的布局方式。WorkbenchWindow是书本的话,Perspective就是其中的一页...
2014-12-30 17:34:00
240
转载 监听器与适配器 Listener&Adapter
为什么需要Adapter? 简短回答:简化【事件源】 能注册(addxxxListener)监听对象并发送事件对象WindowListener listener = .....;frame.addWindowListener(listener);特定事件 对应 特定的监听器接口(listener interface);public interfac...
2014-12-26 16:44:00
544
转载 eclipse 扩展点 extension point
Extension Point 是插座, Extension 是插头。扩展点提供服务, 扩展请求服务。转载于:https://www.cnblogs.com/JosephLiao/p/4182595.html
2014-12-24 15:41:00
400
转载 POJ 1488 TEX Quotes
刷了一下水题^^虽然是水题,但也有文件处理常错点:使用!feof(FILE*) 作为循环判断条件时,应该在循环外先进行一次读操作(line 9),因为feof()返回最后一次“操作内容”,而不是“预判机制”。错误使用会使得文件复制时多产生ÿ字符或者多处理一行;具体讨论有时间再补充完整吧~ 读者也可以阅读http://baike.baidu.com/view/65664...
2013-10-14 21:28:00
136
转载 Poj1753 Flip Game 解题报告
Flip GameTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 26321Accepted: 11352DescriptionFlip game is played on a rectangular 4x4 field w...
2013-10-09 22:35:00
183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人