去掉url中的index.php,让url彻底mvc。1.httpd.conf配置文件中加载了mod_rewrite.so模块//在APACHE里面去配置#LoadModulerewrite_modulemodules/mod_rewrite.so把前面的警号去掉2.AllowOverrideNone将None改为All//在APACHE里面去配置(注意其他地方的AllowOverride也统统设置为..
分类:
Web程序 时间:
2014-07-26 03:20:07
阅读次数:
225
com.mchange.v2.c3p0.impl.C3P0ImplUtils generateVmId
信息: Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness
java.net.UnknownHostException: Alo...
分类:
Web程序 时间:
2014-07-26 02:57:56
阅读次数:
4343
用Python写一个SQLBuilder,Java版可以从
http://www.java2s.com/Code/Java/Database-SQL-JDBC/SQLBuilder.htm 看到。
附上代码:
class SQLDirector:
@classmethod
def buildSQL(cls, builder):
sql = ""
sql...
分类:
数据库 时间:
2014-07-26 02:56:56
阅读次数:
310
最终效果图:
BeyondViewController.h
//
// BeyondViewController.h
// 7_scrollView大图展示
//
// Created by beyond on 14-7-24.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import...
分类:
移动开发 时间:
2014-07-26 02:49:16
阅读次数:
217
Painting Storages
Time Limit: 2 Seconds Memory Limit: 65536 KB
There is a straight highway with N storages alongside it labeled by 1,2,3,...,N. Bob asks you to paint all storages with two...
分类:
其他好文 时间:
2014-07-26 02:48:17
阅读次数:
178
最近发现很多接口配置都硬编码在souce file中了,于是就看了下python怎么解析配置文件,重构下这一块。
这个应该是早就要作的。。。...
分类:
编程语言 时间:
2014-07-26 02:43:16
阅读次数:
300
在Ubuntu12.04中配置python环境变量:setenv PATH "$PATH:/usr/local/bin/python",提示未找到setenv命令。
为什么呢?这是因为shell版本问题!
Bourne Shell(即sh)是UNIX最初使用的shell,平且在每种UNIX上都可以使用。BourneShell在shell编程方便相当优秀,但在处理与用户的交互方便作得不如其他...
分类:
其他好文 时间:
2014-07-26 02:41:02
阅读次数:
1006
类引入
到目前为止我们所写的自定义类型都是关键字struct,从现在起我们将采用class方式定义类,这种方式对于学习过其他高级语言包括脚本(Such as Python)的人来说再熟悉不过了.
但是在写之前我们还是需要比较一下用struct和class之间有什么区别.
首先对于struct,在C兼容性方面很重要,尽管C++是有别于C的另一门语言,但许多程序还是必须与C交互,C++有两个重要...
分类:
编程语言 时间:
2014-07-26 02:32:26
阅读次数:
216
最终效果图:
BeyondViewController.h
//
// BeyondViewController.h
// 8_scrollVIew分页浏览
//
// Created by beyond on 14-7-25.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#...
分类:
移动开发 时间:
2014-07-26 02:17:06
阅读次数:
206
内建函数str()和repr() (representation,表达,表示)或反引号操作符(``)可以方便地以字符串的方式获取对象的内容、类型、数值属性等信息。str()函数得到的字符串可读性好(故被print调用),而repr()函数得到的字符串通常可以用来重新获得该对象,通常情况下 obj==eval(repr(obj)) 这个等式是成立的。这两个函数接受一个对象作为其参数,返回适当的字符串...
分类:
编程语言 时间:
2014-07-26 02:16:56
阅读次数:
262