用ActionBar的TABS模式,和Fragment实现程序顶部的标签页切换。一. MainActivity public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstan...
分类:
其他好文 时间:
2014-12-07 16:23:11
阅读次数:
182
Search in Rotated Sorted Array IIFollow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity...
分类:
其他好文 时间:
2014-12-06 19:32:52
阅读次数:
173
uptime可以显示出top画面的最上面一行![root@linux ~]# uptime18:06:30 up 52 days, 6:40, 1 user, load average: 0.00, 0.00, 0.00上面表示,目前是18:06 ,本系统已经开机52天又6:40 ,有1个使用者在在...
分类:
其他好文 时间:
2014-12-06 12:40:42
阅读次数:
147
Gitlab服务器环境是CentOS7+Gitlab7.2.1,最近发现在开发机上使用git pull更新文件时,会报如下错误。
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
Google了半天也没找到个好办法,最后还是查错误日志定位到了问题...
分类:
其他好文 时间:
2014-12-06 10:08:01
阅读次数:
527
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra ...
分类:
其他好文 时间:
2014-12-05 22:48:46
阅读次数:
139
Vi有三种模式,分别为命令行模式、一般模式和编辑模式。在命令行输入“Vi 文件名”,即可进入Vi。常用命令如下:一.一般模式翻页[Ctrl]+[f]: 向下翻一页,相当于[Page Down]按键。[Ctrl]+:向上翻一页,相当于[Page Up]按键。[Ctrl]+[d]:向下翻半页。[Ctrl...
分类:
其他好文 时间:
2014-12-05 20:58:32
阅读次数:
186
线程组:测试里每个任务都要线程去处理,所有我们后来的任务必须在线程组下面创建。可以在“测试计划->添加->线程组”来建立它,然后在线程组面板里有几个输入栏:线程数、Ramp-Up Period(in seconds)、循环次数,...
分类:
其他好文 时间:
2014-12-05 17:41:11
阅读次数:
177
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-12-05 17:18:34
阅读次数:
121
在控制器中添加一个upload.php文件,代码如下load->view('up'); } public function up(){ if(!empty($_POST['sub'])){ $file=$_FILES['upfile']; ...
分类:
Web程序 时间:
2014-12-05 17:00:13
阅读次数:
167