3.6 Write a program to sort a stack in ascending order (with biggest items on top). You may use at most one additional stack to hold items, but you ma...
分类:
编程语言 时间:
2015-07-27 07:04:04
阅读次数:
162
Thinkphp3.2 上传详解 最近在学习用thinkphp3.2框架写个小项目,找工作的时候用。照着官方文档写文件上传功能,结果出错,在qq群里问了半天也没找到答案,最后照着网上的视频做终于实现了上传功能,写博客庆祝下。DataController.class.phpnamespace Admin\Controller;
use Think\Controller;
class Dat...
分类:
其他好文 时间:
2015-07-27 00:23:45
阅读次数:
81
在1979年Lee发表的论文《Lee Filter Digital Image Enhancement and Noise Filtering by Use of Local Statistics》中,提出了基于局部信息去除加性噪音、乘性噪音及加性乘性混合噪音的方法,经过仔细的学习和编码,发现其.....
分类:
编程语言 时间:
2015-07-26 22:12:19
阅读次数:
356
源码分析/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*...
分类:
其他好文 时间:
2015-07-26 20:59:29
阅读次数:
244
By using each of the digits from the set, {1, 2, 3, 4}, exactly once, and making use of the four arithmetic operations (+, ?, *, /) and brackets/parentheses, it is possible to form
different positiv...
分类:
其他好文 时间:
2015-07-26 19:21:34
阅读次数:
378
用例图构成:参与者(actor)、用例(use case)、子系统(subsystem)
关联(Association)
泛化(Inheritance)
就是通常理解的继承关系,子用例和父用例相似,但表现出更特别的行为;子用例将继承父用例的所有结构、行为和关系。子用例可以使用父用例的一段行为,也可以重载它。父用例通常是抽象的。
指向父用例
包含(include)
包含关系用来把一...
分类:
其他好文 时间:
2015-07-26 17:25:07
阅读次数:
115
进入mysqlmysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>flush privileges;mysql>select host, user from user;修改/etc/mysql/my.c...
分类:
数据库 时间:
2015-07-26 15:29:03
阅读次数:
132
Flyweight Pattern
use sharing to support large unmbers of fine-grained objects efficiently(使用共享对象可有效地支持大量的细粒度的对象)
例子
“三哥,厂商人员已经定位出了,OutOfMemory内存溢出,没查到有内存泄漏的情况,现 在还在跟踪……是突然暴涨的,都是在繁忙期出现问题...
分类:
其他好文 时间:
2015-07-26 12:47:44
阅读次数:
218
工作中使用sql语句建表时,mysql报了如下错误:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=InnoDB' at line 1
解决方案:
...
分类:
数据库 时间:
2015-07-25 23:05:16
阅读次数:
147
Pandigital products
Problem 32
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigit...
分类:
其他好文 时间:
2015-07-25 22:59:43
阅读次数:
141