仅仅利用media query适配样式是远远不够的,并没有考虑触屏下的行为和特有的内容组织方式的不同。简单在桌面版基础上叠加mobile版的代码,会带来请求增多、流量、性能、代码冗余等诸多方面问题。有统计说86%的手机站看起来small其实体积比桌面版还大。我们这次充分发挥“响应”的灵活性,实现on...
分类:
Web程序 时间:
2014-06-26 18:16:20
阅读次数:
289
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2014-06-26 15:50:35
阅读次数:
176
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2014-06-26 15:45:49
阅读次数:
163
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-06-26 13:58:53
阅读次数:
203
随着浏览器对HTML5的支持越来越来好,使用canvas做动画再也不用担心兼容问题了。虽然CSS3的transform属性已经十分强大,但是在canvas面前也只能算是小儿科。今天就用canvas做一些不一样的动画。...
分类:
Web程序 时间:
2014-06-26 13:51:47
阅读次数:
189
之前在百度博客上写过一篇关于CSS hack的汇总,对CSS各种hack做了汇总,最近浏览器很多时候都不考虑IE6了,IE6在很长一段时间里,他的兼容性让很多搞前端的人员头痛!...
分类:
Web程序 时间:
2014-06-26 13:23:49
阅读次数:
166
在上一篇中testpmd程序已经测试成功的情况下,来到examples/ipvr_frag目录中。
确认环境变量RTE_SDK、RTE_TARGET都正确,执行make。
一、一个逻辑核(lcore)处理一个端口(port)
./build/app/ipvr_frag -c 0x1 -n 4 -- -p 0x1 默认是一个队列
下图是官方对参数p、q的说明文档截图
运行结果如下图...
分类:
移动开发 时间:
2014-06-26 10:27:38
阅读次数:
314
随着浏览器对HTML5的支持越来越来好,使用canvas做动画再也不用担心兼容问题了。虽然CSS3的transform属性已经十分强大,但是在canvas面前也只能算是小儿科。今天就用canvas做一些不一样的动画。...
分类:
Web程序 时间:
2014-06-26 07:34:22
阅读次数:
537
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2014-06-26 07:09:01
阅读次数:
213
右点击Eclipse快捷键,然后点击属性, 把目标(target)内容修改如下:clipse -data c:\myworkspace -vm c:\ j2sdk1.5\jre\bin\javaw"这里填你Eclipse.exe 程序的目录" -data "这里填你workspace的目录,注意不能有空格目录" -showlocation以后点击快捷就会自动加载你设置的workspace...
分类:
系统相关 时间:
2014-06-26 06:52:53
阅读次数:
313