上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 查看core dumped的详细错误原因什么是CoreDump?今天调试一个程序,用到了coredump,于是写出来,记于此.什么是CoreDump?Core的意思是内存,Dump的意思是扔出来,堆出来.开发和使用Unix程序时,有时程序莫名其妙的down了,却没有任何的提示(有时候会提示coredumped). 这时候可以查看一下有没有形如core.进程号的文件生成,这个文件便是操作系统把程序down掉时的内存内容扔出来生成的, 它可以做为调试程序的参考.coredump又叫核心转储,当程序运行过程中发生异常,程序异常退出时,由操作系统把程序当前的内存状况存储在一个core文件中,叫core 阅读全文
posted @ 2013-05-04 22:50 wuxi812 阅读(5601) 评论(0) 推荐(0) 编辑
摘要: 2010-10-09 10:12:23|分类: Linux |标签: |字号大中小订阅版本一,还不知道pgrep命令时:#!/bin/bashecho "-->1 kill old process start...,PID="$(ps -ef | grep "jboss-server" | grep "java" | awk '{print $2}')kill -9 $(ps -ef | grep "jboss-server" | grep "java" | awk  阅读全文
posted @ 2013-04-27 13:56 wuxi812 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 【问题】想要使用Python的xlwt设置单元格的背景色。但是不知道如何设置。【解决过程】1.从Working with Excel Files in Python找到官网的:The xlwt Module,无果。2.参考:XLWT : Changing the Cell Background Color试了其代码:?12345678910badBG=xlwt.Pattern()badBG.SOLID_PATTERN=0x34badBG.NO_PATTERN=0x34badBG.pattern_fore_colour=0x34badBG.pattern_back_colour=0x34badF 阅读全文
posted @ 2013-04-26 18:00 wuxi812 阅读(4808) 评论(0) 推荐(0) 编辑
摘要: def main(): allfilelist = FinaAllFiles("/home/develop/devel/database/")def FinaAllFiles(directory): allfilelist = [] allitems = os.listdir(directory) for item in allitems: if os.path.isfile(os.path.join(directory, item)): allfilelist.append(os.path.join(directory, i... 阅读全文
posted @ 2013-04-13 10:29 wuxi812 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 查阅了相关资料现将方法分享给大家:打开你要创建,目录的表格按Alt+F11在谈出的对话框中点插入选择模块然后把下面的代码复制到模块中Sub mulu() On Error GoTo Tuichu Dim i As Integer Dim ShtCount As Integer Dim SelectionCell As Range ShtCount = Worksheets.Count If ShtCount = 0 Or ShtCount = 1 Then Exit Sub Application.ScreenUpdating = False For i = 1 To ShtCount If. 阅读全文
posted @ 2013-04-12 00:07 wuxi812 阅读(620) 评论(0) 推荐(1) 编辑
摘要: 案例:###1 ###str = "01213456"if str.find("23"): print "YES!"else: print "NO!"### 2 ###str = "01213456"if str.find("23"): print "YES!"else: print "NO!"上两个案例结果都为“YES!”, 非常令我吃惊,2不应该是NO!吗?经查阅得知其用法:函数原型:find(str, pos_start, pos 阅读全文
posted @ 2013-04-11 23:56 wuxi812 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Python读写文件1.open使用open打开文件后一定要记得调用文件对象的close()方法。比如可以用try/finally语句来确保最后能关闭文件。file_object = open('thefile.txt')try: all_the_text = file_object.read( )finally: file_object.close( )注:不能把open语句放在try块里,因为当打开文件出现异常时,文件对象file_object无法执行close()方法。2.读文件读文本文件input = open('data', 'r')# 阅读全文
posted @ 2013-04-11 13:56 wuxi812 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 等额本息的计算方法?2009-3-4 21:26请问各位等额本息怎么计算啊?比如我贷180000,年利率是5.049%,贷款10年。请问每月还多少?具体的计算公式?谢谢了!按你提供的年利率得出结果是1913.54元每月还很简单设贷款额为a,月利率为i,年利率为I,还款月数为n,每月还款额为b,还款利息总和为Y1:I=12×i2:Y=n×b-a3:第一月还款利息为:a×i第二月还款利息为:〔a-(b-a×i)〕×i=(a×i-b)×(1+i)^1+b第三月还款利息为:{a-(b-a×i)-〔b-(a×i-b 阅读全文
posted @ 2013-04-03 11:25 wuxi812 阅读(2848) 评论(0) 推荐(0) 编辑
摘要: 本文详解介绍linux中du命令参数的用法,并用示例进一步说明其使用方法。du命令功能说明:统计目录(或文件)所占磁盘空间的大小。语 法:du[-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--version][目录或文件]常用参数:-a或-all 为每个指定文件显示磁盘使用情况,或者为目录中每个文件显示各自磁盘使用情况。-b或-bytes 显示目录或文件大小时,以byte为单位。-c或–total 阅读全文
posted @ 2013-03-03 14:24 wuxi812 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 1、erlamq 服务没有启动=INFO REPORT==== 28-Feb-2013::10:07:07 === I('cbe@192.168.99.149':<0.319.0>:centralized_auth:219) : Logined tellers:["1048", "1050", "1478"]=ERROR REPORT==== 28-Feb-2013::10:07:10 === E('cbe@192.168.99.149':<0.221.0>:amq_admin: 阅读全文
posted @ 2013-02-28 10:13 wuxi812 阅读(479) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页