`
mingren135
  • 浏览: 69111 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

Linux命令-awk/sort/uniq

 
AWK的功能是什么?与sed和grep很相似,awk是一种样式扫描与处理工具。但其功能却大大强于sed和grep。awk提供了极其强大的功能:它几乎可以完成grep和sed所能完成的全部工作,同时,它还可以可以进行样式装入、流控制、数学运算符、进程控制语句甚至于内置的变量和函数。它具备了一个完整的语言所应具有的几乎所有精美特性。实际上,awk的确拥有自己的语言:awk程序设计语言,awk的三位创建者已将它正式定义为:样式扫描和处理语言。   语法: awk [-F re] [parameter...] ['prog'] [-f progfile] [in_file...] -F re ...

nginx学习

    博客分类:
  • web
一、网站、下载、文档、模块 http://nginx.com/ http://nginx.org/en/download.html http://wiki.nginx.org/3rdPartyModules https://github.com/search?q=nginx&type=&ref=simplesearch ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ http://nginx.org/cn/docs/   二、特性 1)HTTP服务器 2)HTTP反向代理服务器 3)MAIL反 ...
  我们平时做用户登录表单提交,用户名密码都是明文直接POST到后端,这样很容易被别人监听到(如一些收手机端端的流量监测app)。注:包括使用MD5等哈希函数处理后的数据,这里也算做明文(现在MD5爆破网站已经很多了~)。 对安全性要求较高的网站,比如银行和大型企业等都会使用HTTPS对其进行加密通讯。但是由于效率原因,使用HTTPS的代价是及其昂贵的,对于访问量稍大的网站就会造成严重的性能瓶颈。 解决方法一般只能采用专门的SSL硬件加速设备如F5的BIGIP等。所以很多网站选择了模拟SSL的做法,使用RSA来对密码等安全信息进行公钥加密,服务端用私钥解密。通常是对密码进行加密。   ...
1、Java反编译工具:JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.JD-GUI is free for non-commercial use. This means that JD-GUI shall not be included or embedd ...
一、系统稳定性(应用分组) 二、高并发(异步) 三、大数据   ------------------------------------------ 一、系统稳定性 1)按业务拆分系统:当前我们系统往往放了若干块的功能模块,这样会有2个问题,其一,一块业务代码变更了,整个系统都要重新发布,如果代码变更出现线上问题,就有可能影响到系统中的其它功能;其二,各个功能模块的变化频率也不一致,有些业务长期不变,或者变化周期比较长,更适合单独设立一个系统。 2)按服务对象:按业务拆分后,同一个系统业务下,即有前端访问的请求,又有后台调用,最好能将着2部分的请求分离开,及时一方有问题,另一方 ...

JS-类型转换

Type Conversions:JS in very flexible about the types of values it requres.Table below summarizes how values convert from one type to another in JS.Bold entries in the table highlight conversions that you may find surprising.Empty cells indicates that no conversions is necessary and none is performe ...

JS-特殊类型

null and undefined:null is a language keyword that evaluates to a special value that is usually used to indicates the absense of a value.null can be thought of as a special object value that indicates 'no object'. console.log(typeof null);//object console.log(typeof undefined);//undefined  undefi ...

JS-Boolean

  Boolean Values The following values convert to and therefore work like false: All other values,including all objects(and arrays) convert to and work like true. You can test explicitly to see if a is non-null with an if statement like this if(a!==null)...  and you can test to see if a is falsy ...
   top查看进程: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 14686 admin 25 0 5837m 4.7g 28m S 3.0 62.6 430:53.66 java 1423 hubble 15 0 481m 53m 3492 S 1.0 0.7 70:59.63 python  RES:进程实际使用的内存,如果这个值很大则表示使用了大量实际内存 VIRT:The total amount of virtual memory used ...

JS-字符串

String Literals:enclose the characters of the string within a matched pair of single of double quotes. ECMAScript3,string literals must be written on a single line.In ECMAScript 5,however you can break a string literal across multiple lines by ending each line with a backslash.Neither the backslas ...

JS-日期类型

Dates and Times: Core JS includes a Date() constructor for creating objects that represent dates and times.These Date objects have methods that provide an API for simple date compulations.   

JS-数字类型

  Integer Literals:base-10 integer literals、base-16 integer literals、base-8 integer literals  var a = 23; var b = 0x1A;//hexadecimal var c = 012;//octal console.log('a=' + a + ',b=' + b + ',c=' +c ); //a=10,b=26,c=10  Since some implementations support octal literals and some don't , y ...
1)uploadify插件:http://www.uploadify.com/demos/ 2)ajaxfileupload:http://www.phpletter.com/Demo/AjaxFileUpload-Demo/
头像截图在sns的网站用到的非常多,一般分为以下几步来实现这样的功能 1)上传图片,保存到图片服务器(tfs) 2)前台js计算截图区域的坐标、宽、高,将数据提交后台 3)后台java按坐标处理原始图片,再将截取后的图片保存到图片服务器(tfs)    先看看Jcrop截图的效果,它是jQuery的一个插件   参考http://deepliquid.com/projects/Jcrop/demos.php?demo=handler,代码如下: var showCoords = function(c){ $('#x').val(c.x); ...
  背景:服务器跑Python脚本收集交易日志,发送到后台分析并存储到cassanda数据库 现象:某一不确定时间,脚本会假死(进程并没有停),实际已经不干活了,也不打日志,并且所有服务器的脚本都几乎同一时间假死,怎会如此一致呢?   分析: 一、检查脚本 1)发现脚本日志总是在出现若干次的Connection异常后,进程会假死 异常1:<urlopen error [Errno 104] Connection reset by peer> 说明:常见的有几种情况,1、服务器的并发连接数超过了最大值,服务器会将该连接关闭 ;2、客户关闭请求,而服务器还在给客户端发 ...
Global site tag (gtag.js) - Google Analytics