原因是view文件下面有个.htaccess文件,里面写的是Deny from all //拒绝所有请求自己本地测试的话,就直接去掉,放到服务器就指定application/views文件夹下面的东西可以访问权限放在服务器上,在这句话下面增加正则制定可以访问application/views文件.....
分类:
移动开发 时间:
2014-07-11 22:55:10
阅读次数:
325
一 词组1 fill with e.g. I let my lungs fill with the scented air. fill sth with sth e.g. You don’t need green fingers to fill your home with lush leaves....
分类:
其他好文 时间:
2014-07-09 14:06:08
阅读次数:
216
Cow Bowling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 13464
Accepted: 8897
Description
The cows don't use actual bowling balls when they go bowling...
分类:
其他好文 时间:
2014-07-08 18:00:15
阅读次数:
230
Basic Memory Management
基础内存管理
If you're writing an application for Mac OS X, you have the option to enable garbage collection. In general, this means that you don't have to think about memory management until you get to more complex cases.
如果你正在写运行在...
分类:
其他好文 时间:
2014-07-06 00:58:44
阅读次数:
275
题目链接:点击打开链接
要使得删除后车队是合法的,即对于车队中的每辆车, l+r+c 都相同,则按l+r+c分类。
然后dp一下。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll int
#define N 10000...
分类:
其他好文 时间:
2014-07-05 23:53:07
阅读次数:
452
4 Work Mistakes You Don't Realize You're Making你在工作中无意间会犯的四个错误When you’re the new girl at work, you do everything in your power to stay on your best b...
分类:
其他好文 时间:
2014-07-05 18:53:56
阅读次数:
204
这里使用NSXMLParser来解析
在Xcode中加入一个xml文件:
001
John
Reminder
Don't forget the meeting!
002
Jack
cc
how are you!
003
Tom
bb
I am fine!
先读出来
NSS...
分类:
移动开发 时间:
2014-07-03 15:31:49
阅读次数:
286
通常,我们更喜欢重用一个对象而不是重新创建一个。如果对象是不可变的,它就始终可以被重用。下面是一个反面例子,JoshuaBloch明确指出[DON‘TTOTHIS]:Strings=newString("stringette");该语句每次执行时都创建一个新的实例。String构造器中的参数"stringette"本身是一个实例..
分类:
其他好文 时间:
2014-07-02 15:33:43
阅读次数:
231
照例文章第一段跑题,先附上个段子(转载的哦~):
I hate CS people. They don't know linear algebra but want to teach projective geometry. They don't know any probability but want to use graphical models. They don't under...
分类:
其他好文 时间:
2014-06-29 22:35:13
阅读次数:
358
1.Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you
r Gemfile
2.ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 director.y
3.rails 3遇到 Could n...
分类:
其他好文 时间:
2014-06-24 22:18:45
阅读次数:
316