自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 用python写的结构体码流打印工具

执行方法 python encoder.py “txt.txt” # -*- encoding: utf-8 -*- # fileName: encoder.py from sys import argv import copy import collections """ C 语言结构体 对应码流打印 typedef struct{ int name : 12; int age ...

2019-06-15 21:46:07 523

原创 text

# db保存地址 dbpath=/var/lib/mongodb/mongodb-repltest # log保存地址 logpath=/var/log/mongodb/mongodb-repltest.log logappend=true # 以一个新的fork打开 fork=true # 监听的端口 37017 port = 37017 # 配置replSet, 这一句表示这

2015-06-06 17:23:18 405

转载 ubuntu 14.04下hosts 失效-清理dns缓存

In ubuntu if you want to flush DNS cache you need to restart nscd daemon Install nscd using the following command sudo apt-get install nscd Flush DNS Cache in Ubuntu Using the following com

2015-06-05 00:43:55 1283

转载 ubuntu 下 pm2 error /usr/bin/env: node: No such file or directory解决方案

http://stackoverflow.com/questions/29068860/nodejs-pm2-error-on-app-startup You must in console run: sudo ln -s /usr/bin/nodejs /usr/local/bin/node and try an other time.

2015-06-03 22:30:53 3309

转载 两种方法教你在Ubuntu下轻松关闭触摸板(TinkPad)

Ubuntu是一个以桌面应用为主的Linux操作系统,所以在使用时我经常的触碰到触摸板,这样会造成我们一些的麻烦,所以要如何的关闭触摸板呢?我们一起来看看吧!   Ubuntu下如何关闭触摸板(TinkPad) 有以下两种方法:   第一种: 1 sudo rmmod psmouse    这个是禁用的 2 sudo modprobe psmouse

2015-05-19 00:27:55 1081

原创 ImportError: Error loading object 'scrapy.contrib.memusage.MemoryUsage': No module named mail.smtp

解决ImportError: Error loading object 'scrapy.contrib.memusage.MemoryUsage': No module named mail.smtp 的方法 是scrapy-twist的问题,重装twisted sudo apt-get install python-twisted https://github.com/scrapy/s

2015-05-18 23:06:50 2021

原创 latex .ps转换pdf的时候option里嵌入字体与否有何区别 | 附IEEE PDF eXpress 格式审查失败解决办法

latex .ps转换pdf的时候会在下面对话框的option里加入,避免IEEE PDF eXpress 格式审查失败的现象: -dNOPAUSE -dBATCH -dEPSCrop -q -sDEVICE=pdfwrite -dCompatibilityLevel#1.4 -dPDFSETTINGS=/prepress -dSubsetFonts=true -dEmbedA 但是加与不加这

2015-05-11 17:07:46 1049

原创 Mongodb UI -- Robomongo

折腾半天mongodb的httpinterface, 依然无法在http下查看mongodb的数据,所以转战别的管理ui 这里使用了robomongo 在http://robomongo.org/ 下载了linux版本后,安装,命令行下输入 robomong就软件启动. 然后create一个connection, address是 localhost:27017 (默认的端口)

2015-05-10 14:55:51 579

转载 MongoDB HTTP Interfaces

HTTP Interfaces Sleepy Mongoose (Python) Sleepy Mongoose is a full featured HTTP interface for MongoDB. Sleepy.Mongoose: A MongoDB HTTP Interface The first half of the MongoD

2015-05-09 23:16:54 476

转载 Getting Started with MongoDB (Python Edition) || 开始使用MongoDB

http://docs.mongodb.org/getting-started/python/ Import Example Dataset http://docs.mongodb.org/getting-started/python/import-data/ Insert Data with PyMongo http://docs.mongodb.org/getting-started/

2015-05-09 22:41:12 477

原创 Pycharm 下Non-ASCII character '\xe5' in file.. 解决办法

SyntaxError: Non-ASCII character '\xe5' in file ... but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details 注意到该文件中的# encoding:utf-8# 或者# -*- coding: utf-8 -*- 不在文件的第一行,

2015-05-09 20:28:33 15082

原创 No module named mongokit解决办法

最终方法: 装完mongodb之后,需要安装python相关的文件 sudo pip install pymongo==2.8 sudo pip install mongokit ----------------------------------------------------- 用python下的scrapy写爬虫, 存储在mongodb数据库上,python运行时,遇到了 N

2015-05-09 20:27:28 6445

原创 Ubuntu 14.04安装与运行MongoDB

Ubuntu 14.04安装与运行MongoDB在mongodb的官方网站的指导下安装,中间遇到了404 not found的问题,后来解决. 自己的安装过程如下:安装 安装步骤: 1 . Import the public key used by the package management system. 导入public key The Ubuntu package management

2015-05-09 18:25:34 5179

转载 Ubuntu12.04 安装PyCharm

Ubuntu12.04 安装PyCharm 1. 下载 选择Linux Tab,选择下载免费的Community Edition【1】。当前版本是3.4   2. 安装PyCharm 按照官网给出的安装指导【2】进行安装。 (1) Copy the pycharm-*.tar.gz to the desired installation location (make s

2015-05-08 21:39:27 507

原创 ubuntu下安装utorrent

换到用ubuntu了,下载好不方便.下面说一说怎么则ubuntu下配置utorrent并用其下载. 我的ubuntu版本是14.10, 64位 1. 首先在utorrent网站上下载软件,我下载的是这个版本的 µTorrent Server for Debian 7.0 Debian 7.0 - 64-bit (2.15 MB) 英语(美国) - March 25, 2014

2015-05-08 21:14:46 1233

原创 第一篇

第一篇,舍友说现在写技术博客太晚了,我有时候也这么觉得.但是如果不做,以后就再也不会做了.所以开始写吧.

2015-05-08 21:08:28 385

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除