创建你自己的命令行 地址簿 程序。在这个程序中,你可以添加、修改、删除和搜索你的联系人(朋友、家人和同事等等)以及它们的信息(诸如电子邮件地址和/或电话号码)
#!/usr/bin/python
# Filename : var.py
import cPickle as p
import os
import sys
filename = 'contacts.data'
class memb...
分类:
编程语言 时间:
2014-05-15 23:44:49
阅读次数:
462
打开 /usr/local/php/etc/php-fpm.conf
调大以下两个参数(根据服务器实际情况,过大也不行) 5120 600
分类:
其他好文 时间:
2014-05-15 21:12:11
阅读次数:
206
jsfunction:selectBox:function(){ var
li=$(this); var selectbox=li.parent().parent();
selectbox.attr("data-checked",li.attr("data-value"));...
分类:
其他好文 时间:
2014-05-15 21:07:32
阅读次数:
287
#所有需要安装的包都在contribs目录里。faac1.#cd/usr/local/src/contribs2.[root@...contribs]#tarzxvffaac-1.28.tar.gz3.[root@...contribs]#cdfaac-1.284.[root@...faac-1.28]#./configure--prefix=/usr/local/--enable-shared5.[root@...faac-1.28]#make&&makeinst..
分类:
其他好文 时间:
2014-05-15 19:16:58
阅读次数:
549
很简单的一个问题,既然有人提到了,那我就在这里记录一下。<H3C>sysSystemView:returntoUserViewwithCtrl+Z.[H3C]local-useradmin[H3C-luser-admin]passwordcipher12345678Updatinguser(s)information,pleasewait....[H3C-luser-admin]service-typetelnetlevel3[H3C-lus..
分类:
其他好文 时间:
2014-05-15 19:06:36
阅读次数:
294
#!/bin/bash
#function:cutnginxlogfilesshell
#cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak
log_cut_path="/var/log/nginx"
log_files_path="/usr/local/nginx/logs/"
log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:
其他好文 时间:
2014-05-15 18:49:50
阅读次数:
244
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
通过brew 安装:brew install mariadb初始化数据库cd
/usr/local/Cellar/mariadb/10.0.10/scriptsmysql_install_db --user=`root`
--basedir="$(brew --prefix mariadb)" --...
分类:
数据库 时间:
2014-05-15 17:53:53
阅读次数:
913
send($data)`. The sent data will then* be the
result of the `yield` expression. Thus it can be received using a code like*
`$data = yield;`.*/ /* What...
分类:
其他好文 时间:
2014-05-15 17:46:37
阅读次数:
311
using System;using
System.Collections.Generic;using System.Linq;using System.Text;using
System.Data;using System.Reflection;namespace TestConsole{ ...
分类:
其他好文 时间:
2014-05-15 17:07:04
阅读次数:
187