- 浏览: 2655205 次
- 来自: 杭州
文章分类
- 全部博客 (1188)
- webwork (4)
- 网摘 (18)
- java (103)
- hibernate (1)
- Linux (85)
- 职业发展 (1)
- activeMQ (2)
- netty (14)
- svn (1)
- webx3 (12)
- mysql (81)
- css (1)
- HTML (6)
- apache (3)
- 测试 (2)
- javascript (1)
- 储存 (1)
- jvm (5)
- code (13)
- 多线程 (12)
- Spring (18)
- webxs (2)
- python (119)
- duitang (0)
- mongo (3)
- nosql (4)
- tomcat (4)
- memcached (20)
- 算法 (28)
- django (28)
- shell (1)
- 工作总结 (5)
- solr (42)
- beansdb (6)
- nginx (3)
- 性能 (30)
- 数据推荐 (1)
- maven (8)
- tonado (1)
- uwsgi (5)
- hessian (4)
- ibatis (3)
- Security (2)
- HTPP (1)
- gevent (6)
- 读书笔记 (1)
- Maxent (2)
- mogo (0)
- thread (3)
- 架构 (5)
- NIO (5)
- 正则 (1)
- lucene (5)
- feed (4)
- redis (17)
- TCP (6)
- test (0)
- python,code (1)
- PIL (3)
- guava (2)
- jython (4)
- httpclient (2)
- cache (3)
- signal (1)
- dubbo (7)
- HTTP (4)
- json (3)
- java socket (1)
- io (2)
- socket (22)
- hash (2)
- Cassandra (1)
- 分布式文件系统 (5)
- Dynamo (2)
- gc (8)
- scp (1)
- rsync (1)
- mecached (0)
- mongoDB (29)
- Thrift (1)
- scribe (2)
- 服务化 (3)
- 问题 (83)
- mat (1)
- classloader (2)
- javaBean (1)
- 文档集合 (27)
- 消息队列 (3)
- nginx,文档集合 (1)
- dboss (12)
- libevent (1)
- 读书 (0)
- 数学 (3)
- 流程 (0)
- HBase (34)
- 自动化测试 (1)
- ubuntu (2)
- 并发 (1)
- sping (1)
- 图形 (1)
- freemarker (1)
- jdbc (3)
- dbcp (0)
- sharding (1)
- 性能测试 (1)
- 设计模式 (2)
- unicode (1)
- OceanBase (3)
- jmagick (1)
- gunicorn (1)
- url (1)
- form (1)
- 安全 (2)
- nlp (8)
- libmemcached (1)
- 规则引擎 (1)
- awk (2)
- 服务器 (1)
- snmpd (1)
- btrace (1)
- 代码 (1)
- cygwin (1)
- mahout (3)
- 电子书 (1)
- 机器学习 (5)
- 数据挖掘 (1)
- nltk (6)
- pool (1)
- log4j (2)
- 总结 (11)
- c++ (1)
- java源代码 (1)
- ocr (1)
- 基础算法 (3)
- SA (1)
- 笔记 (1)
- ml (4)
- zokeeper (0)
- jms (1)
- zookeeper (5)
- zkclient (1)
- hadoop (13)
- mq (2)
- git (9)
- 问题,io (1)
- storm (11)
- zk (1)
- 性能优化 (2)
- example (1)
- tmux (1)
- 环境 (2)
- kyro (1)
- 日志系统 (3)
- hdfs (2)
- python_socket (2)
- date (2)
- elasticsearch (1)
- jetty (1)
- 树 (1)
- 汽车 (1)
- mdrill (1)
- 车 (1)
- 日志 (1)
- web (1)
- 编译原理 (1)
- 信息检索 (1)
- 性能,linux (1)
- spam (1)
- 序列化 (1)
- fabric (2)
- guice (1)
- disruptor (1)
- executor (1)
- logback (2)
- 开源 (1)
- 设计 (1)
- 监控 (3)
- english (1)
- 问题记录 (1)
- Bitmap (1)
- 云计算 (1)
- 问题排查 (1)
- highchat (1)
- mac (3)
- docker (1)
- jdk (1)
- 表达式 (1)
- 网络 (1)
- 时间管理 (1)
- 时间序列 (1)
- OLAP (1)
- Big Table (0)
- sql (1)
- kafka (1)
- md5 (1)
- springboot (1)
- spring security (1)
- Spring Boot (3)
- mybatis (1)
- java8 (1)
- 分布式事务 (1)
- 限流 (1)
- Shadowsocks (0)
- 2018 (1)
- 服务治理 (1)
- 设计原则 (1)
- log (0)
- perftools (1)
最新评论
-
siphlina:
课程——基于Python数据分析与机器学习案例实战教程分享网盘 ...
Python机器学习库 -
san_yun:
leibnitz 写道hi,我想知道,无论在92还是94版本, ...
hbase的行锁与多版本并发控制(MVCC) -
leibnitz:
hi,我想知道,无论在92还是94版本,更新时(如Puts)都 ...
hbase的行锁与多版本并发控制(MVCC) -
107x:
不错,谢谢!
Latent Semantic Analysis(LSA/ LSI)算法简介 -
107x:
不错,谢谢!
Python机器学习库
快捷键
Gnome快捷键:
通用快捷键
Alt + F1 类似Windows下的Win键,在GNOME中打开"应用程序"菜单(Applications)
Alt + F2 类似Windows下的Win + R组合键,在GNOME中运行应用程序
Ctrl + Alt + D 类似Windows下的Win + D组合键,显示桌面
Ctrl + Alt + L 锁定桌面并启动屏幕保护程序
Ctrl + Alt + → / ← 在不同工作台间切换
Ctrl + Alt + Shift + → / ← 移动当前窗口到不同工作台
Ubuntu通用快捷键
PrintScreen 全屏抓图
Alt + PrintScreen 当前窗口抓图
Ctrl+ Alt+ F1-F4 进入全屏终端
Ctrl+ Alt+ F7 返回桌面
<--Ctrl+Alt+Shift+F8 未知(终端或模拟终端)
Ctrl+Alt+Shift+Fn 终端N或模拟终端N(n和N为数字1-6) -->
窗口操作(鼠标)
Shift + 中键 拖拽文件图标,移动菜单
Alt + 左键 拖拽移动窗口
Alt + Shift + 左键 拖拽移动窗口并且可以使窗口停留在边缘位置
Alt + 右键 弹出窗口管理器菜单
Alt + 中键 拖拽改变窗口大小
窗口操作(纯键盘)
Alt + ESC 在不同程序窗口间切换
Alt + Tab 为了兼容Windows下的Alt + Tab组合键习惯,提供的第二个"在不同程序窗口间切换"
Alt + F4 关闭窗口
Alt + F5 取消最大化窗口 (恢复窗口原来的大小)
Alt + F7 移动窗口 (注: 在窗口最大化的状态下无效)
Alt + F8 改变窗口大小 (注: 在窗口最大化的状态下无效)
Alt + F9 最小化窗口
Alt + F10 最大化窗口
Alt + Space 打开窗口的控制菜单 (点击窗口左上角图标出现的菜单)
文件浏览器
Ctrl+H 显示隐藏文件(切换键)
Ctrl+T 新建标签
Ctrl+W 关闭标签
Ctrl+Page Up 上一个标签
Ctrl+Page Down 下一个标签
Alt+N 切换到第N个标签(N为数字)
命令简化
用alias简化命令
你是否在为每次antx reactor goals=xxx,xxx而感到这个命令实在是太繁琐,我们可以在主目录下的.bashrc里面添加alias以简化命令
alias antxc='antx reactor goals=clean' alias antxd='antx reactor goals=default ' alias antxe='antx reactor goals=eclipse' alias antxcd='antx reactor goals=clean,default ' alias antxcde='antx reactor goals=clean,default ,eclipse' alias antxp='antx -p RELEASE'
编写shell脚本简化命令
用alias简化命令可以应对简单的情况,但是对于一些复杂的逻辑,编写shell脚本配合alias来简化命令则更加方便,比如:
我们在每次修改完成代码重新部署应用的时候每次都要敲3个命令,关闭服务器,重新编译,开启服务器,而且不同的应用关闭和开启服务器的脚本位于不同的文件
夹下,甚为繁琐,每次用起来特别繁琐。这里我写了一个脚本,用于简化部署命令,只要用一个deploy命令就可以直接部署。
使用方法:将commandTemplate
和functions
放到~/scripts目录下,然后给这两个文件执行权限,最后在~/.bashrc下添加下列alias
alias deploy='sh ~/scripts/commandTemplate deploy' alias startws='sh ~/scripts/commandTemplate startws' alias killws='sh ~/scripts/commandTemplate killws'
这样以后就可以直接在应用目录下打deploy来执行关闭服务器,重新编译,开启服务器,执行startws命令来开启服务器,执行killws命令来关闭服务器了。
简化svn命令
用于简化svn co命令,自动检出到一个以$appName$branchCreateDate命名的文件夹,不过这个脚本的作用似乎不是很大:简化svn命令 。
配置VIM
syntax on #语法高亮 set nu set fileencoding=gb18030 #自动编码转换 set fileencodings=utf-8,gb18030,utf-16,big5 #自动编码转换 set autoindent #自动缩进 set ts=4 #tabs键的空格数设置 autocmd BufRead *.as set filetype=actionscript #as文件语法高亮 autocmd BufRead *.mxml set filetype=mxml #mxml文件语法高亮 autocmd BufRead *.vm set filetype=velocity #vm文件语法高亮
vim自定义语法高亮
到网上随便Google一下下载相应的语法高亮文件并复制到~/.vimrc/syntax文件夹下
在.vimrc添加响应的语法高亮配置.如上面的vm高亮
使用VI模式来对命令历史进行搜索
在使用命令行中,我们知道可以通过向上方向键和向下方向键来查看命令历史,这么介绍一个方法来通过VI的搜索模式来搜索命令历史,要知道搜索有时候要比浏览快很多哦。首先介绍如何开启这个功能,Linux用户可以在.bash_rc中加入
set -o vi
来启用这个功能,要搜索命令的时候只需要和在VI编辑器中一样按/进入搜索,最后按下Enter键就可以把结果给搜索出来了,和VI中一模一样。
Ubuntu Gnome剪切版的诡异问题:
gnome下的剪切板行为比较怪异,比如你复制了firefox的地址,然后关闭firefox,再按ctrl+v却粘贴不了,可以pastie使用这个软件解决这个问题:http://www.omgubuntu.co.uk/2010/10/pastie-handy-clipboard-manager-indicator-applet/
复制内容到剪切版
在Mac有一个很方便的命令pbcopy,在linux可以用xclip -selection clipboard来代替,这个命令可以将管道的内容复制到剪切板
使用vimdiff来代替svndiff
鉴于在linux下没有像乌龟那样强大的图形化svn工具,而svn本身提供的svn diff命令太过简陋,所以可以考虑用更加直观的vimdiff来代替svn diff命令,具体的做法如下:
在.vim/scripts路径下新建一个文件svndiff:
#!/bin/bash
shift 5;/usr/bin/vimdiff -f "$@"
给这个文件执行权限:
chmod +x svndiff
在.bashrc里面加一个alias:
alias svndiff="svn diff --diff-cmd ~/.vim/scripts/svndiff"
下面你就可以svndiff filename来代替svn diff命令了,效果如下:
点图片查看大图
发表评论
-
博客链接收藏
2014-03-22 11:18 568这里记录一些我觉得好的博客地址: http://iamm ... -
要看的好文
2011-11-16 12:48 857一致性 hash 算法( consistent hashing ... -
cronolog
2011-05-25 20:58 3614原作者:陈明 很多 ... -
google 绑定地址
2011-05-20 16:49 105074.125.153.104 code.google.com ... -
JS疑难杂症
2010-01-19 16:42 1045通过a标签提交表单有问题,必须使用button提交表单. & ... -
javascript实现语法高亮
2009-09-09 17:32 0http://hi.baidu.com/erik168/blo ... -
使用JAVA对图片进行效果变换
2008-12-12 22:42 1580原文: http://blog.ccidnet.com/blo ... -
针对Oracle数据库的优化器详细介绍
2008-02-23 12:52 1203http://unixboy.iteye.com/blog/1 ... -
优化数据库大幅度提高Oracle的性能
2008-02-23 12:49 1226http://unixboy.iteye.com/blog/1 ... -
在线HTML编辑器原理
2008-01-10 09:57 2298为什么能实现在线编辑呢? 首先需要ie 的支持,在 ie 5 ... -
Oracle高级查询
2007-06-27 15:31 2577使用Oracle特有的查询语法, 可以达到事半功倍的效果 转 ... -
Domain-Driven Design领域驱动设计(转)
2007-03-21 13:51 2362越来越多人开始使用Java ... -
我的2006 ―― 战斗的一年(转)
2007-03-21 13:49 1458圣诞假期开始了,下午多数美国同事都早早回家了。我差不多是最后一 ... -
透明书评Patterns of Enterprise Application Architecture(PoEAA)
2007-03-21 13:48 1926我有一双定做的休闲鞋,一只鞋上赫然写着“KISS”,另一只则写 ... -
十年学会编程(著者: Peter Norvig)
2007-03-21 13:46 2043为何人人都这么着急? 信步走进任何一家书店,你会看到名为《如 ... -
判断是否是质数
2007-03-21 13:45 1868java 代码 import java.io.* ... -
如何成为一名真正的高级程序员(转)
2007-03-21 13:43 6539那么作为高级程序员,以至于系统分析员,也就是对于一个程序项目的 ... -
如何成为一名真正的程序员(转)
2007-03-21 13:42 1920中国有很多小朋友,他 ...
相关推荐
This standard has been developed by RTCM Special Committee 104 as a more efficient alternative to Version 2 in various documents entitled "RTCM Recommended Standards for Differential Navstar GPS ...
This book is for those with some Objective-C/Cocoa and/or iOS SDK app development experience, but want to be more efficient in writing and testing their code, and people who want to know in-depth ...
Donating books to libraries, schools in rural areas, or organizing book swaps can be more efficient ways to ensure the books serve their purpose. Personally, donating books is the best approach, as ...
The hierarchical implementation of CASM is found to be more efficient and accurate compared to the non-hierarchical approach. Additionally, the choice of color space plays a crucial role in the ...
Inlining a function can generate more efficient object code, as long as the inlined function is small. Feel free to inline accessors and mutators, and other short, performance-critical functions. ...
If you create an index using a large key, fewer entries will fit on a page, so more pages (and possibly more levels) will be needed for the index. On a qualified select, update, or delete, the ...
Box 3: NoWhile cloud computing generally improves resource utilization by enabling dynamic scaling, it's not always guaranteed to be more efficient than on-premises solutions. Efficiency depends on ...
"equally", "however", "likewise", "in the same way", "on the other hand", "otherwise" 用于对比或转折论点:"While both methods have their merits, in comparison, method A proves to be more efficient." ...
This is an alternative to the traditional DOM traversal methods and can be more efficient in certain scenarios. Key functions include: - `document.querySelector(selector)` - `document....
// The latest version of this code should always be available at the // following link: // // http://www.joeo.net/code/StdString.zip (Dec 6, 2003) // // // REMARKS: // This header file declares the ...
Postman helps you be more efficient while working with APIs. Postman is a scratch-your-own-itch project. The need for it arose while one of the developers was creating an API for his project. After ...
the attached utility is a work I ve submitted to the university It shows what a jpeg compression is all about. the function implements the DCT transform, using a matrix ...that might be more efficient.
Postman helps you be more efficient while working with APIs. Postman is a scratch-your-own-itch project. The need for it arose while one of the developers was creating an API for his project. After ...
This way should be more efficient than WebView or Movie classes. Javadoc Setup Gradle (Android Studio) Insert the following dependency to build.gradle file of your project. dependencies { compile '...
本文实例讲述了Python中pow()和math.pow()函数用法。分享给大家供大家参考,具体如下: 1. 内置函数pow() >>> help(pow) ... equivalent to (x**y) % z, but may be more efficient (e.g. for lon
C语言是一种高级语言,对于新手来说,学习C语言可以快速入门, write programs with C language can be more efficient,C语言可以实现高级语言不易实现的功能。 2. 学汇编的优点: 汇编语言可以帮助你从根本上彻底...
The number of processing units integrated into a single die or ...more efficient techniques than traditional processors. For example, an on-chip network may be used to interconnect all cores on a chip
Some protocols can be inefficient due to their design or overhead. Opt for protocols that are optimized for mobile networks, such as: - **Binary Protocols**: Binary protocols like MQTT or Protocol ...