上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页
摘要: perforce blog: http://blog.perforce.com/blogPerforce Technical Product Overviewhttp://www.perforce.com/perforce/bullet.html perforce knowledge basehttp://kb.perforce.com/Perforce Technical Documenthttp://www.perforce.com/perforce/technical.htmlPerforce Media Libraryhttp://www.perforce.com/perforce/m 阅读全文
posted @ 2011-06-30 10:44 iTech 阅读(851) 评论(0) 推荐(0)
摘要: RPM Error: Failed dependencies1) ErrorInstalling FDO Provider for Rastererror: Failed dependencies: libpng.so is needed by fdo-raster-3.7.0.806-1.i3862) install libpng # Install libpng by yum $yum install libpng # check libpng is installed $rpm -qa | grep libpng libpng-1.2.10-7.1.el5_5.3 $rpm -q lib 阅读全文
posted @ 2011-06-29 10:48 iTech 阅读(7189) 评论(0) 推荐(0)
摘要: BuildForge的帮助:http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc IBM Rational Build Forge: Build and release process managementImprove your build process with IBM Rational Build Forge, Part 1: Create a continuous build and integration environmen 阅读全文
posted @ 2011-06-23 12:49 iTech 阅读(1135) 评论(0) 推荐(0)
摘要: http://rimuhosting.com/howto/profile.jspLinux ShellEnvironment Setup Using /etc/profile.d/*When a user logs in, environment variables are set from various places. That includes:/etc/profile (for all users).Then all the files in the /etc/profile.d directory.Then ~/.bash_profile.Then ~/.bashrc./etc/pr 阅读全文
posted @ 2011-06-17 14:15 iTech 阅读(2229) 评论(0) 推荐(1)
摘要: http://rimuhosting.com/howto/mysqlbackup.jspAutomated MySQL Database BackupVersion 1Want to backup your MySQL databases to another machine on a nightly basis? Then create a /etc/cron.daily/mysqlbackup.sh job like this:mysqldump--compress-uroot-p$pw-h$currenthost--add-drop-table--extended-insert--quo 阅读全文
posted @ 2011-06-17 14:15 iTech 阅读(1209) 评论(0) 推荐(0)
摘要: Linux内存的free的真实含义:第一行的free表示剩余的物理内存。第二行的free表示总的剩余内存(物理内存+cached+buffer),因为cached和buffers是系统自动根据需要回收的,所以这一行的free才是真正的系统还可以使用的内存总量。Troubleshooting Memory Usagehttp://rimuhosting.com/howto/memory.jspAll about Linux swap spacehttp://www.linux.com/news/software/applications/8208-all-about-linux-swap-spa 阅读全文
posted @ 2011-06-17 13:19 iTech 阅读(1074) 评论(1) 推荐(0)
摘要: 超大文件的copy一 几G或几十G的文件的copy例如需要拷贝exe,iso到远程的机器上,我们可以使用如下的方法: 多线程copy:1) split + copy + cat [split and cat are Linux command, you can get them from UnxUtils]2) zip(into many parts) + copy + unzip [or can use 7z instead of zip]增量copy:3) rsync [incrementally transfer]二 几百G上至上T的文件的copy例如数据库文件等得备份,需要对copy工 阅读全文
posted @ 2011-06-10 20:01 iTech 阅读(2126) 评论(0) 推荐(0)
摘要: 转自: http://www.linuxany.com/archives/1563.htmlPython 动态加载模块的3种方法 1,使用系统函数__import_() stringmodule = __import__('string') 2,使用imp 模块 import impstringmodule = imp.load_module('string',*imp.find_module('string')) 3,使用exec import_string = "import string as stringmodule" 阅读全文
posted @ 2011-06-10 18:56 iTech 阅读(3170) 评论(0) 推荐(0)
摘要: 一 uptimeuptime命令用于查看服务器运行了多长时间以及有多少个用户登录,快速获知服务器的负荷情况。uptime的输出包含一项内容是load average,显示了最近1,5,15分钟的负荷情况。它的值代表等待CPU处理的进程数,如果CPU没有时间处理这些进程,load average值会升高;反之则会降低。load average的最佳值是1,说明每个进程都可以马上处理并且没有CPU cycles被丢失。对于单CPU的机器,1或者2是可以接受的值;而在一个多CPU的系统中这个值应除以物理CPU的个数,假设CPU个数为4,而load average为8或者10,那结果也是在2多点而已。 阅读全文
posted @ 2011-06-08 14:17 iTech 阅读(10032) 评论(0) 推荐(2)
摘要: (CHS)Inversion_of_Control_Containers_and_the_Dependency_Injection_pattern 阅读全文
posted @ 2011-06-06 10:09 iTech 阅读(733) 评论(0) 推荐(0)
摘要: 原文: http://ramanisandeep.wordpress.com/2010/12/09/linq-to-sql-vs-ado-net-entity-framework/LINQ to SQL和ADO.NET Entity Framework之间的抉择我相信很多的ASP.NET的新手经常会搞不清楚在LINQ to SQL和ADO.NET Entity Framework之间到底应该选择哪个?以下是来自Michael Pizzo的答案供大家参考:LINQ to SQL 和 Entity Framwork 有非常多的相同的地方,但是他们其实有各自的特点可以适用于不同的场合:1) LINQ 阅读全文
posted @ 2011-06-05 10:31 iTech 阅读(3528) 评论(2) 推荐(0)
摘要: 翻译自: http://blog.gadodia.net/choosing-between-webforms-and-mvc/WebForms和MVC之间的抉择ASP.NET现在已经被广泛的使用,但是有一个问题始终困扰着我们,就是我们应该使用WebFroms还是MVC。下面通过对WebForms和MVC的SWOT(strengths,weaknesses,threats,opportunities)分析来回答这个问题。1)WebForms2)MVC3)基于上面的WebForms和MVC的分析,下面是一个让我们决定WebForms还是MVC的流程图。4) 综述,我认为当在选择WebForms还是 阅读全文
posted @ 2011-06-05 08:31 iTech 阅读(3544) 评论(15) 推荐(3)
摘要: 经过过少次的困惑哦,终于明白了: public key 要放到ssh server所在的机器的用户下的~/.ssh/authorized_keys中,且此文件的权限必须为700 。private key 是ssh client访问的时候需要的ppk文件。 转自: http://hostingrails.com/HowTo-SSH-SCP-without-a-passwordhttp://technitip.net/putty-ssh-login-without-password-promptWindows 上 SSHYour desktop is running with Windows an 阅读全文
posted @ 2011-06-04 12:07 iTech 阅读(3529) 评论(0) 推荐(0)
摘要: 翻译自: http://www.thegeekstuff.com/2010/09/rsync-command-examples/rsync stands for remote sync. rsync is used to perform the backup operation in UNIX / Linux.rsync utility is used to synchronize the files and directories from one location to another in an effective way. Backup location could be on lo. 阅读全文
posted @ 2011-06-04 10:49 iTech 阅读(12403) 评论(0) 推荐(0)
摘要: overviewNAS 和 SANNAS 和 SAN 的区别完! 阅读全文
posted @ 2011-05-31 13:02 iTech 阅读(711) 评论(0) 推荐(0)
摘要: 常用的东东的quick reference(cheat sheets) 收集:http://www.addedbytes.com/cheat-sheets/http://www.quicklycode.com/cheatsheetshttp://devcheatsheet.com/http://refcardz.dzone.com/完! 阅读全文
posted @ 2011-05-24 17:44 iTech 阅读(657) 评论(0) 推荐(0)
摘要: 1) new Virtual Machine 在 vCenter或ESX/ESXi host右键,选择New Virtual Machine。在New Virtual Machine中进行各种设置来完成Vitual Machine的创建。在创建好了以后还可以在虚拟机上右键edit settings来修改virtual machine的setting。选中虚拟机右键->edit settings -> Add -> Hard Disk 来增加新的硬盘。2) upload ubuntu的ISO to Datastore在 vShpere client中home->inven 阅读全文
posted @ 2011-05-14 15:02 iTech 阅读(1556) 评论(0) 推荐(0)
摘要: svn的外部定义svn:externals转自:http://blog.csdn.net/jaconey/archive/2008/05/15/2448986.aspx解决你的外部依赖 -- svn:externals 在日常的项目版本管理中, 根据自己的需要, 我们很有可能需要把不同的repository放到不同的目录中, 又或者把几个repository放到一起. 多数时候, 这都是为了解决build中的依赖, 所以这种"个性化"的结构是应该共享, 成为版本的其中一个部分. 否则项目成员就需要各自建立这样的结构, 风格不一, 也有可能造成遗漏.Subversion 内嵌 阅读全文
posted @ 2011-05-10 11:22 iTech 阅读(3780) 评论(0) 推荐(0)
摘要: 一WinSCP 主页:http://winscp.net/eng/index.phpWinSCP 是超级牛的免费软件,是windows上的SFTP, FTP 和 SCP 客户端,用来实现与Unix或Linux的文件的共享和交换。 WinSCP 是一个Windows环境下使用 SSH的开源图形化SFTP客户端。同时支持SCP协议。它的主要功能就是在本地与远程计算机(一般为Unix或Linux)间安全的复制文件。 特性 图形用户界面 多语言 与 Windows完美集成(拖拽, URL, 快捷方式) 支持所有常用文件操作 支持基于SSH-1、SSH-2 的 SFTP 和 SCP 协议 支持批处理脚本 阅读全文
posted @ 2011-05-04 14:31 iTech 阅读(4489) 评论(1) 推荐(3)
摘要: 一 实例和结果1) 实例的结构和具体的文件:PyPackage│ PyCommonM.py│ __init__.py│├─p1Package│ P1M.py│ P1MC.py│ __init__.py│└─p2 P2.py P2M.py2) PyCommonM.pydef PyCommonMF(): print "PyCommonMF"3) P1M.py:def P1MF(): print 'P1MF'4) P1MC.py:class P1MC(): @staticmethod def P1MCF(): print 'P1MCF'5)P2M. 阅读全文
posted @ 2011-04-26 19:13 iTech 阅读(1491) 评论(0) 推荐(0)
摘要: 1. 列出所有的运行的进程 (ps -ef, ps -aux),在BSD机器上,需要使用ps -aux$ ps -efroot 26551 5 0 Feb10 ? 00:03:41 [pdflush]root 26570 5 0 Feb10 ? 00:00:20 [pdflush]root 30344 3382 0 Feb21 ? 00:00:11 sshd: root@pts/14root 30365 30344 0 Feb21 pts/14 00:00:02 -bashroot 30393 3382 0 Feb21 ? 00:00:10 sshd: root@pts/15Where: -e 阅读全文
posted @ 2011-04-25 17:00 iTech 阅读(6118) 评论(0) 推荐(0)
摘要: 转自: http://www.thegeekstuff.com/2011/02/linux-boot-process/Press the power button on your system, and after few moments you see the Linux login prompt.Have you ever wondered what happens behind the scenes from the time you press the power button until the Linux login prompt appears?The following are 阅读全文
posted @ 2011-04-25 16:25 iTech 阅读(1598) 评论(0) 推荐(0)
摘要: 常见数据类型的引用定义: 数据类型 定义 举例 标量变量 \$Var $Pointer = \$Var 数组 \@Array $Pointer = \@Array 哈希变量 \%Hash $Pointer = \%Hash 文件句柄 \*FILEHANDLE $Pointer = \ 常量 \常量 阅读全文
posted @ 2011-04-21 13:58 iTech 阅读(4069) 评论(0) 推荐(0)
摘要: 一 web2py的应用的执行环境Models,Controllers和views所在的执行环境中,以下对象已经被默认地导入: Global Objects: request,response,session,cacheNavigation: redirect,HTTPInternationalization: THelpers: XML, URL, BEAUTIFYA, B, BEAUTIFY, BODY, BR, CENTER, CODE, DIV, EM, EMBED,FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML,I, IFR 阅读全文
posted @ 2011-04-20 22:04 iTech 阅读(3187) 评论(0) 推荐(0)
摘要: web2py的URL映射1) http://127.0.0.1:8000/a/c/f.html的映射web2py的URL映射规则将http://127.0.0.1:8000/a/c/f.html映射到Application(a)的Controller(c)的function(f)。如果function(f)不存在,则映射到Controller(c)的function(index)函数。如果Controller(c)不存在,web2py默认映射到Controller(default),如果application(a)不存在的话,web2py默认映射到application(init),如果app 阅读全文
posted @ 2011-04-18 22:22 iTech 阅读(2343) 评论(0) 推荐(0)
摘要: 什么是web2py,请看:python26web[web2py之helloworld]一 web2py与MVCweb2py鼓励开发人员将data representation (the model), data presentation (the view) and the application workflow (the controller)分离. web2py的主要设计思想就是MVC,在web2py中一个典型的request流程如下图:在上图中:1) server可以是web2py内置的server,或者是第三方的server,例如Apache。server使用多线程来处理请求;2) 阅读全文
posted @ 2011-04-16 11:52 iTech 阅读(2503) 评论(0) 推荐(0)
摘要: 一 web2pyweb2py是免费的开源的web框架,被用来快速地开发基于安全的数据库驱动的web应用。我们通过python来使用web2py框架,同时web2py本身也是使用python开发的。web2py是一个full-stack框架,这意味着她包含了你构建功能丰富的web应用的所有组件。主页 : http://web2py.com/ 官方的参考书: http://web2py.com/book官方的example: http://web2py.com/examples/default/examples 二 web2py的特点 web2py被设计用来引导web开发人员使用软件开发的最佳实践 阅读全文
posted @ 2011-04-13 19:54 iTech 阅读(7047) 评论(0) 推荐(0)
摘要: 默认地当python import模块的时候,在sys.path变量中存储的路径中查找。 默认地sys.path的值如下: ['', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\ 阅读全文
posted @ 2011-04-12 16:23 iTech 阅读(2104) 评论(0) 推荐(0)
摘要: PTVS(Python Tools for Visual Studio)是来自微软Technical Computing Group的一个开源免费的VisualStudio2010的插件。使你能够使用VisualStudio2010来编辑和调试Cpython和IronPython程序。主页:http://pytools.codeplex.com/宣布的主要特性有: 高级编辑功能、智能感知(Intellisense),代码浏览,“查找所有引用”,REPL等等…… 支持CPython和IronPython 本地或集群/远程调试 有多种视图辅助分析代码 通过和IPython REPL集成,实现交互式 阅读全文
posted @ 2011-04-11 14:34 iTech 阅读(2269) 评论(0) 推荐(1)
摘要: 特点:1) 此GlobalLogging 采用了singlten模式,全局唯一,必须通过getInstance方法来获得GlobalLogging的实例;2) 此GlobalLogging可以采用logging提供的log handlers(例如log到console,file。。。),同时支持提供自定义函数来处理log的接口,可以自己定义如何处理log;GlobalLogging的使用如下: (将系统的所有的函数的log,同时写到log文件和UI中的text控件中)fromGlobalLoggingimportGlobalLoggingclassA:def__init__(self):Glo 阅读全文
posted @ 2011-04-08 18:41 iTech 阅读(2920) 评论(1) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页