上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 35 下一页

2014年4月15日

mongodb 由于计算机死机造成的无法启动故障

摘要: 一次计算机死机,重启后,mongodb无法启动,log显示: exception in initAndListen: 12596 old lock file, terminatingSun Mar 30 20:16:14.619 dbexit: Sun Mar 30 20:16:14.619 [... 阅读全文

posted @ 2014-04-15 00:19 norsd 阅读(295) 评论(0) 推荐(0) 编辑

2014年4月6日

WindApi2 , WindOriginalApiLibrary 突然不兼容问题

摘要: 1. 在新的电脑上从tfs拉下代码后编译, windoriginalapilibrary 这个工程弹出对话框,要求转为vs2013编译,选择同意,编译成功 2.WindApi2 的Reference列表中 WindOriginalApiLibrary 这个工程突然显示 黄色感叹号,同时无法编... 阅读全文

posted @ 2014-04-06 00:39 norsd 阅读(174) 评论(0) 推荐(0) 编辑

2014年3月18日

整体代码缩进

摘要: 1.在 VS, PYCHARM 中只要 拉选块之后,按下tab键,整个块就会缩进 按下 shift + tab 就会反向缩进 阅读全文

posted @ 2014-03-18 18:00 norsd 阅读(240) 评论(0) 推荐(0) 编辑

2014年3月17日

Python decorate 函数

摘要: 1. decorate 函数需要在 "@wrap" 之前定义, 否则会报错 阅读全文

posted @ 2014-03-17 18:50 norsd 阅读(342) 评论(0) 推荐(0) 编辑

2014年3月15日

如何使得 python 脚本 不一闪而过

摘要: 1. 简单的方法是在最后加上如下语句: os.system("pause") 2. 但是这个不一定有用,原因是可能在之前的代码中发生异常,那么我们看到的效果也是直接一闪而过 办法是 在语句中加上 try catch 如下: __author__ = 'di_shen_sh'# co... 阅读全文

posted @ 2014-03-15 16:33 norsd 阅读(525) 评论(0) 推荐(0) 编辑

python 如何在 command 中能够找到 其他module

摘要: 部分代码如下: __author__ = 'norsd'# coding=utf8# 上句说明使用utf8编码try: import os import sys import time #关键语句,使得py文件能够找到其他module #关键语句,使得py文件能够... 阅读全文

posted @ 2014-03-15 16:28 norsd 阅读(232) 评论(0) 推荐(0) 编辑

如何利用 任务计划程序 实现计算机重启后运行特定程序(网络方面)

摘要: 1. 特定程序是一个python的脚本文件,他会向外发送邮件 2. 控制面板 -> 管理工具 -> 任务计划程序 -> 菜单:操作->创建任务 然后填写名称,描述,随后在 安全选项中 (我这台服务器是默认administrator) ,选择 “不管用户是否登录都要运行” 和 ... 阅读全文

posted @ 2014-03-15 16:25 norsd 阅读(1602) 评论(0) 推荐(0) 编辑

2014年3月13日

git clone 之后 , 如何复制文件到文件夹 并 上传

摘要: 1. 关于 _netrc machine github.com login myid password mypassword machine bitbucket.org login myid password mypassword 2. 进入路径 d: , 然后直接 clon... 阅读全文

posted @ 2014-03-13 00:08 norsd 阅读(1330) 评论(0) 推荐(0) 编辑

2014年3月12日

c# Marshal.PtrToStructure(StructPtr, typeof(T)); 特别注意

摘要: 以下异常:Marshal.PtrToStructure(StructPtr, typeof(T)); 原因: 在实际使用中 T 没有一个 parameterless constructor 于是加一个: private RepoTick() { } 解决问题 ... 阅读全文

posted @ 2014-03-12 14:49 norsd 阅读(3729) 评论(0) 推荐(0) 编辑

2014年3月5日

WPF Set connectionId threw an exception异常 以及重复dll的问题

摘要: 1.DataOutputWPF 在显示norlib.Basic.UserConfigControl时 抛出异常 xmlparsingException : WPF Set connectionId threw an exception 此时应该在 调试窗口Local中输入: $exce... 阅读全文

posted @ 2014-03-05 18:58 norsd 阅读(279) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 35 下一页

导航