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
原文:http://blog.csdn.net/tjvictor/article/details/4360030在SQL Server
中插入一条数据使用Insert语句,但是如果想要批量插入一堆数据的话,循环使用Insert不仅效率低,而且会导致SQL一系统性能问题。下面介绍SQL
Server支...
分类:
数据库 时间:
2014-05-31 17:06:40
阅读次数:
279
Mybatis自动生成代码,需要用到mybatis
Generator,详见http://mybatis.github.io/generator/configreference/generatedKey.htmlinsert语句如果要返回自动生成的key值,一般会在insert里加入useGener...
分类:
其他好文 时间:
2014-05-30 21:44:12
阅读次数:
593
Given a stringsand a dictionary of wordsdict,
add spaces insto construct a sentence where each word is a valid dictionary
word.Return all such possibl...
分类:
其他好文 时间:
2014-05-30 16:28:34
阅读次数:
199
Given a strings, partitionssuch that every
substring of the partition is a palindrome.Return all possible palindrome
partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-05-30 16:04:06
阅读次数:
237
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
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