用python语言获得图片的Base64编码。#!/usr/bin/env python# -*- coding: utf-8 -*-# www.jbxue.comimport os, base64icon = open('ya.png','rb')iconData = icon.read()ico...
分类:
编程语言 时间:
2014-07-15 08:49:08
阅读次数:
321
部分程序如下:while(count=read(fd_s,buf,512)>0)printf("count=%d\n",count);write(fd_d,buf,count);打印出来的count始终1,原因:运算符优先级的问题。改为:while((count=read(fd_s,buf,512)...
分类:
其他好文 时间:
2014-07-14 14:54:25
阅读次数:
194
1 使用connect-mongdo时,报错:Cannot read property 'Store' of undefined解决: require('connect-mongo')的时候加一个参数express,如下: var express = require('express'); var ...
分类:
其他好文 时间:
2014-07-14 00:30:23
阅读次数:
298
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2014-07-13 22:53:48
阅读次数:
269
前言:nagios界面上,看到监控mysql服务报错如下:Warning:NRPE: Unable to read output 1,去nagios监控服务器上check下1.1,执行check_nrpe命令远程调用在监控端nagios服务器上执行check_nrpe检查mysql状态报错如下:[root@mysqlvm2 ~]# /usr/lib/nagios/plugins/check_nr...
分类:
移动开发 时间:
2014-07-13 16:40:37
阅读次数:
232
read以空格结尾readabc读入几个变量read-sa读入时不显示输入read-p"提示语言"a设置有提示语言read-t3a设置3秒不给a赋值脚本继续执行readab<file1没有循环将第一个字段赋值给a,第二个字段赋值给bcatfile1a1toma1a2jerryaaa3mikea34readabc<file1此时a=a1b=tomc=a1各种字..
分类:
其他好文 时间:
2014-07-13 14:37:42
阅读次数:
164
批量创建用户read-p"请输入用户名的前缀:"userread-p"请输入用户的数目:"numcount=0if(($num>10))thenecho"最多只能同时新建10个用户"elseforiin$(seq$num)doifuseradd$user$ithencount=$(($count+1))echo"用户$user$i已经创建成功"fidoneecho"一共新建的用户数:$count个"fi..
分类:
其他好文 时间:
2014-07-13 14:26:38
阅读次数:
230
用foxit reader 打印pdf 直接设置为双面打印并且一张2页打印,发现正反面刚好倒着来的,其实说的正反面倒着是从左右翻的角度来讲的,如果上下翻会发现刚好是这个顺序的,这个是要在双面打印设置里头去设置那个长边和短边的方向。在foxit reader 这里面 选择打印在弹出来的打印属性框中那个...
分类:
其他好文 时间:
2014-07-13 13:17:03
阅读次数:
438
一:Spreadsheet_Excel_Reader类的基本使用方法:
$reader=new Spreadsheet_Excel_Reader();
$reader->setOutputEncoding("GBK");
$reader->read($fileName);
$rows=$reader->sheets[2]['numRows'];
$cells...
分类:
其他好文 时间:
2014-07-12 21:29:58
阅读次数:
312
Description
Read the statement of problem G for the definitions concerning trees. In the following we define the basic terminology of heaps. A heap is a tree whose internal nodes have each assigned...
分类:
其他好文 时间:
2014-07-12 18:52:12
阅读次数:
285