问题描述 我用热敏打印机的ESC*命令打印图片时为什么打印后的是乱码。代码是从C#中修改的Bitmapbt=BitmapFactory.decodeFile(MainActivity.path+message); if(bt!=null){ mService.write(ESC_INIT); //m...
分类:
移动开发 时间:
2014-10-16 00:33:11
阅读次数:
478
·find path -option [ -print ] [ -exec -ok command ] {} \;find命令的参数;pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的文件输出到标准输出。-exec: ...
分类:
系统相关 时间:
2014-10-16 00:22:11
阅读次数:
418
1, write down all the permutations of the string of character ;
2, sort these rows according to the first character of each row;
3, the last coloumn is the result string.
BWT reverse:
1, write...
分类:
其他好文 时间:
2014-10-15 23:26:11
阅读次数:
226
[root@beta.zone1.node1~]#/opt/MegaRAID/MegaCli/MegaCli64-cfgdsply-aall|grepPolicy:DefaultCachePolicy:WriteBack,ReadAhead,Cached,NoWriteCacheifBadBBUCurrentCachePolicy:WriteThrough,ReadAhead,Cached,NoWriteCacheifBadBBUDefaultCachePolicy:WriteBack,ReadAhead,C..
分类:
其他好文 时间:
2014-10-15 21:48:52
阅读次数:
418
ThinkPHP的函数扩展:为了更好的在前台模板中显示变量,例如,商品分类中,分类名称之间的缩进。此时,在APP/Common/Common文件夹下(APP为新建的应用目录),新建一个php文件,如:function.php,书写代码如下:{:outTypeInfo($vo["path"])}{$v...
分类:
Web程序 时间:
2014-10-15 21:30:21
阅读次数:
203
import threadingdef foo(): with open(r'./result.log','wb') as f: f.write('=some logs here ==')t = threading.Thread(foo)t.start()当然你也可以用高级方法,...
分类:
编程语言 时间:
2014-10-15 19:23:01
阅读次数:
200
一、HTTP协议详解之URL篇 http(超文本传输协议)是一个基于请求与响应模式的、无状态的、应用层的协议,常基于TCP的连接方式,HTTP1.1版本中给出一种持续连接的机制,绝大多数的Web开发,都是构建在HTTP协议之上的Web应用。http://host[":"port][abs_path]...
分类:
其他好文 时间:
2014-10-15 18:34:31
阅读次数:
282
#include
#include
#include
using namespace std;
/*
* 交换两个数
*/
void exchange(unsigned int *p,unsigned int *q)
{
unsigned int temp;
temp=*p;
*p=*q;
*q=temp;
}
/*
* 快速排序
*
*/
unsigned i...
分类:
编程语言 时间:
2014-10-15 18:01:26
阅读次数:
203
使用jQuery中的ajax获取纯数据时,如果dataType是json后台java中的write应该怎样写呢? 1 $.ajax({ 2 url:"********", 3 success:function(data) { 4 alert(data.data); 5...
分类:
Web程序 时间:
2014-10-15 17:52:41
阅读次数:
242
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-10-15 15:13:00
阅读次数:
200