1.ecmall 自带的写入日志方法:do_log4php("函数名","类名",$param); $param是参数 在类里调用写入之日的方法 需要先加载函数工具库 import('functions.lib'); 生成的日志存在于 temp/logs。 配置路径就在 log4php.proper ...
分类:
其他好文 时间:
2017-06-15 15:29:04
阅读次数:
205
可以用open和fopen来打开文件,open偏底层,fopen来自于open更顶层。(根据公司某个项目看了源码用的open) #include <stdio.h>#include <windows.h>int main(void){ FILE *fp; char temp; char buf[10 ...
分类:
编程语言 时间:
2017-06-15 12:43:50
阅读次数:
117
public static Set<Integer> getIds(Integer[] a, Integer[] b){ Set<Integer> same = new HashSet<Integer>(); //用来存放两个数组中相同的元素 Set<Integer> temp = new Hash ...
分类:
编程语言 时间:
2017-06-15 10:34:08
阅读次数:
212
Linux下几种文件传输命令 sz rz sftp scp 最近在部署系统时接触了一些文件传输命令,分别做一下简单记录: 1.sftp Secure Ftp 是一个基于SSH安全协议的文件传输管理工具。由于它是基于SSH的,会在传输过程中对用户的密码、数据等敏感信息进行加密,因此可以有效的防止用户信 ...
分类:
系统相关 时间:
2017-06-14 22:20:11
阅读次数:
302
other > bytefunction covertSizeToByte(size) { // sizes = ['B','KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; let temp = size; if (size.endsWith('KB' ...
分类:
其他好文 时间:
2017-06-14 14:35:05
阅读次数:
151
#include <stdio.h> bool ftos(float num,char *s,int n) { int temp; float t=num; int pn=0; bool flag_s=true; bool flag_z=false; for(int i=n;i>0;i--) t=t ...
分类:
其他好文 时间:
2017-06-14 14:23:23
阅读次数:
190
之前一直用 MS-SQL 需要整合数据都用merge语法的, 改换mysql后发现没有这个语法。 找了一下有个替代方案,还是挺方便的。 这里需要注意的是 brand和brand_temp表都需要有主键或是一个 UNIQUE索引列 (详细的可以自己做测试) ...
分类:
数据库 时间:
2017-06-13 10:12:40
阅读次数:
191
base_path = 'D:\image\people'; bb = importdata('output.txt'); output_img = cell(99); for i = 1:100%length(temp_img) nz = strcat('%0',num2str(4),'d'); ... ...
分类:
其他好文 时间:
2017-06-11 00:21:45
阅读次数:
344
一、前言 在日常的界面开发中,我们大多使用MVVM模式进行开发。通常情况下,一个PropertyGridControl或者DataGrid的ItemsSource设置好, 然后每一列绑定好某一条ItemsSource中的某一个字段就可以跑起来了。 但是也有另一种情况: 假设一个界面Temp.xaml ...
分类:
其他好文 时间:
2017-06-10 21:28:54
阅读次数:
209
#include using namespace std; void BubbleSort(int k[] , int n)//传入数组和数组的长度 { int i , j ,temp , count1=0,count2=0,flag=1; for( i=0; i i; j-- ) { count1... ...
分类:
编程语言 时间:
2017-06-10 18:27:42
阅读次数:
192