码迷,mamicode.com
首页 >  
搜索关键字:take skip    ( 2689个结果
解决关于archlinux升级至3.16.1,Xorg桌面环境无法进入的问题
【现象】有终端输入用户名,密码后,桌面环境启动失败。 【报错】log文件中显示: (EE) Fatal server error: (EE) xf86OpenConsole: VT_ACTIVATE failed: Operation not permitted 【原因】由xorg升级引起,具体描述如下: FS#41257 - [xorg-server] take ad...
分类:系统相关   时间:2014-08-19 11:03:44    阅读次数:249
Optional arguments
We have seen built-in functions that take a variable number of arguments. For example range can take one, two or three arguments.It is possible to wri...
分类:其他好文   时间:2014-08-17 16:52:32    阅读次数:272
ArrayBlockingQueue take()和poll()等方法的小区别
最近工作中看见一个同事的代码是关于ArrayBlockingQueue方面的使用,然后引出take()和poll()的小小的区别,当然他实现方式是没有错.但是由于选择不当有性能的开销,所以我想这里整理一下关于ArrayBlockingQueue 的理解,纯技术交流.有不正确的地方请谅解.下面对源码做一个导读.首先 ArrayBlockingQueue是一个基于数组、先进先出、线程安全的集合类...
分类:其他好文   时间:2014-08-17 13:08:12    阅读次数:770
UVA - 1482 Playing With Stones
Description You and your friend are playing a game in which you and your friend take turns removing stones from piles. Initially there are N piles with a1, a2, a3,..., aN number of stones. On eac...
分类:其他好文   时间:2014-08-17 11:46:42    阅读次数:172
一千行MySQL学习笔记
/* 启动MySQL */net start mysql/* 连接与断开服务器 */mysql -h 地址 -P 端口 -u 用户名 -p 密码/* 跳过权限验证登录MySQL */mysqld --skip-grant-tables-- 修改root密码密码加密函数password()update...
分类:数据库   时间:2014-08-16 22:17:51    阅读次数:254
springMvc + Maven 项目提示 hessian 依赖包 无法下载;
首先从https://github.com/alibaba/dubbo/archive/master.zip下载最新的dubbo源码包到本地某个目录, 解压出来:cmd进入该目录:执行:mvn clean install –Dmaven.test.skip下载所需的jar包,这时也会下载本地存放仓库...
分类:编程语言   时间:2014-08-15 17:45:19    阅读次数:441
[POJ 2762]Going from u to v or from v to u? (强连通分量+拓扑排序)
Description In order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has n rooms, and one-way corridors connecting some rooms. Each time, Wind choose two rooms x and y, an...
分类:其他好文   时间:2014-08-15 00:06:46    阅读次数:331
laraval框架之数据库不可不吐槽的坑
最近做的项目一直在用laraval框架,有些地方确实很方便,但是有些方面实在是太坑了,就比如这次在数据库里,官方文档写的是Take note thatemailis not a required option, it is merely used for example. You should us...
分类:数据库   时间:2014-08-14 20:28:39    阅读次数:226
Number Game poj1143
DescriptionChristine and Matt are playing an exciting game they just invented: the Number Game. The rules of this game are as follows.The players take...
分类:其他好文   时间:2014-08-14 20:00:10    阅读次数:244
【DataStructure】Charming usage of Set in the java
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of  methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:编程语言   时间:2014-08-14 01:30:17    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!