suchmod a+w /etc/sudoersvim /etc/sudoers[找到root
ALL=(ALL) ALL这行]复制出新的一行,并且将root改为daniel(当前用户名)chmod 0440 /etc/sudoersexit
分类:
其他好文 时间:
2014-06-03 08:50:33
阅读次数:
220
OpenGLES渲染OpenGLES使用GPU渲染图片,不占用CPU,但其使用还是挺复杂的.先用OpenGLES显示一张图片:////
ShowViewController.m// OpenGLES//// Copyright (c) 2014年 Y.X. All rights
reserve...
分类:
其他好文 时间:
2014-06-03 07:59:32
阅读次数:
387
注意添加权限: 代码如下://更新短信private void
UpdateSMS(){/*update支持的协议有很多:SMS_RAW_MESSAGE SMS_STATUS_PENDING SMS_ALL
SMS_FAILED SMS_QUEUED SM...
分类:
移动开发 时间:
2014-06-03 07:26:15
阅读次数:
371
Terrible SetsTime Limit:1000MSMemory
Limit:30000KTotal Submissions:3017Accepted:1561DescriptionLet N be the set of
all natural numbers {0 , 1 , 2 , . ...
分类:
其他好文 时间:
2014-05-31 22:01:28
阅读次数:
325
DescriptionStandard web browsers contain
features to move backward and forward among the pages recently visited. One way
to implement these features i...
分类:
Web程序 时间:
2014-05-31 21:16:40
阅读次数:
279
(Sorry for that click-bait heading. Couldn’t
resist ;-) )We’re on a mission. To teach you SQL. But mostly, we want to teach
you how to appreciate SQL....
分类:
数据库 时间:
2014-05-31 17:00:45
阅读次数:
1397
Linux打包命令tar -zcvf /home/xahot.tar.gz /xahottar
-zcvf 打包后生成的文件名全路径 要打包的目录例子:把/xahot文件夹打包后生成一个/home/xahot.tar.gz的文件。# tar -xf
all.tar这条命令是解出all.tar包中所有...
分类:
系统相关 时间:
2014-05-31 15:50:58
阅读次数:
439
Given a binary tree and a sum, determine if the
tree has a root-to-leaf path such that adding up all the values along the path
equals the given sum.Fo...
分类:
其他好文 时间:
2014-05-30 15:18:35
阅读次数:
246
Given an array of integers, every element
appearsthreetimes except for one. Find that single one.Note:Your algorithm
should have a linear runtime comp...
分类:
其他好文 时间:
2014-05-30 15:15:53
阅读次数:
225
DescriptionAn ascending sorted sequence of
distinct values is one in which some form of a less-than operator is used to
order the elements from smalle...
分类:
其他好文 时间:
2014-05-30 14:31:10
阅读次数:
297