zoukankan      html  css  js  c++  java
  • 2012年11月小记

    1、jconsole.exe

    #1 通过jsmxremote参数启动服务

    java -Dfile.encoding=UTF-8 -Djava.rmi.server.hostname=d-id.xxx.com -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5090 -jar net.svr.xxx.jar &

    hostname=ip 域名或ip
    authenticate=false 不需要验证
    ssl=false 不通过ssl连接
    port=5090 使用端口号

    #2 通过ab配合测试,例子:

    post文件:reg1

    ab参数:ab -p reg1 -H 'Authorization: SMS c="46000"' -n 100 -c 2 http://d-id.xxx.com/account/reg.do
    -p 表示需要post的文件
    -H 表示添加的http头
    -n 表示请求数
    -c 表示并发数

    2、ant

    ant+yuicompressor 合并、压缩脚本与样式

    3、安装coffee

    3.1、下载安装包 http://nodejs.org/dist/v0.8.14/x64/node-v0.8.14-x64.msi 进行安装。

    3.2、验证: node -v / npm -v

    3.3、环境变量:NODE_PATH=C:\Users\chenjunbiao\AppData\Roaming\npm\node_modules

    3.4、验证:node
                     -> require('coffee-script')
            npm ls -g
            npm ls

    3.5、安装Sublime Text2  http://www.sublimetext.com/2

    3.6、安装插件:

    3.6.1、按Ctrl+`调出console
    3.6.2、粘贴以下代码到底部命令行并回车:

    import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

    3.6.3、重启Sublime Text 2。
    3.6.4、如果在Perferences->package settings中看到package control这一项,则安装成功。
    3.6.5、按下Ctrl+Shift+P调出命令面板。
    3.6.6、输入install 调出 Install Package 选项并回车,然后在列表中选中要安装的插件。
    3.6.7、安装如下插件:
    CoffeeCompile 控制台输出编译后的JS代码,快捷方式:ctrl+shift+c
    CoffeeScript 语法高亮
    CoffeeScript Function Finder 查换函数
    Jade
    Jade Snippets
    JQuery
    Jquery Snippets pack
    Jquery Mobile Snippets
    JsMinifier
    Hex to HSL Color Converter

  • 相关阅读:
    POJ 1401 Factorial
    POJ 2407 Relatives(欧拉函数)
    POJ 1730 Perfect Pth Powers(唯一分解定理)
    POJ 2262 Goldbach's Conjecture(Eratosthenes筛法)
    POJ 2551 Ones
    POJ 1163 The Triangle
    POJ 3356 AGTC
    POJ 2192 Zipper
    POJ 1080 Human Gene Functions
    POJ 1159 Palindrome(最长公共子序列)
  • 原文地址:https://www.cnblogs.com/chenjunbiao/p/2778767.html
Copyright © 2011-2022 走看看