脚本编程语言通常是解释型的。这类程序的执行,是由解释器读入代码,并将其转换成内部的形式,在执行。请注意,解释器本身是一般的编译型程序。
常用的脚本编程语言有 :awk,Perl,Python,Ruby,Shell。这里的Ruby是日本人研发的。
注释:
linux :
1.rm 删除指定的文件
例:rm /Users/apple/Desktop/QQDock.plist...
分类:
系统相关 时间:
2014-06-20 09:10:29
阅读次数:
371
又是一题快速排序的题目,活用快排求某个位置的数。
这次完善一下自己的基础,把快排代码规范化和增加一个random算法,进一步确保不会出现最坏情况。
思路和前一道题差不多,不过是求第k个数了,这里的第k个数是中序数。
花了点时候整理下代码,果然变得十分工整了。
#include
#include
#include
#include
using namespace std;
const...
分类:
其他好文 时间:
2014-06-15 16:21:17
阅读次数:
214
linux 下如何查看和踢除正在登陆的其它用户Posted on2011/09/01如何在linux下查看当前登录的用户,并且踢掉你认为应该踢掉的用户?请使用who这个命令来查看当前正在登录的用户[root@localhost http]# whoroot tty1 Apr 9 13:17http ...
分类:
系统相关 时间:
2014-06-15 11:32:52
阅读次数:
311
As an introduction this chapter is aimed at readers who are familiar with the Web, HTTP, and Apache, but are not security experts. It is not intended ...
分类:
其他好文 时间:
2014-06-15 06:46:21
阅读次数:
219
7.Occupant Use CasesThe main actor in a
multi-user chat environment is the occupant, who can be said to be located "in"
a multi-user chat room and to ...
分类:
其他好文 时间:
2014-06-11 10:13:56
阅读次数:
261
在linux中有时需要获得登录者的IP,这里有两种方法,先使用who am i 获取登录IP,然后截取字符串:
1、awk截取,sed替换
who am i | awk '{print $5}' | sed 's/(//g' | sed 's/)//g'
2、cut 截取
who am i|cut -d\( -f2|cut -d\) -f1
使用方法,若在脚本中如.bashrc中,可...
分类:
系统相关 时间:
2014-06-10 07:49:49
阅读次数:
320
给n个人的年龄大小关系,问最少分几组使每个组里面人的年龄不能直接或间接的比较。
每个联通块里的人都得分到不同的组,缩点后找最长的链即答案
tarjian缩点+dp找最长路
Grouping
Time Limit: 2 Seconds Memory Limit: 65536 KB
Suppose there are N people in ZJU, who...
分类:
其他好文 时间:
2014-06-08 09:44:30
阅读次数:
321
Contents1 Overview1.1 Who developed HttpOnly?
When?1.2 What is HttpOnly?1.3 Mitigating the Most Common XSS attack using
HttpOnly1.3.1 Using Java to Se...
分类:
其他好文 时间:
2014-06-06 15:04:08
阅读次数:
805
一。介绍public abstract void invalidateDrawable
(Drawable who)Called when the drawable needs to be redrawn. A view at this point
should invalidate itself ...
分类:
其他好文 时间:
2014-06-05 14:13:44
阅读次数:
218
现在才开始着手写点Nodejs 东西.之前都是在ubuntu系统和centos系统下进行编程的,现在来了点兴趣,
搞下windows下的Nodejs 编程开发.主要是为了方便.
Don`t share your happiness with the one who don`t care about you .
I hope you are not the one.
好了,首先我们到官方网站...