08 2011 档案
摘要:Well I wonder could it be 我想知道,有没有这种可能 when I was dreaming about you baby you were dreaming of me 当我想你的时候亲爱的你也正在想念着我 call me crazy 有人说我疯狂 call me blin
阅读全文
摘要:http://v.youku.com/v_playlist/f2385840o1p1.html
阅读全文
摘要:>>> logfile=open('/tmp/mylog.txt','a')>>> print >> logfile, 'fatail error: invalid arguments'>>> logfile.close()>>>user=raw_input("please input your name:")Numbers:int long bool (True,False)floatcomplex (6.23+1.5j)tuple1.元组,
阅读全文
摘要:在中文 windows平台下:#coding:utf-8str = "hello 我是中国人,我爱中国"print str #乱码print str.decode('utf-8').encode('gbk') 文件编码为 utf-8
阅读全文
摘要:python eclipse开发插件:http://pydev.org//download.htmldownload from sf.net: http://sourceforge.net/projects/pydev/files/pydev manual:http://pydev.org//manual_101_root.htmlother editors:http://wiki.python.org/moin/PythonEditorsURLs for PyDev as Eclipse pluginUrls to use when updating with the Eclipse upd
阅读全文
摘要:under Ubuntu:sudo apt-get install chmsee
阅读全文
摘要:maven 搜索网址:http://search.maven.org/#search%7Cga%7C1%7C<mirror><id>ibiblio.org</id><name>ibiblio Mirror ofhttp://repo1.maven.org/maven2/</name><url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url><mirrorOf>central</mirrorOf><!-- United State
阅读全文
摘要:http://hi.baidu.com/lypwu/blog/item/988923f395088bc00b46e032.html在现行的许多网络应用中,有时一台服务器往往不能满足客户端的要求,此时只能通过增加服务器来解决问题。 那么,有没有一个办法或者技术来解决此类问题呢?使用Windows 2000或Windows Server 2003中的网络负载平衡群集就可以(本文将介绍Windows Server 2003中的网络负载平衡技术的实现方法)。 一、网络负载平衡的优点 1.网络负载平衡允许你将传入的请求传播到最多达32台的服务器上,即可以使用最多32台服务器共同分担对外的网络请求服务。网
阅读全文
摘要:在使用Git的过程中,有时可能会有一些误操作比如:执行checkout -f 或 reset -hard 或 branch -d删除一个分支结果造成本地(远程)的分支或某些commit丢失这时,我们可以通过reflog来进行恢复,前提是丢失的分支或commit信息没有被git gc清除一般情况下,gc对那些无用的object会保留很长时间后才清除的reflog是git提供的一个内部工具,用于记录对git仓库进行的各种操作可以使用git reflog show或git log -g命令来看到所有的操作日志恢复的过程很简单:1. 通过git log -g命令来找到我们需要恢复的信息对应的commi
阅读全文
摘要:最简单的方法在项目根目录与.git目录同一位置创建一个文件: .gitignoretouch .gitignorevi .gitignore:wq注:如果要忽略的文件已被git管理,需要先移除,命令如下:e.g.:git rm -r --cached WebRoot/WEB-INF/classes/**/*-r:递归git commit然后.gitignore中的忽略,起作用以下参考//-------------------from:http://gitready.com/beginner/2009/01/19/ignoring-files.htmlThe easiest and simple
阅读全文
摘要:emacs download site and document online:http://www.gnu.org/software/emacs/#ObtainingGNU Emacs Lisp Reference:http://www.gnu.org/software/emacs/manual/html_node/elisp/index.htmlDirect down load emacs:http://ftp.gnu.org/pub/gnu/emacs/
阅读全文
摘要:windows客户程序访问Linux:1.PuTTY: 免费软件2.SecureCRT_5.1.3 :收费软件远程管理软件:vcn-4.0-x86_win32.exe 免费Linux 与 Windows文件传输工具:SSH.Secure.Shell.Client_3.2.9.exe (免费)---------------------Linux常用命令ls -a all-l longd rwx r-x r-x文件类型 d 目录directory- 二进制文件l 软链接文件linkr: read; w: write; x:execute1.所有者u(谁创建;也可以转让)userowner2.所属组
阅读全文
摘要:connection.BeginTransaction()此方法的事务,不能嵌套。Error:Message "SqlConnection 不支持并行事务。" string可以使用TransactionScope:需要使用windows的Distributed Transaction Coordinator (分布式事务协调器)服务。//Main.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;usi
阅读全文
摘要:select row_number () over (order by rownum desc) as rn,rownum,aaa from aaaa/
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"> <mx:Script> <![CDATA[ import mx.utils.StringUtil; import
阅读全文
摘要:from:http://isoredirect.centos.org/centos/6/isos/i386/中国科学技术大学开源软件镜像:http://centos.ustc.edu.cn/centos/6/isos/i386/163:http://mirrors.163.com/centos/6.0/isos/i386/
阅读全文
摘要:SELECT E.EMPLOYEE_ID, E.LAST_NAME, D.DEPARTMENT_ID, D.DEPARTMENT_NAME FROM HR.EMPLOYEES E LEFT OUTER JOIN HR.DEPARTMENTS D ON E.DEPARTMENT_ID = D.DEPARTMENT_ID SELECT E.EMPLOYEE_ID, E.LAST_NAME, D.DEPARTMENT_ID, D.DEPARTMENT_NAME FROM HR.EMPLOYEES E ,HR.DEPARTMENTS D WHERE E.DEPARTMENT_ID= D.DEPARTM
阅读全文
摘要:http://stackoverflow.com/questions/1408729/flex-datagrid-with-combobox-itemrenderer<?xml version="1.0" encoding="utf-8"?><mx:ComboBox xmlns:mx="http://www.adobe.com/2006/mxml" dataChange="setSelected()" change="onSelectionChange(event)" focu
阅读全文
摘要:http://code.google.com/p/flexlib/wiki/ComponentListFlexlibYou should take a look at the SuperTabNavigator component from theFlexLibproject:SuperTabNavigator exampleSuperTabNavigator documentationFlexLib Component listIf you don't want all of the tabs to have close buttons (I understand from the
阅读全文
摘要:进入vim的命令: vim filename :打开或新建文件,并将光标置于第一行首 vim +n filename :打开文件,并将光标置于第n行首 vim + filename :打开文件,并将光标置于最后一行首 vim +/pattern filename:打开文件,并将光标置于第一个与pat
阅读全文
摘要:1.set up--------------------------------------------Git-1.7.4-preview20110204.exe :http://git-scm.com/downloadmsysgithttp://code.google.com/p/msysgit/downloads/list------------------------------------------Tortoisegit-1.6.5.0-32bit.msihttp://code.google.com/p/tortoisegit/2.合并两个分支 合并两个分支:git merge 既然
阅读全文