摘要: python GIL问题的解释(global interpreter lock)早期cpython(python最主要的解释器)为了实现多线程的功能,提高CPU利用率,暴力无脑使用了GIL机制(全局锁)来解决线程之间数据同步问题。也就是因为历史问题埋了大坑。 In CPython, the glob 阅读全文
posted @ 2019-02-13 20:18 dijkstra-c 阅读(808) 评论(0) 推荐(0) 编辑
摘要: ubuntu搭建mysql 参考http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html1. sudo apt-get install mysql-server\ 需要制定root密码password吧2. vi /etc/mys... 阅读全文
posted @ 2015-04-18 17:14 dijkstra-c 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 1. 装svn sudo apt-get install subversion2. 添加用户和用户组,并把用户归到用户组中 sudo adduser svnuser sudo addgroup subversion sudo addgroup svnuser subversio... 阅读全文
posted @ 2015-04-18 17:14 dijkstra-c 阅读(111) 评论(0) 推荐(0) 编辑
摘要: tail 常用 tail -n 50 abc.log & 后台 >定向到文件,覆盖 >>追加tar命令 tar -zcvf test.tar.gz /ivan_oracle/test/ (-zcvf: z用gzip压缩,c创建目标文件,v压缩过程中显示文件,f签名符:必须在最后)mount... 阅读全文
posted @ 2014-10-05 19:57 dijkstra-c 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 配置数据库的过程中发现windows连接到linux数据库服务器上有问题,检查了一下,发现linux还未开放1521端口配置一下,很easy参考了:http://www.cnblogs.com/kerrycode/archive/2012/12/14/2818421.html1.有人直接servic... 阅读全文
posted @ 2014-10-05 19:19 dijkstra-c 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 1.静态配置 oracle早就支持动态的listener了,但是在使用OEM(Oracle Enterprise Manager)等高级货时还是需要用到静态配置 工具:netca+netmgr(或者直接修改/network/admin下面的listener.ora,假如这个文件木有,可以开netca... 阅读全文
posted @ 2014-10-05 19:14 dijkstra-c 阅读(436) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文
posted @ 2014-09-11 20:49 dijkstra-c 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i... 阅读全文
posted @ 2014-09-11 20:00 dijkstra-c 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l... 阅读全文
posted @ 2014-09-05 11:19 dijkstra-c 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,... 阅读全文
posted @ 2014-09-05 10:36 dijkstra-c 阅读(178) 评论(0) 推荐(0) 编辑