上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页
摘要: 20 Unix Command Line Tricks – Part Ihttp://www.cyberciti.biz/open-source/command-line-hacks/20-unix-command-line-tricks-part-i/Deleting a HUGE fileI h... 阅读全文
posted @ 2015-05-18 15:48 iTech 阅读(2615) 评论(0) 推荐(0)
摘要: 一 简明语法来自: http://maxiang.info/二 markdown 语法:https://github.com/rhiokim/haroopad/blob/develop/Syntax.md三 markdown工具总结:http://appinn.me/d/83四 windows ma... 阅读全文
posted @ 2014-06-21 14:39 iTech 阅读(20171) 评论(0) 推荐(2)
摘要: 简单的proxy之TinyHTTPProxy.py如果是在外企工作的话,可以访问美国的机器,这样就可以在美国的机器上为自己装个proxy,然后本地就可以很容易的使用proxy来上网了。TinyHTTPProxy.py :主页:http://www.voidtrance.net/2010/01/sim... 阅读全文
posted @ 2014-06-21 09:35 iTech 阅读(6515) 评论(0) 推荐(0)
摘要: #http://perlmaven.com/open-and-read-from-files#mode operand create truncate#read yes yes #append >> yes Case 1: Throw an exception if yo... 阅读全文
posted @ 2014-04-28 17:40 iTech 阅读(2382) 评论(1) 推荐(0)
摘要: 原文:http://answers.perforce.com/articles/KB_Article/How-To-Rollback-An-Integration当我们需要将一个branch上的代码修改集成到另一个branch的时候,我们需要执行命令p4 integ + p4 resolve + p4 submit来完成,通称我们称以上的操作为一次integration或merge。一 rollback integration/merge有的时候在我们做了p4 integ 来把代码从一个branch merge到了另一个branch,但是发现有错误,或者这个merge不需要了,这时我们将需要撤 阅读全文
posted @ 2014-04-12 12:44 iTech 阅读(4882) 评论(0) 推荐(0)
摘要: linux 常用命令,基础知识,常用工具。。。 阅读全文
posted @ 2014-04-12 11:52 iTech 阅读(7216) 评论(0) 推荐(2)
摘要: 转自:http://blog.charlee.li/perl-xml-simple/[Perl]用XML::Simple解析XML文件在Perl中解析XML的方法最常见的就是使用XML::DOM和 XML::Simple了。 XML::DOM过于庞大,而且解析结果是一个DOM树,操作也不方便。对于小型且不复杂的XML文件,XML::DOM真是杀鸡用牛刀。 这时就轮到轻便的XML::Simple上场了。XML::Simple如其名,真的很简单。假设XML内容如下: This is a test.那么只需这样写:use XML::Simple;use ... 阅读全文
posted @ 2014-03-19 20:39 iTech 阅读(9988) 评论(0) 推荐(1)
摘要: 转自:http://www.cnblogs.com/sixiweb/archive/2012/11/26/2789458.html安装tomcat7:tomcat7下载主页: http://tomcat.apache.org/download-70.cgi下载:(core: tar.gz)wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gztar -zxvf apache-tomcat-7.0.47.tar.gzmv apache-tomcat-7.0.47 /u 阅读全文
posted @ 2014-01-12 13:20 iTech 阅读(7994) 评论(0) 推荐(0)
摘要: 1) 安装tomcat安装tomcat6: http://www.cnblogs.com/itech/p/3506011.html安装tomcat7: http://www.cnblogs.com/itech/p/3515846.html2) 安装jenkins下载jenkins,wgethttp://mirrors.jenkins-ci.org/war/latest/jenkins.war如果tomcat7以daemon运行,需要先设置jenkins_home:vim /etc/init.d/tomcat7 或者/usr/share/tomcat7/bin/startup.shexport 阅读全文
posted @ 2014-01-05 17:54 iTech 阅读(5414) 评论(0) 推荐(0)
摘要: 在centos中安装tomcat61)通过yum自动安装tomcat和dependencesroot@Centos_AAA ~]# yum install tomcat6[root@Centos_AAA ~]# service tomcat6 start[root@Centos_AAA ~]# chkconfig tomcat6 on[root@Centos_AAA ~]# yum install tomcat6-webapps[root@Centos_AAA webapps]# yum install tomcat6-admin-webapps如果访问http://192.168.0.120 阅读全文
posted @ 2014-01-05 16:35 iTech 阅读(6942) 评论(0) 推荐(0)
摘要: 需要sudo或root权限。翻译自: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions1)确保centos中的java为openjdk。如果java -version输出为java -versionjava version "1.5.0"gij (GNU libgcj) version 4.4.6 20110731 (Red Hat 4.4.6-3)则需要卸载java,安装openjdk版本yum remove java然后安装openjdk如下:y 阅读全文
posted @ 2014-01-04 15:27 iTech 阅读(4683) 评论(0) 推荐(0)
摘要: 在centos中安装jenkins1)安装目录pwd (/home/AAA)2)检查java是否安装[AAA@Centos_AAA jenkins]$ java -versionjava version "1.6.0_22"OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64)OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)3)下载jenkinsmkdir -p jenkins/jenkins_homemkdir -p j 阅读全文
posted @ 2014-01-04 12:32 iTech 阅读(20899) 评论(2) 推荐(0)
摘要: 下载8000首儿歌的python的代码:#-*- coding: UTF-8 -*-from pyquery import PyQuery as pyfrom lxml import etreeimport urllibimport reimport osimport sysimport loggingdef format(filename): tuple=(' ','’','\'') for char in tuple: if (filename.find(char)!=-1): filename=filename.replace(ch 阅读全文
posted @ 2013-12-29 16:15 iTech 阅读(2811) 评论(2) 推荐(1)
摘要: 转自: http://www.tecmint.com/35-practical-examples-of-linux-find-command/35 Practical Examples of Linux Find CommandPart I: Basic Find Commands for Finding Files with NamesPart II: Find Files Based on their PermissionsPart III: Search Files Based On Owners and GroupsPart IV: Find Files and Directories 阅读全文
posted @ 2013-12-14 19:03 iTech 阅读(3345) 评论(0) 推荐(0)
摘要: 安装:yum -y install gcc automake autoconf libtool make安装g++:yum install gcc gcc-c++ 阅读全文
posted @ 2013-09-14 22:18 iTech 阅读(5062) 评论(0) 推荐(0)
摘要: 转自:http://blogread.cn/it/article/5449?f=wb很久以前整理了篇将手机网站做成手机应用的JS框架。时隔一年多,很多新的技术已经出现,下面再来总结下还有哪些框架是适合面向手机设备的开发的。1、jQuery MobilejQuery Mobile 是 jQuery 在手机上和平板设备上的版本。jQuery Mobile 不仅会给主流移动平台带来jQuery核心库,而且会发布一个完整统一的jQuery移动UI框架。支持全球主流的移动平台。jQuery Mobile开发团队说:能开发这个项目,我们非常兴奋。移动Web太需要一个跨浏览器的框架,让开发人员开发出真正的移 阅读全文
posted @ 2013-07-27 21:46 iTech 阅读(39083) 评论(4) 推荐(2)
摘要: 来自:http://blog.csdn.net/tianlesoftware/article/details/6457487Linux是一个多用户,多任务的系统,可以同时运行多个用户的多个程序,就必然会产生很多的进程,而每个进程会有不同的状态。在下文将对进程的R、S、D、T、Z、X六种状态做个说明。PROCESS STATE CODESHere are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display 阅读全文
posted @ 2013-07-23 12:35 iTech 阅读(13334) 评论(0) 推荐(1)
摘要: 一 phonegapcordova:http://cordova.apache.org/phonegap:http://phonegap.comPhoneGap 是Cordova的一个开源的发布版本。phonegap有Adobe维护,可以很容易地使用Adobe的phonegap build service在云端打包多个平台的app。 使用phonegap build service,不需要在本地维护多个平台的SDK环境,只需要简单地将HTML,CSS,Javascript上传到phonegap build的云端,phonegap build自动地生产多个平台的app。phonegap buil 阅读全文
posted @ 2013-07-14 08:57 iTech 阅读(2388) 评论(0) 推荐(0)
摘要: 来自:http://www.bagualu.net/wordpress/?p=1628使用signal,能让你的程序功能更丰富。要在Linux下列出所有的signal, 利用kill -l即可。 下面是我机器上的输出(后面还有到64的没列出来):xuyang@xuyang-desktop:/$ kill -l1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP6) SIGABRT 7) SIGBUS 8 ) SIGFPE 9) SIGKILL 10) SIGUSR111) SIGSEGV 12) SIGUSR2 13) SIGPI... 阅读全文
posted @ 2013-07-09 17:34 iTech 阅读(1990) 评论(0) 推荐(0)
摘要: 浮动的框可以向左或向右移动,直到它的外边缘碰到包含框或另一个浮动框的边框为止。由于浮动框不在文档的普通流中,所以文档的普通流中的块框表现得就像浮动框不存在一样。一 css的浮动CSS提供了元素对象的浮动属性,浮动也是属于定位的一种。float 属性用于设置元素浮动。可能的取值如下:取值说明none默认值,元素不浮动left元素向左浮动right元素向右浮动例子:#div1{ float: right; }如下图所示:从上图可以看出,浮动的框脱离了原本从上至下的文档流而独立出来并且向右浮动,直到碰到右边界为止。框设置浮动属性之后,其原本在文档流中的位置将消失。如果把上图的框1向左浮动,那么它会覆 阅读全文
posted @ 2013-06-28 17:06 iTech 阅读(1480) 评论(0) 推荐(0)
摘要: 一定位的定义在CSS中关于定位的内容是:position:relative | absolute | static | fixedstatic 没有特别的设定,遵循基本的定位规定,不能通过z-index进行层次分级。relative 不脱离文档流,参考自身静态位置通过 top,bottom,left,right 定位,并且可以通过z-index进行层次分级。absolute 脱离文档流,通过 top,bottom,left,right 定位。选取其最近的父级定位元素,当父级 position 为 static 时,absolute元素将以body坐标原点进行定位,可以通过z-index进行层次 阅读全文
posted @ 2013-06-28 16:57 iTech 阅读(2614) 评论(0) 推荐(1)
摘要: Perforce settings such as port, user, and workspace names using the following methods, listed in order of precedence:1.On the command line, using flags2.In a config file, if P4CONFIG is set3.User environment variables (on UNIX or Windows)4.System environment variables (on Windows, system-wide enviro 阅读全文
posted @ 2013-06-26 22:56 iTech 阅读(2145) 评论(0) 推荐(0)
摘要: 1 时间如果是从当前时间到前一个月的这个时候之间的记录总条数:selectcount(1)fromuis_md_stcustomuwherefirsttimebetweenadd_months(sysdate,-1)andsysdate;如果是求当前时间的前面一个月的内的记录总条数:selectcount(1)fromuis_md_stcustomuwhereto_char(firsttime,'mm')=to_char(add_months(sysdate,-1),'mm');2 IN/ANYIN- Equal toany member in the list 阅读全文
posted @ 2013-06-26 22:48 iTech 阅读(895) 评论(0) 推荐(0)
摘要: 1 去除一个数组中的重复元素:使用grep函数代码片段: 代码:my @array = ( 'a', 'b', 'c', 'a', 'd', 1, 2, 5, 1, 5 ); my %count; my @uniq_times = grep { ++$count{ $_ } $max; }知道的这样搞:use List::Util qw(max);my $max_num = max( 0 .. 1000 );知道的他们还这样搞: use List::Util qw(maxstr);my $max_str = max 阅读全文
posted @ 2013-06-26 22:32 iTech 阅读(4786) 评论(0) 推荐(0)
摘要: 转自:http://linuxtoy.org/archives/bash-shortcuts.html生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。 大部分对其他的shell也是可以用的。编辑命令Ctrl + a :移到命令行首Ctrl + e :移到命令行尾Ctrl + f :按字符前移(右向)Ctrl + b :按字符后移(左向)Ctrl + u :从光标处删除至命令行首Ctrl + k :从光标处删除至命令行尾Ctrl + w :从光标处删除至字首Alt + d :从光标处删除至字尾Ctrl + d :删除光标处的字符Ctrl + h :删除光标前的字 阅读全文
posted @ 2013-06-19 15:00 iTech 阅读(2388) 评论(1) 推荐(2)
摘要: linux的网络配置:1)永久修改本地的机器名:/etc/sysconfig/network2) 永久修改对外的机器名:/etc/hostslinux网络配置检测:1)mtr蛮好用的,不仅可以看到能不能ping通,而且还可以看到到达目的说经过的路由路径,从而更清楚地看到是哪里ping不通。使用linux的setup来设置linux系统,好用而且简单的配置工具:感谢来自linuxcast.net的视频:http://www.linuxcast.net/course/25 阅读全文
posted @ 2013-05-16 23:47 iTech 阅读(13145) 评论(0) 推荐(0)
摘要: Team Foundation Service 是微软提供的云端的开发平台。 主页:http://tfs.visualstudio.com。类似于github,与github的区别是:1) github创建private的project是需要是付费用户, Team Foundation Service提供5个用户以内免费创建private的project;2)Team Foundation Service的源码管理server可以是Team Foundation Server或者是git,Team Foundation Service 提供更好的与VisualStudio的集成,但是如果是使用 阅读全文
posted @ 2013-05-08 23:07 iTech 阅读(865) 评论(0) 推荐(1)
摘要: 来自《灵犀志趣》的脚本来完成无密码验证,省事省力。 执行方式 sh nopasswd USER REMOTE_HOST 执行此脚本前,请确认:本机上已有 id_dsa.pub ,若无。 使用命令 ssh-keygen -t dsa 获得。远程机上登录用户家目录下,已经有 .ssh 文件夹,若无创建之。nopasswd: 将本地已经生成的id_dsa.pub拷贝到需要访问的机器home下,然后将id_dsa.pub的内容增加到~/.ssh/authorized_keys中,最后确保权限设置正确。#!/bin/shscp ~/.ssh/id_dsa.pub $1@$2:~/ssh $1@$2 &q 阅读全文
posted @ 2013-04-29 08:44 iTech 阅读(640) 评论(0) 推荐(0)
摘要: 转自: http://www.cnblogs.com/oec2003/archive/2013/04/13/3017731.html原作者:oec2003(水杯)出处: http://oec2003.cnblogs.com/本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则 保留追究法律责任的权利。一 jQuery简介简介jQuery是一个兼容多浏览器的javascript库,核心理念是write less,do more(写的更少,做的更多)。 jQuery在2006年1月由美国人JohnResig在纽约的barcamp发布,吸引了. 阅读全文
posted @ 2013-04-13 19:14 iTech 阅读(1084) 评论(0) 推荐(1)
摘要: p4 view mapping及其特殊字符p4中三种view:client views, branch views, and label views.注意:1)如果view中对同一个文件有多次mapping,则后面的覆盖前面的mapping。2)以-开始的mapping,用来排除文件的mapping,一般用来排除一些目录下的某些子目录或文件。3)在client views中可以在mapping的最前面有+,表示叠加的效果,不同于一般的覆盖。文件或路径中的空格://depot/v1/... "//ws/version one/..."“//depot/document 2/. 阅读全文
posted @ 2013-04-09 20:17 iTech 阅读(1972) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页