【转载】计然书-范蠡
《计然书》
1 / 10
计 然(?~?)〈计然传〉原文: 计然者,蔡丘濮上人,姓辛氏,名文子。其先,晋国亡公子也,(《意林》引脱「亡」字,据《史记》集解补,《御览》引作「晋三公子」)博学无所不通。(《意林》引无此句,据《御览》补。)为人有内无外,形状似不及人,少而明,学阴阳,见微而知着。(案〈文选.阮元瑜为曹公作书与孙权〉注引「见微知着」四字)其行浩浩,其志泛泛(洪迈《容斋续笔》作「沉沉...
【hackerrank】-Day 16: Exceptions - String to Integer
尴尬,为什么我的解法不过?报错:Error reading result file.You should use exception handling concepts.
看着解法没问题啊?啥子情况?
30-exceptions-string-to-integer
Objective
Today, we’re getting started with Exceptions b...
【hackerrank】-Day 17: More Exceptions
30-more-exceptions
Objective
Yesterday’s challenge taught you to manage exceptional situations by using try and catch blocks. In today’s challenge, you’re going to practice throwing and propagating...
【hackerrank】-Day 15: Linked List
30-linked-list
Objective
Today we’re working with Linked Lists. Check out the Tutorial tab for learning materials and an instructional video!
A Node class is provided for you in the editor. A Node...
【github】-MM-Wiki初体验
MM-Wiki–github源码
安装
参考上面的github源码安装说明即可
[root@djt_37_152 install]# pwd
/search/autotest/wj/mm_wiki/install
[root@djt_37_152 install]# ./install
…..(控制台打印信息–略)………..
浏览器打开安装
http:...
【转载】Python3 中字符串拼接的 N 种方法
来源:木头释然
原文链接
Python拼接字符串一般有以下几种方法:
1、直接通过(+)操作符拼接
s = ‘Hello’+’ ‘+’World’+’!’
print(s)
输出结果:Hello World!
使用这种方式进行字符串连接的操作效率低下,因为python中使用 + 拼接两个字符串时会生成一个新的字符串,生成新的字符串就需要重新申请内存,当拼接字符串较多时自然...
【hackerrank】-Day 18: Queues and Stacks
30-queues-stacks
Welcome to Day 18! Today we’re learning about Stacks and Queues. Check out the Tutorial tab for learning materials and an instructional video!
A palindrome is a word, phrase, number...
【hackerrank】-Day 19: Interfaces
30-interfaces
Objective
Today, we’re learning about Interfaces. Check out the Tutorial tab for learning materials and an instructional video!
Task
The AdvancedArithmetic interface and the method...
【hackerrank】-Day 20: Sorting
30-sorting
Objective
Today, we’re discussing a simple sorting algorithm called Bubble Sort. Check out the Tutorial tab for learning materials and an instructional video!
Consider the following ver...
【转载】-搜狗商业广告流式计算实践
目录
当“广告平台”遇到“流式计算”
架构实践
思考与展望
当“广告平台”遇到“流式计算”
商业平台大数据的挑战
1
商业广告平台流式计算场景
2
架构实践
流式计算处理流程
3
商业平台流式计算的特点
4
流式计算架构图
5
采集系统选型
6
采集系统实践
7
序列号生成服务
8
序列号生成服务(Contd)
8-1
数据接入系统选型
9
接入...
【面试系列】-腾讯omg-测试开发-面试题---not finished!
1、mysql数据库复合索引是(a,b,c),按照abc顺序建立复合索引idx_a_b_c,以下查询语句中使用到索引idx_a_b_c的有哪些?
A、(a) B、(b) C、(b,c) D、(a,b) E、(a,b,c)
解答:
2、crontab定时任务:每周1到周5,下午1点和8点定时执行,怎么写?
解答:0 13,20 * * 1,2,...
【hackerrank】-Day 29: Bitwise AND--not finished!
30-bitwise-and
Objective
Welcome to the last day! Today, we’re discussing bitwise operations. Check out the Tutorial tab for learning materials and an instructional video!
Task
Given set . Find ...
原本可以运行的cuda,因为重装之后,莫名其妙不可用了
运行时报错现象:出core, 并且报错std::bad_alloc: no CUDA-capable device is detected这说明是丢卡了,找不到gpu了解决办法:重启服务器
Linux系统下如何做到SSH免密码登录
A为本地主机(即用于控制其他主机的机器) ;
B为远程主机(即被控制的机器Server), 假如ip为172.24.253.2 ;
A和B的系统都是Linux
在A上的命令:
# ssh-keygen -t rsa (连续三次回车,即在本地生成了公钥和私钥,不设置密码)
# ssh [email protected] "mkdir .ssh;chmod 0700 .ssh" (需要...
在find命令后面加上命令管道的写法
find . -name "*.sys" -exec sh -c 'tail -n 6 {} | head -n 1 | tr -s [:space:]' \;
hadoop一运行就报错
不管hadoop运行什么命令,一律报错:Error occurred during initialization of VMCould not reserve enough space for object heap原因:服务器的虚拟内存被耗尽了,将占用虚拟内存的程序kill掉即可...
增加某个用户后,如何给予其root权限
1.先切换至root用户
2.敲命令:visudo
3.找到“root ALL=(ALL) ALL”这行文本
4.复制步骤3中的这条文本,并把root改为你想添加root权限的用户名即可
...
今日推荐
周排行